[R] Problem with plotting diagnostics - Error in object$coefficients : $ operator is invalid for atomic vectors

Duncan Murdoch murdoch.duncan at gmail.com
Wed Nov 17 16:32:51 CET 2010


On 17/11/2010 10:28 AM, Manderscheid Katharina wrote:
> hi all,
> after fitting a multiple linear regression
> model<- lm(y ~ a + b+ c+d)
> i wanted to plot diagnostics
> plot(model)
> but get the error message
> Error in object$coefficients : $ operator is invalid for atomic vectors.
> which does not make a lot of sense, since there is no "$" - i am working with an attached dataset.
> can anyone help, please??
> thanks a lot,
> kat


I just tried those lines (with fake data for a,b,c,d and y) and got no 
error message.  I was using R 2.12.0.

I think you need to show us a reproducible example, and the 
sessionInfo() to go with it, to help with this.

Duncan Murdoch



More information about the R-help mailing list