svyclm | R Documentation |
Uses withReplicates
and clm
to generate
coefficients, and standards errors for ordinal logistic regressions
using replicate weights
svyclm(formula, design, subset, ..., scale.weights = FALSE)
formula |
Model formula |
design |
Survey design from |
subset |
Expression to select a subpopulation |
... |
Other arugments passed to |
scale.weights |
Indicate whether to rescale weights (defaults to false) |
Lumley, Thomas. Complex Surveys: A Guide to Analisys Using R. Hoboken, NJ: Wiley, 2010. Print.
withReplicates
clm
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.