You are on page 1of 1

aplicatia-2.

R
Alin

2019-09-22
Note <- c(82, 98, 76, 68, 84, 99, 67, 58, 50, 78)
Absente <- c(4, 2, 2, 3, 1 ,0 , 4, 8, 7 , 3)
Examen <- c(620, 750, 500, 520, 540, 690, 590, 490, 450, 560)

multiple.regression <- lm(Note ~ Absente + Examen)

summary(multiple.regression)

##
## Call:
## lm(formula = Note ~ Absente + Examen)
##
## Residuals:
## Min 1Q Median 3Q Max
## -8.791 -1.809 1.060 2.691 5.016
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 33.42231 13.58416 2.460 0.04344 *
## Absente -3.34018 0.77323 -4.320 0.00348 **
## Examen 0.09446 0.02067 4.569 0.00258 **
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 4.729 on 7 degrees of freedom
## Multiple R-squared: 0.9308, Adjusted R-squared: 0.911
## F-statistic: 47.07 on 2 and 7 DF, p-value: 8.724e-05

You might also like