Skip to content
Prev 74844 / 398502 Next

abline and linearity over groups

and you can see
...
'reg' is a regression object which contains 'reg$coef'.  If it is
     of length 1 then the value is taken to be the slope of a line
     through the origin, otherwise, the first 2 values are taken to be
     the intercept and slope.
...

and
Call:
lm(formula = test$l ~ test$t)

Coefficients:
(Intercept)       test$t  
     0.4432     104.1688
Call:
lm(formula = test$l ~ test$tF)

Coefficients:
(Intercept)     test$tF1     test$tF2  
    -0.8776     108.1313     208.3376  

when test$tF is factor,these are 3 coef and the first two are used to drow the line,with  Intercept =   -0.8776 and slope= 108.1313   ,and     abline(lm(test$l~test$tF)) is abline(-0.8776,108.1313)


======= 2005-08-03 22:23:57 ÄúÔÚÀ´ÐÅÖÐÐ´µÀ£º=======
= = = = = = = = = = = = = = = = = = = =
			


 

2005-08-03

------
Deparment of Sociology
Fudan University

Blog:http://sociology.yculblog.com