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

Manderscheid Katharina Katharina.Manderscheid at unilu.ch
Wed Dec 8 10:27:48 CET 2010


hi lexi 
indeed, for a week or so i can also plot the diagnostics - same script, no change in data... maybe an update of a package, i don't know.
katharina

----------------------------------------------
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: Setlhare Lekgatlhamang [mailto:SetlhareL at bob.bw] 
Gesendet: Mittwoch, 8. Dezember 2010 10:00
An: Manderscheid Katharina; Duncan Murdoch
Betreff: RE: [R] Problem with plotting diagnostics - Error in object$coefficients : $ operator is invalid for atomic vectors

Dear Katharina,

I would like to confirm what Duncan found - i.e., R 2.12.0 is able to plot the diagnostics without a problem.

Lexi

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Manderscheid Katharina
Sent: Thursday, November 25, 2010 12:26 PM
To: 'r-help at r-project.org'; 'Duncan Murdoch'
Subject: Re: [R] Problem with plotting diagnostics - Error in object$coefficients : $ operator is invalid for atomic vectors

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

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



DISCLAIMER:\ Sample Disclaimer added in a VBScript.\ ...{{dropped:3}}



More information about the R-help mailing list