survey (version 3.9-1)

svyolr: Proportional odds and related models

Description

Fits cumulative link models: proportional odds, probit, complementary log-log, and cauchit.

Usage

svyolr(formula, design, ...)
## S3 method for class 'survey.design2':
svyolr(formula, design, start, ..., na.action = na.omit, method = c("logistic", 
    "probit", "cloglog", "cauchit"))
## S3 method for class 'svyrep.design':
svyolr(formula,design,...,return.replicates=FALSE)

Arguments

formula
Formula: the response must be a factor with at least three levels
design
survey design object
...
dots
start
Optional starting values for optimization
na.action
handling of missing values
method
Link function
return.replicates
return the individual replicate-weight estimates

Value

  • An object of class svyolr

See Also

svyglm

Examples

Run this code
data(api)
dclus1<-svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc)
dclus1<-update(dclus1, mealcat=cut(meals,c(0,25,50,75,100)))

svyolr(mealcat~avg.ed+mobility+stype, design=dclus1)

Run the code above in your browser using DataLab