Tidyverse 的数据建模
Albert Y. Kim
Assistant Professor of Statistical and Data Sciences



在 $y = f(\vec{x}) + \epsilon$ 中使用不同 $f()$ 的课程:
# 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 工具:ggplot2 和 dplyrevals 与 house_prices 等数据集Tidyverse 的数据建模