Displaying 1 result from an estimated 1 matches for "lm1x".
Did you mean:
lm1
2012 May 12
2
Why can we combine design matrix and data-frame in R?
Hi all,
Could you please help me?
I am trying to understand why this line works:
lm1x = lm(y~X-1, tmp)
Here it seems that I was combining the design matrix and the data frame...
And X below is not a single column, in fact, it's a bunch of columns in
matrix form...
I don't understand why this line works...
Is it just luck, i.e. if we change the data-set and/or formulas to...