[R] a little statistics help
VBMorozov@lbl.gov
VBMorozov at lbl.gov
Mon Jul 1 15:54:27 CEST 2002
Dear R-guRus:
I am stuck with the following problem in R:
Let's say i have a data.frame with columns X,Y & Z.
X is a column of numbers, Y is a column of N
factors "A", "B", "C", "D", etc and Z is a column of n
factors "a", "b", "c", etc
if i do MyLm<-lm(X~Y*Z - 1) i get all N coefficients for Y-factors, but
only n-1 coefficients for Z-factors, and only N*(n-1) coefficients for
YZ interaction. Is that how it's supposed to be? I would like to get N
coefficients for all factors Y and n coefficients for all factors Z -
how can i do that?
Thank you very much,
Vlad
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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