Skip to contents

A generic function that extracts standard errors. For survey_result objects (produced by get_means(), get_totals(), and other get_*() functions), returns a named numeric vector matching names(coef(object)).

Usage

SE(object, ...)

Arguments

object

A model or result object.

...

Additional arguments passed to methods.

Value

A named numeric vector of standard errors. The exact structure depends on the method.

Note

When both surveycore and survey are loaded, surveycore::SE masks survey::SE. The SE.default() method handles most survey package objects (svystat, svyby) via sqrt(diag(vcov(object, ...))). Exception: SE.default is NOT equivalent to survey::SE.svyby when vartype = "cvpct" was requested — in that case, qualify the call with survey::SE().