[R] Problem with effects package
jfox at mcmaster.ca
Sat Jul 30 21:25:10 CEST 2011
There's not nearly enough information here to know what's wrong. I can guess
(but shouldn't have to) that the model glm.sev1 is a generalized linear
model of some sort, probably fit by glm(). At a minimum, it would help to
know what command you used to fit the model, the history of commands leading
to the error, and version and session information. Ideally you'd include a
The size of the data set should be irrelevant to this error, so if you could
supply the information I requested, along with a small subset of your data
on which the model can be fit, I can try to figure out what's wrong.
Senator William McMaster
Professor of Social Statistics
Department of Sociology
Hamilton, Ontario, Canada
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> On Behalf Of Lars Bishop
> Sent: July-30-11 3:01 PM
> To: r-help at r-project.org
> Subject: [R] Problem with effects package
> Dear List,
> Several times I use this package I get the error message shown below.
> When I work out simple examples, it turns out to be fine, but when
> working with real and moderate size data sets I always get the same
> Do you know what could be the cause of the problem?
> Error in apply(mod.matrix[, components], 1, prod) :
> subscript out of bounds
> Error in plot(effect("myvariable", glm.sev1)) :
> error in evaluating the argument 'x' in selecting a method for
> function 'plot'
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help