Skip to content
Prev 247091 / 398506 Next

how to change strip text of effect plot

Hi,

I am guessing this is not what you meant by "on the fly", but I think
it will be by far the easiest way.  Plotting an effects object is a
high level plot with a lot of defaults and automation built in to make
your life simple.  The cost is that it is less flexible---you work its
way, not vice versa.  If you want the factor named high, just label it
that way to begin with.  If you think it makes the graphs more
interpretable/meaningful, then it will make model summaries, etc.
better also.  Worst case, you fit the model twice (one with fancy
names, one with numbers), which unless you have a massive dataset will
not take long or be an onerous burden anyways.  Here's how you can
include labels directly in cut():

Cowles$ex2 <- cut(Cowles$extraversion, 3, c("low", "medium", "high"))
mod.cowles <- glm(volunteer ~ sex+neuroticism*ex2,data=Cowles, family=binomial)
eff.cowles <- allEffects(mod.cowles)
plot(eff.cowles, 'neuroticism:ex2',factor.names=F)

Cheers,

Josh
On Tue, Jan 11, 2011 at 7:21 PM, Wincent <ronggui.huang at gmail.com> wrote: