brant | R Documentation |
The function calculates the brant test for ordinal logit models to test the parallel regression assumption.
brant(model,by.var=F)
model |
the polr-Object generated with polr() |
by.var |
OPTIONAL if set to true, the tests are made for each variable instead of each coefficient. Default: FALSE. |
The function calculates the brant test for parallel regression assumption. The brant test was published by Brant (1990). The function works with models generated with the function polr() from the package 'MASS'.
The output is the brant test, which shows if the parallel assumption holds or not.
Benjamin Schlegel, kontakt@benjaminschlegel.ch
Brant, R. (1990) Assessing proportionality in the proportional odds model for ordinal logistic regression. Biometrics, 46, 1171–1178.
data = MASS::survey
data$Smoke = ordered(MASS::survey$Smoke,levels=c("Never","Occas","Regul","Heavy"))
model1 = MASS::polr(Smoke ~ Sex + Height, data=data, Hess=TRUE)
summary(model1)
brant(model1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.