Tidyverse-Friendly Introductory Linear Regression

Datasets and wrapper functions for tidyverse-friendly introductory linear regression, used in "Statistical Inference via Data Science: A ModernDive into R and the Tidyverse" available at < https://moderndive.com/>.


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.5.2 by Albert Y. Kim, 3 months ago


Report a bug at https://github.com/moderndive/moderndive/issues

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

Authors: Albert Y. Kim [aut, cre] , Chester Ismay [aut] , Andrew Bray [ctb] , Delaney Moran [ctb] , Evgeni Chasnovski [ctb] , Will Hopper [ctb] , Marium Tapal [ctb]

Documentation:   PDF Manual  

Task views: Teaching Statistics

GPL-3 license

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

Suggests testthat, covr, rmarkdown, vdiffr, openintro, patchwork, viridis, readr

Suggested by flashlight, pdxTrees.

See at CRAN