
Confidence intervals for survey result objects
Source:R/analysis-methods-coef-vcov.R
confint.survey_result.RdComputes confidence intervals for the parameters of a survey_result object
using the t-distribution with per-parameter degrees of freedom stored in
attr(object, ".survey_result")$df.
Usage
# S3 method for class 'survey_result'
confint(object, parm, level = 0.95, ...)Arguments
- object
A
survey_resultobject from any supportedget_*()function.- parm
A numeric, integer, or character vector selecting a subset of parameters, or missing (all parameters). Character
parmis matched againstnames(coef(object)).- level
Confidence level, strictly between 0 and 1. Default
0.95.- ...
Unused.
Value
A numeric matrix with two columns. Column names are
"2.5 %" and "97.5 %" for level = 0.95 (matching
stats::confint.default() format). Rownames are
names(coef(object))[parm]. Dimensions: length(parm) × 2.