Manderscheid Katharina
2010-Nov-17 15:28 UTC
[R] Problem with plotting diagnostics - Error in object$coefficients : $ operator is invalid for atomic vectors
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 ---------------------------------------------- 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 [[alternative HTML version deleted]]
Duncan Murdoch
2010-Nov-17 15:32 UTC
[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, > katI 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
Manderscheid Katharina
2010-Dec-08 09:27 UTC
[R] Problem with plotting diagnostics - Error in object$coefficients : $ operator is invalid for atomic vectors
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, > katI 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}}