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

From: uep <>
Date: Sat, 08 Nov 2008 14:34:24 -0800 (PST)

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

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 08 Nov 2008 - 22:37:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Nov 2008 - 23:30:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive