Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. a.lm = lm(Y ~ x1 + x2)
  2.  
  3. summary(a.lm)
  4. Estimate Std. Error t value Pr(>|t|)
  5. (Intercept) 0.521 0.20 1.446 0.19
  6. x1 -0.61 0.11 1.451 0.17
  7. x2Low -0.78 0.22 -2.34 0.005
  8. x2Medium -0.56 0.45 -2.34 0.005
  9.  
  10. x2a = factor(x2, levels=c("Low", "Medium", "High"))
  11.  
  12. ?contrasts
  13. ?C # which also means you should use either "c" or "C" as variable names.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement