[R] lm question

Bill Simpson wsi at gcal.ac.uk
Mon Oct 9 13:53:13 CEST 2000


Thanks very much Peter, Martyn, and Brian for the help.

> > lm(y~x:(grp-1)+1)
> 
> Call:
> lm(formula = y ~ x:(grp - 1) + 1)
> 
> Coefficients:
> (Intercept)       x.grpa       x.grpb       x.grpc  
>    -0.80977      0.01847      0.13124      0.14259  
It seems to me that there is something seriously wrong here since for the
data I posted (I just re-checked it),
intercept=-1, slope a=.1, slope b=.2, and slope c = .3
(These fit the data exactly)

This leaves aside the comments of Martyn and Brian.

Bill

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list