Sei sulla pagina 1di 1

library(stats)

> step(model1)
Start: AIC=376.9
y ~ x1 + x2

Df Sum of Sq RSS AIC


- x2 1 2.8703e+09 5.3641e+10 375.83
<none> 5.0771e+10 376.90
- x1 1 1.7009e+10 6.7780e+10 379.81
Step: AIC=375.83
y ~ x1
Df Sum of Sq RSS AIC
<none> 5.3641e+10 375.83
- x1 1 3.0876e+10 8.4517e+10 381.56

Call:
lm(formula = y ~ x1, data = latihan)

Coefficients:
(Intercept) x1
1795414 -60738

Potrebbero piacerti anche