Description Usage Arguments Value Author(s) See Also Examples
Fits cumulative link models: proportional odds, probit, complementary log-log, and cauchit.
1 2 3 4 5 6 7 | 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,
multicore=getOption("survey.multicore"))
|
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 |
multicore |
Use |
method |
Link function |
return.replicates |
return the individual replicate-weight estimates |
An object of class svyolr
The code is based closely on polr() from the MASS package of Venables and Ripley.
1 2 3 4 5 6 7 8 9 |
Loading required package: grid
Loading required package: Matrix
Loading required package: survival
Attaching package: 'survey'
The following object is masked from 'package:graphics':
dotchart
Call:
svyolr(mealcat ~ avg.ed + mobility + stype, design = dclus1)
Coefficients:
avg.ed mobility stypeH stypeM
-2.6999217 0.0325042 -1.7574715 -0.6191463
Intercepts:
(0,25]|(25,50] (25,50]|(50,75] (50,75]|(75,100]
-8.857919 -6.586464 -4.924938
Working (Rao-Scott+F) LRT for avg.ed stype
in svyolr(formula = mealcat ~ avg.ed + mobility + stype, design = dclus1)
Working 2logLR = 1.161069 p= 0.59748
(scale factors: 2.7 0.22 0.11 ); denominator df= 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.