poTest | R Documentation |
The poTest
function implements tests proposed by Brant (1990) for proportional odds for
logistic models fit by the polr
function in the MASS package.
poTest(model, ...)
## S3 method for class 'polr'
poTest(model, ...)
## S3 method for class 'poTest'
print(x, digits=3, ...)
model |
a proptional-odds logit model fit by |
x |
an object produced by |
digits |
number of significant digits to print. |
... |
ignored. |
poTest
returns an object meant to be printed showing the results of the tests.
John Fox jfox@mcmaster.ca
R. Brant, "Assessing proportionality in the proportional odds model for ordinal logistic regression." Biometrics 46: 1171–1178, 1990.
if (require("MASS")){
.W <- Womenlf
.W$partic <- factor(.W$partic, levels=c("not.work", "parttime", "fulltime"))
poTest(polr(partic ~ hincome + children + region, data=.W))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.