IMS, Ch. 7
Smith College
Feb 11, 2026
Research Question
Problem
# A tibble: 1 × 6
num_obs mean_poverty sd_poverty mean_unempl sd_unempl correl
<int> <dbl> <dbl> <dbl> <dbl> <dbl>
1 51 13.5 3.02 7.50 1.83 0.340
# A tibble: 1 × 4
state abbr poverty unempl
<fct> <fct> <dbl> <dbl>
1 Massachusetts MA 10.5 6.9
# A tibble: 1 × 3
n SST SST_alt
<int> <dbl> <dbl>
1 51 457. 457.
broom package to work with model objects
Call:
lm(formula = poverty ~ unempl, data = state_stats)
Residuals:
Min 1Q Median 3Q Max
-5.1974 -1.8006 -0.2719 1.9045 6.6224
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 9.2528 1.7107 5.409 1.88e-06 ***
unempl 0.5605 0.2216 2.529 0.0147 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 2.873 on 49 degrees of freedom
Multiple R-squared: 0.1155, Adjusted R-squared: 0.09745
F-statistic: 6.398 on 1 and 49 DF, p-value: 0.01469
glance() to compute the \(R^2\) value for the second model: