I have made these three ordinal logistic regression models:
model1 <- polr(as.factor(carb) ~ mpg, Hess = T, mtcars)
model2 <- polr(as.factor(carb) ~ hp, Hess = T, mtcars)
model3 <- polr(as.factor(carb) ~ drat, Hess = T, mtcars)
To figure out if the models are a good fit to the data, I calculated the proportion of variation explained like this:
model_null <- polr(as.factor(carb) ~ 1, Hess = T, mtcars)
1-(model1$deviance/model_null$deviance)
0.1512784
1-(model2$deviance/model_null$deviance)
0.2520109
1-(model3$deviance/model_null$deviance)
0.003453936
Questions:
Why doesn't summary give null deviance?
Have I calculated the proportion of variation explained correctly?
Am I right in saying
model1
andmodel3
explain little variation incarb
, butmodel2
explains 25% of the variation incarb
?