Learn R Programming

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

olsrr

Overview

The olsrr package provides following tools for teaching and learning OLS regression using R:

  • Comprehensive Regression Output

  • Variable Selection Procedures

    • All Possible Regression
    • Best Subsets Regression
    • Stepwise Regression
    • Stepwise Forward Regression
    • Stepwise Backward Regression
    • stepAIC Regression
    • stepAIC Forward Regression
    • stepAIC Backward Regression
  • Heteroskedasticity Tests

    • Bartlett Test
    • Breusch Pagan Test
    • F Test
    • Score Test
  • Collinearity Diagnostics

    • Variance Inflation Factors
    • Tolerance
    • Eigenvalues
    • Condition Indices
  • Model Fit Assessment

    • Residual Fit Spread Plot
    • Part & Partial Correlations
    • Observed vs Fitted Values Plot
    • Lack of Fit F Test
    • Diagnostics Panel
  • Measures of Influence

    • Cook's D Bar Plot
    • Cook's D Chart
    • DFBETAs Panel
    • DFFITS Plot
    • Studentized Residual Plot
    • Standardized Residual Chart
    • Studentized Residuals vs Leverage Plot
    • Deleted Studentized Residuals vs Fitted Values Plot
    • Hadi Plot
    • Potential Residual Plot
  • Residual Diagnostics

    • Residual QQ Plot
    • Residual Histogram
    • Residual Box Plot
    • Residual Normality Test
    • Residual vs Fitted Values Plot
  • Variable Contribution Assessment

    • Residual vs Regressor Plot
    • Added Variable Plot
    • Residual Plus Component Plot

Installation

You can install olsrr from github with:

# install olsrr from CRAN
install.packages("olsrr")

# the development version from github
# install.packages("devtools")
devtools::install_github("rsquaredacademy/olsrr")

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('olsrr')

Monthly Downloads

16,379

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Aravind Hebbali

Last Published

May 11th, 2017

Functions in olsrr (0.1.0)

ols_avplots

Added Variable Plot
ols_bartlett_test

Bartlett Test
hsb

Test Data Set
ols_aic

AIC
ols_all_subset

All Possible Regression
ols_apc

Amemiya's Prediction Criterion
cement

Test Data Set
fitness

Test Data Set
ols_best_subset

Best Subsets Regression
ols_bp_test

Breusch Pagan Test
ols_regress

Ordinary Least Squares Regression
ols_resp_viz

Visualize Response Variable
ols_dffits_plot

DFFITS Plot
ols_diagnostic_panel

Diagnostics Panel
ols_hadi_plot

Hadi Plot
ols_hsp

Hocking's Sp
ols_dsrvsp_plot

Deleted Studentized Residual vs Fitted Values Plot
ols_f_test

F Test for Constant Variance
ols_leverage

Leverage
ols_coll_diag

Collinearity Diagnostics
ols_cooksd_barplot

Cooks' D Bar Plot
ols_fpe

Final Prediction Error
ols_correlations

Part and Partial Correlations
ols_dfbetas_panel

DFBETAs Panel
ols_ovsp_plot

Actual vs Fitted Values Plot
ols_potrsd_plot

Potential Residual Plot
ols_cooksd_chart

Cooks' D Chart
ols_corr_test

Correlation Test For Normality
ols_msep

MSEP
ols_norm_test

Test for normality
ols_mallows_cp

Mallow's Cp
ols_rsd_boxplot

Residual Box Plot
ols_rsd_hist

Residual Histogram
surgical

Surgical Unit Data Set
ols_srsd_plot

Studentized Residual Plot
ols_step_backward

Stepwise Backward Regression
ols_stepaic_both

Stepwise AIC Regression
ols_stepaic_forward

Stepwise AIC Forward Regression
ols_hadi

Hadi's Measure
ols_rfs_plot

Residual Fit Spread Plot
ols_rpc_plot

Residual Plus Component Plot
ols_pred_rsq

Predicted Rsquare
ols_press

PRESS (Prediction Sum of Squares)
ols_rsd_qqplot

Residual QQ Plot
ols_rsdlev_plot

Studentized Residuals vs Leverage Plot
ols_stepwise

Stepwise Regression
olsrr

olsrr package
ols_rvsp_plot

Residual vs Fitted Plot
ols_rvsr_plot

Residual vs Regressors Plot
ols_sbc

SBC
ols_sbic

SBIC
ols_step_forward

Stepwise Forward Regression
ols_pure_error_anova

Lack of Fit F Test
ols_reg_line

Simple Linear Regression Line
ols_score_test

Score Test for heteroskedasticity
ols_srsd_chart

Standardized Residual Chart
rivers

Test Data Set
rvsr_plot_shiny

Residual vs Regressors Plot Shiny
ols_stepaic_backward

Stepwise AIC Backward Regression