- Added minimally viable "parallel slopes" regression model plotting function
gg_parallel_slopes()
. In the future we hope to define a newggplot2
geom. - Added "Why
moderndive
?" vignette - Added ID argument to
get_regression_points()
to return a column that identifies the observational units/rows - Datasets:
+ Added
DD_vs_SB
: Dunkin Donuts and Starbucks in Eastern Massachusetts data collected by @DelaneyMoran + Addedpromotions
: tibble version ofopenintro::gender.discrimination
used to illustrate permutation test. + AddedMA_schools
: Relationship between SAT scores and socio-economic status for Massachusetts high schools. + Addedmythbusters_yawn
: Data from study on Mythbusters show on whether yawning is + Addedpromotions_shuffled
: one instance ofpromotions
withgender
permuted/shuffled + Originalpennies_sample
sample of 40 pennies frompennies
has been renamedorig_pennies_sample
. Newpennies_sample
consists of 50 pennies sampled from bank in Northampton, MA, USA on 2019/2/1. + Addedpennies_resamples
: 35 bootstrap resamples of newpennies_sample
+ Addedmovies_genre
: random sample of 32 action and 36 romance movies fromggplot2movies::movies
- Removed all
assertive::assert()
code - Converted
house_prices$date
fromdttm
(date-time) todate
per R4DS comment on using simplest data type possible
Updated package for:
- Use in DataCamp's Modeling with Data in the Tidyverse, in particular added
evals
andhouse_prices
datasets and updatedget_regression_table()
andget_regression_points()
functions. - v0.4.0 of ModernDive textbook
Details:
- 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 ininfer
- Added
evals
,house_prices
,tactile_prop_red
,pennies_sample
andmythbusters_yawn
datasets - Added mean squared error and root mean squared error to output of
get_regression_summaries()
- Added
newdata
argument toget_regression_points()
. When:- Original outcome variable is included in
newdata
, output it as well asresidual
(See Issue 17). - Otherwise omit
residual
- Original outcome variable is included in
- Removed
tidyverse
from Depends, Imports, or Suggests
Fixed broken url in ?bowl_samples
- 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 frombowl
done in class: 10 groups sampled n=50 balls from and counted the number red [ADD MODERNDIVE LINK]