Skip to content
Prev 274987 / 398502 Next

effect function in the effects package

Dear Professor Fox,

Now I got it. It all comes from my unfamiliarity with the effect
function. I forgot the c part in the given.values option, plus it
looks like plot(effect()) does not like factor(warm) in the polr
function. So here are the two working lines:

ordwarm2$warm2 <- as.factor(ordwarm2$warm)
myologit <- polr(warm2 ~ yr89 + male + white + age + ed + prst,
              data=ordwarm2, method=c("logistic"))
plot(effect("age", myologit, xlevels=list(age=seq(20, 80, 5)),
given.values=(c(male=1, yr89=1))))

Again, thanks a lot for your effects package that makes graphing so much easier.

Jun
On Thu, Oct 20, 2011 at 11:55 AM, John Fox <jfox at mcmaster.ca> wrote: