xtable::xtable(summary(lm10))
% latex table generated in R 3.2.1 by xtable 1.7-4 package % Mon Oct 5 08:55:47 2015
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.2203 0.1069 2.06 0.0424
x1 0.1898 0.0978 1.94 0.0554
x2 -0.1390 0.1100 -1.26 0.2099
x3 -0.1460 0.0999 -1.46 0.1474
x4 -0.1120 0.0926 -1.21 0.2295
x5 -0.0533 0.1072 -0.50 0.6204
x6 0.2053 0.1022 2.01 0.0475
x7 0.7288 0.1124 6.49 0.0000
x8 0.5901 0.1065 5.54 0.0000
x9 3.4750 0.0971 35.79 0.0000
x10 1.4722 0.0839 17.54 0.0000
Recalcul du modèle en imposant la nullité des premiers coefficients : quand s’arrêter ?
lm_2_10 <- update(object=fit, . ~ . - x1)
xtable::xtable(summary(lm_2_10))
lm_3_10 <- update(object=lm_2_10, . ~ . - x2)
xtable::xtable(summary(lm_3_10))
lm_4_10 <- update(object=lm_3_10, . ~ . - x3)
xtable::xtable(summary(lm_4_10))
lm_5_10 <- update(object=lm_4_10, . ~ . - x4)
xtable::xtable(summary(lm_5_10))
lm_6_10 <- update(object=lm_5_10, . ~ . - x5)
xtable::xtable(summary(lm_6_10))
lm_7_10 <- update(object=lm_6_10, . ~ . - x6)
xtable::xtable(summary(lm_7_10))
lm_8_10 <- update(object=lm_7_10, . ~ . - x7)
xtable::xtable(summary(lm_8_10))
xtable::xtable(summary(lm_8_10))
Où en sommes nous ?
getCall(lm_8_10)
3 Données whiteside
Les données whiteside sont issues du package MASS
data(whiteside, package = 'MASS')
head(whiteside)
## Insul Temp Gas
## 1 Before -0.8 7.2
## 2 Before -0.7 6.9
4