Résultat :
> vdv = read.table("Data/ventes_depenses_visites.txt")
> vdv.lm = lm(data=vdv, formula= ventes~depenses+visites)
> summary(vdv.lm)
Call:
lm(formula = ventes ~ depenses + visites, data = vdv)
Residuals:
1 2 3 4 5 6 7 8
-1.16620 -0.98028 0.53521 2.36901 -1.18310 -0.91268 1.26197 0.07606
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 40.6676 18.7479 2.169 0.0822 .
depenses 0.8169 0.9749 0.4403
visites 1.0197 0.3397 3.002 0.0300 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: on 5 degrees of freedom
Multiple R-squared: 0.8718, Adjusted R-squared:
F-statistic: on 2 and 5 DF, p-value:
Tous les indicateurs de qualité sont en baisse car la variable dépenses est contre-productive