svyclm: Wrapper for Ordinal Logistic Regression (cumulative link...

Description Usage Arguments References See Also Examples

View source: R/svymisc.R

Description

Uses withReplicates and clm to generate coefficients, and standards errors for ordinal logistic regressions using replicate weights

Usage

1
svyclm(formula, design, subset, ..., scale.weights = FALSE)

Arguments

formula

Model formula

design

Survey design from svrepdesign

subset

Expression to select a subpopulation

...

Other arugments passed to clm

scale.weights

Indicate whether to rescale weights (defaults to false)

References

Lumley, Thomas. Complex Surveys: A Guide to Analisys Using R. Hoboken, NJ: Wiley, 2010. Print.

See Also

withReplicates clm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(survey)
data(api)
d <- svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc)
dwr <- as.svrepdesign(d, type = "bootstrap", replicates = 100)
mod <- svyclm(stype ~ ell + mobility, dwr)
mod
confint(mod)
library(broom)
tidy(mod)
tidy(mod, exponentiate = TRUE, conf.int = TRUE)

carlganz/svrepmisc documentation built on July 28, 2019, 2:53 p.m.