Re: [R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread Michael Dewey
You rm is of class summary.lm Is that what allEffects is expecting? On 19/08/2015 01:49, Robert Zimbardo wrote: Hi I cannot figure out why the effects package throws me error messages with the following simple code: rm(list=ls(all=TRUE)); set.seed(1); library(effects) # set up data x <- facto

Re: [R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread John Fox
[mailto:r-help-boun...@r-project.org] On Behalf Of Robert > Zimbardo > Sent: Tuesday, August 18, 2015 8:50 PM > To: r-help@r-project.org > Subject: [R] Error message from allEffects(model) / effect(model)" > ‘range’ not meaningful for factors" > > Hi > > I

[R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread Robert Zimbardo
Hi I cannot figure out why the effects package throws me error messages with the following simple code: rm(list=ls(all=TRUE)); set.seed(1); library(effects) # set up data x <- factor(rep(letters[1:3], each=100)) y <- c(rnorm(100, 3, 3), rnorm(100, 4, 3), rnorm(100, 5, 3)) # fit linear model m