Call:
lm(formula = y ~ x)
Residuals:
1 2 3 4 5
-0.08772 1.11210 -1.48796 0.79185 -0.32828
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.68778 0.79939 3.362 0.0437 *
x -0.07999 0.03223 -2.481 0.0892 .
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 1.182 on 3 degrees of freedom
Multiple R-squared: 0.6724, Adjusted R-squared: 0.5632
F-statistic: 6.158 on 1 and 3 DF, p-value: 0.08916
Last ned datasettene først! Se Data til venstre i margen
\[ \text{tot_wellbeing} = \beta_0+ \beta_1 \cdot \text{tothours}+ \beta_2 \cdot \text{male}+\epsilon\]
Call:
lm(formula = oppmøte ~ motivasjon)
Residuals:
1 2 3 4 5 6
1.0667 -0.4333 -0.1333 0.2667 0.3667 -1.1333
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.8333 0.6872 4.123 0.01458 *
motivasjon 0.9000 0.1190 7.562 0.00164 **
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.8416 on 4 degrees of freedom
Multiple R-squared: 0.9346, Adjusted R-squared: 0.9183
F-statistic: 57.18 on 1 and 4 DF, p-value: 0.001639
ID1 har residual 1.0667.
Adjusted R-squared: 0.9183: 92% av variasjon i oppmøte forklare vha av varierende motivasjon. 8% av variasjonen skyldes andre faktorer enn motivasjon
Call:
lm(formula = eksamensscore ~ oppmøte + motivasjon)
Residuals:
1 2 3 4 5 6
-0.276471 -0.147059 0.747059 0.005882 -0.029412 -0.300000
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.1000 0.9336 0.107 0.9215
oppmøte 0.4529 0.2965 1.528 0.2240
motivasjon 1.0824 0.2760 3.922 0.0295 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.499 on 3 degrees of freedom
Multiple R-squared: 0.9933, Adjusted R-squared: 0.9889
F-statistic: 224.1 on 2 and 3 DF, p-value: 0.0005423
Ett ekstra oppmøte gir 0.45 ekstra poeng på eksamen, gitt at vi kontrollerer for motivasjon
Ett ekstra poeng i motivasjon gir en forventet økning i eksamensscore på 1.08
99%