Learn R Programming

moderndive (version 0.7.0)

Tidyverse-Friendly Introductory Linear Regression

Description

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 .

Copy Link

Version

Install

install.packages('moderndive')

Monthly Downloads

5,363

Version

0.7.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 1st, 2024

Functions in moderndive (0.7.0)

geom_categorical_model

Regression model with one categorical explanatory/predictor variable
get_regression_table

Get regression table
house_prices

House Sales in King County, USA
gg_parallel_slopes

Plot parallel slopes model
movies_sample

Random sample of 68 action and romance movies
ma_traffic_2020_vs_2019

Massachusetts 2020 vs. 2019 Traffic Data Comparison
mario_kart_auction

Data from Mario Kart Ebay auctions
mythbusters_yawn

Data from Mythbusters' study on contagiousness of yawning
pennies

A population of 800 pennies sampled in 2011
geom_parallel_slopes

Parallel slopes regression model
get_correlation

Get correlation value in a tidy way
tidy_summary

This function calculates the five-number summary (minimum, first quartile, median, third quartile, maximum) for specified numeric columns in a data frame and returns the results in a long format. It also handles categorical, factor, and logical columns by counting the occurrences of each level or value, and includes the results in the summary. The type column indicates whether the data is numeric, character, factor, or logical.
orig_pennies_sample

A random sample of 40 pennies sampled from the pennies data frame
spotify_52_shuffled

Spotify 52-Track Sample Dataset with 'popular or not' shuffled
get_regression_summaries

Get regression summary values
get_regression_points

Get regression points
pennies_sample

A sample of 50 pennies
reexports

Objects exported from other packages
promotions_shuffled

One permutation/shuffle of promotions
pennies_resamples

Bootstrap resamples of a sample of 50 pennies
tactile_prop_red

Tactile sampling from a tub of balls
moderndive

moderndive - Tidyverse-Friendly Introductory Linear Regression
coffee_ratings

Data from the Coffee Quality Institute's review pages in January 2018
spotify_by_genre

Spotify by Genre Dataset
%>%

Pipe operator
mass_traffic_2020

2020 road traffic volume and crash level date for 13 Massachusetts counties
ipf_lifts

International Power Lifting Results A subset of international powerlifting results.
un_member_states_2024

UN Member States 2024 Dataset
pop_sd

Calculate Population Standard Deviation
old_faithful_2024

Old Faithful Eruptions Dataset (2024)
saratoga_houses

House Prices and Properties in Saratoga, New York
spotify_52_original

Spotify 52-Track Sample Dataset
promotions

Bank manager recommendations based on (binary) gender
amazon_books

Sample of Amazon books
envoy_flights

Envoy Air flights data for 2023
DD_vs_SB

Dunkin Donuts vs Starbucks
bowl

A sampling bowl of red and white balls
almonds_bowl

Chocolate-covered almonds data
early_january_2023_weather

Early January hourly weather data for 2023
almonds_sample_100

Chocolate-covered almonds data sample of size 100
bowl_sample_1

Tactile sample of size 50 from a bowl of balls
babies

Data on maternal smoking and infant health
avocados

Avocado Prices by US Region
early_january_weather

Early January hourly weather data
evals

Teaching evaluations at the UT Austin
alaska_flights

Alaska flights data
almonds_sample

Chocolate-covered almonds data sample of size 25
ev_charging

Electric vehicle charging sessions for a workplace charging program
bowl_samples

Sampling from a bowl of balls
coffee_quality

Coffee Quality Dataset
MA_schools

Massachusetts Public High Schools Data