[Rd] weird behavior of drop1() for polr models (MASS)

From: Jeroen Ooms <j.c.l.ooms_at_uu.nl>
Date: Tue, 30 Sep 2008 06:28:14 -0700 (PDT)

I would like to do a SS type III analysis on a proportional odds logistic regression model. I use drop1(), but dropterm() shows the same behaviour. It works as expected for regular main effects models, however when the model includes an interaction effect it seems to have problems with matching the parameters to the predictor terms. An example:

options(contrasts = c("contr.treatment", "contr.poly"));

house.plr1 <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing);

house.plr2 <- polr(Sat ~ Infl * Type + Cont, weights = Freq, data = housing);

Notice that model 2 has a * instead of a + between predictors Infl and Type. In model 1, estimated parameters are nicely attributed to the right term, however in house.plr2, only 2 of the 4 terms are evaluated.

I am using R version 2.7.2 (2008-08-25) i386-pc-mingw32, and MASS_7.2-44.

View this message in context: http://www.nabble.com/weird-behavior-of-drop1%28%29-for-polr-models-%28MASS%29-tp19742120p19742120.html
Sent from the R devel mailing list archive at Nabble.com.

R-devel_at_r-project.org mailing list
Received on Tue 30 Sep 2008 - 13:31:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 30 Sep 2008 - 17:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive