Modeling with Data in the Tidyverse
Albert Y. Kim
Assistant Professor of Statistical and Data Sciences
Available at http://bit.ly/modeling_tidyverse
Courses with different $f()$ in $y = f(\vec{x}) + \epsilon$:
# Fit model:
model_score_1 <- lm(score ~ age, data = evals)
# Output regression table:
get_regression_table(model_score_1)
# A tibble: 2 x 7
term estimate std_error statistic p_value lower_ci upper_ci
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 intercept 4.46 0.127 35.2 0 4.21 4.71
2 age -0.006 0.003 -2.31 0.021 -0.011 -0.001
tidyverse
tools: ggplot2
and dplyr
evals
and house_prices
datasets (and more)Modeling with Data in the Tidyverse