Learn R Programming

⚠️There's a newer version (1.6) of this package.Take me there.

regclass (version 1.5)

Tools for an Introductory Class in Regression and Modeling

Description

Contains basic tools for visualizing, interpreting, and building regression models. It has been designed for use with the book Introduction to Regression and Modeling with R by Adam Petrie, Cognella Publishers, ISBN: 978-1-63189-250-9 .

Copy Link

Version

Install

install.packages('regclass')

Monthly Downloads

2,573

Version

1.5

License

GPL (>= 2)

Maintainer

Adam Petrie

Last Published

January 10th, 2017

Functions in regclass (1.5)

AUTO

AUTO dataset
BODYFAT2

Secondary BODYFAT dataset
BODYFAT

BODYFAT data
build_model

Variable selection for descriptive or predictive linear and logistic regression models
all_correlations

Pairwise correlations between quantitative variables
ACCOUNT

Predicting whether a customer will open a new kind of account
ATTRACTM

Attractiveness Score (male)
associate

Association Analysis
APPLIANCE

Appliance shipments
ATTRACTF

Attractiveness Score (female)
build_tree

Exploratory building of partition models
CALLS

CALLS dataset
BULLDOZER

BULLDOZER data
CENSUS

CENSUS data
BULLDOZER2

Modified BULLDOZER data
choose_order

Choosing order of a polynomial model
CHURN

CHURN dataset
CHARITY

CHARITY dataset
CENSUSMLR

Subset of CENSUS data
check_regression

Linear and Logistic Regression diagnostics
CUSTREACQUIRE

CUSTREACQUIRE dataset
EX2.TIPS

TIPS data for Exercise 6 in Chapter 2
CUSTVALUE

CUSTVALUE dataset
EX3.ABALONE

ABALONE dataset for Exercise D in Chapter 3
EX6.WINE

WINE data for Exercise 3 Chapter 6
DIET

DIET data
EX7.BIKE

BIKE dataset for Exercise 1 Chapters 7 and 8
DONOR

DONOR dataset
EX3.NFL

NFL data for Exercise A in Chapter 3
EX4.BIKE

Bike data for Exercise 1 in Chapter 4
EX5.BIKE

BIKE dataset for Exercise 4 Chapter 5
EX5.DONOR

DONOR dataset for Exercise 4 in Chapter 5
extrapolation_check

A crude check for extrapolation
CUSTLOYALTY

CUSTLOYALTY dataset
CUSTCHURN

CUSTCHURN dataset
FRIEND

Friendship Potential vs. Attractiveness Ratings
FUMBLES

Wins vs. Fumbles of an NFL team
MOVIE

Movie grosses
NFL

NFL database
see_interactions

Examining pairwise interactions between quantitative variables for a fitted regression model
see_models

Examining model AICs from the "all possible" regressions procedure using regsubsets
SURVEY11

Student survey 2011
SURVEY10

Student survey 2010
cor_matrix

Correlation Matrix
cor_demo

Correlation demo
EX2.CENSUS

CENSUS data for Exercise 5 in Chapter 2
EDUCATION

EDUCATION data
EX9.NFL

NFL data for Exercise 2 Chapter 9
EX9.STORE

Data for Exercise 3 Chapter 9
LARGEFLYER

Interest in frequent flier program (large version)
LAUNCH

New product launch data
outlier_demo

Interactive demonstration of the effect of an outlier on a regression
OFFENSE

Some offensive statistics from NFL dataset
segmented_barchart

Segmented barchart
combine_rare_levels

Combines rare levels of a categorical variable
SMALLFLYER

Interest in a frequent flier program (small version)
confusion_matrix

Confusion matrix for logistic regression models
EX3.BODYFAT

Bodyfat data for Exercise F in Chapter 3
EX3.HOUSING

Housing data for Exercise E in Chapter 3
EX7.CATALOG

CATALOG data for Exercise 2 in Chapters 7 and 8
EX9.BIRTHWEIGHT

Birthweight dataset for Exercise 1 in Chapter 9
EX4.STOCKS

Stock data for Exercise 2 in Chapter 4
EX4.STOCKPREDICT

Stock data for Exercise 2 in Chapter 4 (prediction set)
EX6.CLICK

CLICK data for Exercise 2 in Chapter 6
generalization_error

Calculating the generalization error of a model on a set of data
EX6.DONOR

DONOR dataset for Exercise 1 in Chapter 6
getcp

Complexity Parameter table for partition models
POISON

Cockroach poisoning data
overfit_demo

Demonstration of overfitting
PIMA

Pima Diabetes dataset
PRODUCT

Sales of a product one quarter after release
PURCHASE

PURCHASE data
visualize_relationship

Visualizing the relationship between y and x in a partition model
visualize_model

Visualizations of one or two variable linear or logistic regressions or of partitions models
qq

QQ plot
possible_regressions

Illustrating how a simple linear/logistic regression could have turned out via permutations
SALARY

Harris Bank Salary data
summarize_tree

Useful summaries of partition models from rpart
SURVEY09

Student survey 2009
STUDENT

STUDENT data
suggest_levels

Combining levels of a categorical variable
influence_plot

Influence plot for regression diganostics
WINE

WINE data
mode_factor

Find the mode of a categorical variable
JUNK

Junk-mail dataset
mosaic

Mosaic plot
SPEED

Speed vs. Fuel Efficiency
SOLD26

Predicting future sales
VIF

Variance Inflation Factor
TIPS

TIPS dataset
find_transformations

Transformations for simple linear regression