Tidyverse-Friendly Introductory Linear Regression

Datasets and wrapper functions for tidyverse-friendly introductory linear regression, used in ModernDive: An Introduction to Statistical and Data Sciences via R available at < http://moderndive.com/> and DataCamp's Modeling with Data in the Tidyverse available at < https://www.datacamp.com/courses/modeling-with-data-in-the-tidyverse>.


moderndive 0.2.0

Updated package for:


  • Created get_correlation() function to omit `$ syntax and return a data frame
  • Import infer::rep_sample_n() instead of our own defined version, as this function is now included in infer
  • Added evals, house_prices, tactile_prop_red, pennies_sample and mythbusters_yawn datasets
  • Added mean squared error and root mean squared error to output of get_regression_summaries()
  • Added newdata argument to get_regression_points(). When:
    • Original outcome variable is included in newdata, output it as well as residual (See Issue 17).
    • Otherwise omit residual
  • Removed tidyverse from Depends, Imports, or Suggests

moderndive 0.1.1

Fixed broken url in ?bowl_samples

moderndive 0.1.0

  • Added three get_regression_* functions meant for novice R users/regression fitters that process regression model outputs
  • Added datasets:
    • pennies: 800 pennies to be treated as a population from which to simulate sampling a numerical variable from (year of minting)
    • bowl: Bowl of 2400 balls of which 900 are red to be treated as a population from which to simulate sampling a categorical variable from (color). Also known as the urn sampling framework \url{https://en.wikipedia.org/wiki/Urn_problem}.
    • bowl_samples: data from tactile version of sampling from bowl done in class: 10 groups sampled n=50 balls from and counted the number red [ADD MODERNDIVE LINK]

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.0 by Albert Y. Kim, 6 months ago


Report a bug at https://github.com/ModernDive/moderndive_package/issues

Browse source code at https://github.com/cran/moderndive

Authors: Albert Y. Kim [cre] , Chester Ismay [aut] , Andrew Bray [ctb]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports magrittr, dplyr, tibble, janitor, broom, formula.tools, stringr, knitr, assertive, infer, rlang

Suggests testthat, covr, ggplot2

See at CRAN