library("ISLR")
data("College")
a)
b)
c)
d)
library("ISLR")
data("College")
summary(lm(College$Personal~College$Room.Board))
##
## Call:
## lm(formula = College$Personal ~ College$Room.Board)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1153.1 -444.6 -92.3 316.0 5505.2
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 1877.14827 97.64374 19.224 < 2e-16 ***
## College$Room.Board -0.12312 0.02173 -5.666 2.06e-08 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
,##
## Residual standard error: 663.9 on 775 degrees of freedom
## Multiple R-squared: 0.03977, Adjusted R-squared: 0.03853
## F-statistic: 32.1 on 1 and 775 DF, p-value: 2.065e-08
a)
b)
c)
d)
summary(lm(log(College$Personal)~College$Room.Board))
## Call:
## lm(formula = log(College$Personal) ~ College$Room.Board)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.61024 -0.31235 0.03383 0.31037 1.77383
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 7.485e+00 6.992e-02 107.057 < 2e-16 ***
## College$Room.Board -9.187e-05 1.556e-05 -5.904 5.3e-09 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.4754 on 775 degrees of freedom
,
data("College")
a)
b)
c)
d)
library("ISLR")
data("College")
summary(lm(College$Personal~College$Room.Board))
##
## Call:
## lm(formula = College$Personal ~ College$Room.Board)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1153.1 -444.6 -92.3 316.0 5505.2
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 1877.14827 97.64374 19.224 < 2e-16 ***
## College$Room.Board -0.12312 0.02173 -5.666 2.06e-08 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
,##
## Residual standard error: 663.9 on 775 degrees of freedom
## Multiple R-squared: 0.03977, Adjusted R-squared: 0.03853
## F-statistic: 32.1 on 1 and 775 DF, p-value: 2.065e-08
a)
b)
c)
d)
summary(lm(log(College$Personal)~College$Room.Board))
## Call:
## lm(formula = log(College$Personal) ~ College$Room.Board)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.61024 -0.31235 0.03383 0.31037 1.77383
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 7.485e+00 6.992e-02 107.057 < 2e-16 ***
## College$Room.Board -9.187e-05 1.556e-05 -5.904 5.3e-09 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.4754 on 775 degrees of freedom
,