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

Manderscheid Katharina Katharina.Manderscheid at unilu.ch
Thu Nov 25 11:25:58 CET 2010


this problem seems to only exist in R 2.12.0 but not in R  2.11.1.
any ideas? a bug?


----------------------------------------------
dr. katharina manderscheid

soziologisches seminar
universität luzern

kasernenplatz 3
6000 luzern 7

tel. ++41 41 228 4657

web: http://www.unilu.ch/deu/dr.-katharina-manderscheid_346380.aspx

-----Ursprüngliche Nachricht-----
Von: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] 
Gesendet: Mittwoch, 17. November 2010 16:33
An: Manderscheid Katharina
Cc: 'r-help at r-project.org'
Betreff: Re: [R] Problem with plotting diagnostics - Error in object$coefficients : $ operator is invalid for atomic vectors

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