[R] Plotting Standard Regression Fit-Am I wrong or a bug?

Daniel Malter daniel at umd.edu
Sun Nov 9 00:13:02 CET 2008



where variablename is in {mats,time,quar}, i.e. do it for each of them. This
will tell you. Btw: I think you might wanna pickup an introductory manual.

Btw. Peter Dalgaard pointed to the same issue regarding the plot.


cuncta stricte discussurus

-----Ursprüngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von uep
Gesendet: Saturday, November 08, 2008 5:34 PM
An: r-help at r-project.org
Betreff: Re: [R] Plotting Standard Regression Fit-Am I wrong or a bug?

However, now a linear regression with a factor for quarterly effect doesn't
want to work for me:
and I get an error message:
"Error in model.frame.default(formula = mats ~ time + quar,
drop.unused.levels = TRUE) : 
  variable lengths differ (found for 'quar')"

Which variable has wrong length?

Looking forward to a response

Unfortunately for me, this example works and does plot fitted line and
predicted points. I really don't understand why I can't make the same
commands work when trying with my real life data.


View this message in context:
Sent from the R help mailing list archive at Nabble.com.

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

More information about the R-help mailing list