Skip to contents

Shiny App

ols_launch_app()
Launch shiny app

Regression

ols_regress()
Ordinary least squares regression

All Possible Regression

ols_step_all_possible() plot(<ols_step_all_possible>)
All possible regression
ols_step_all_possible_betas()
All possible regression variable coefficients

Best Subset Regression

Forward Selection

ols_step_forward_aic() plot(<ols_step_forward_aic>)
Stepwise AIC forward regression
ols_step_forward_sbc() plot(<ols_step_forward_sbc>)
Stepwise SBC forward regression
ols_step_forward_sbic() plot(<ols_step_forward_sbic>)
Stepwise SBIC forward regression
ols_step_forward_r2() plot(<ols_step_forward_r2>)
Stepwise R-Squared forward regression
ols_step_forward_adj_r2() plot(<ols_step_forward_adj_r2>)
Stepwise Adjusted R-Squared forward regression
ols_step_forward_p() plot(<ols_step_forward_p>)
Stepwise forward regression

Backward Selection

ols_step_backward_aic() plot(<ols_step_backward_aic>)
Stepwise AIC backward regression
ols_step_backward_sbc() plot(<ols_step_backward_sbc>)
Stepwise SBC backward regression
ols_step_backward_sbic() plot(<ols_step_backward_sbic>)
Stepwise SBIC backward regression
ols_step_backward_r2() plot(<ols_step_backward_r2>)
Stepwise R-Squared backward regression
ols_step_backward_adj_r2() plot(<ols_step_backward_adj_r2>)
Stepwise Adjusted R-Squared backward regression
ols_step_backward_p() plot(<ols_step_backward_p>)
Stepwise backward regression

Both Direction Selection

Residual Diagnostics

ols_plot_resid_box()
Residual box plot
ols_plot_resid_fit()
Residual vs fitted plot
ols_plot_resid_hist()
Residual histogram
ols_plot_resid_qq()
Residual QQ plot
ols_test_correlation()
Correlation test for normality
ols_test_normality()
Test for normality

Heteroskedasticity

ols_test_bartlett()
Bartlett test
ols_test_breusch_pagan()
Breusch pagan test
ols_test_score()
Score test
ols_test_f()
F test

Collinearity Diagnostics

Measures of Influence

ols_plot_cooksd_bar()
Cooks' D bar plot
ols_plot_cooksd_chart()
Cooks' D chart
ols_plot_dfbetas()
DFBETAs panel
ols_plot_dffits()
DFFITS plot
ols_plot_resid_stud()
Studentized residual plot
ols_plot_resid_stand()
Standardized residual chart
ols_plot_resid_lev()
Studentized residuals vs leverage plot
ols_plot_resid_stud_fit()
Deleted studentized residual vs fitted values plot
ols_plot_hadi()
Hadi plot
ols_plot_resid_pot()
Potential residual plot
ols_leverage()
Leverage
ols_hadi()
Hadi's influence measure
ols_press()
PRESS
ols_pred_rsq()
Predicted rsquare
ols_test_outlier()
Bonferroni Outlier Test

Information Criteria

ols_aic()
Akaike information criterion
ols_sbc()
Bayesian information criterion
ols_sbic()
Sawa's bayesian information criterion
ols_mallows_cp()
Mallow's Cp
ols_msep()
MSEP
ols_fpe()
Final prediction error
ols_apc()
Amemiya's prediction criterion
ols_hsp()
Hocking's Sp

Model Fit Assessment

ols_plot_resid_fit_spread() ols_plot_fm() ols_plot_resid_spread()
Residual fit spread plot
ols_correlations()
Part and partial correlations
ols_plot_obs_fit()
Observed vs fitted values plot
ols_pure_error_anova()
Lack of fit F test
ols_plot_diagnostics()
Diagnostics panel

Plot Data

ols_prep_avplot_data()
Added variable plot data
ols_prep_regress_x()
Regress predictor on other predictors
ols_prep_regress_y()
Regress y on other predictors
ols_prep_cdplot_data()
Cooks' D plot data
ols_prep_outlier_obs()
Cooks' D outlier observations
ols_prep_cdplot_outliers()
Cooks' d outlier data
ols_prep_dfbeta_data()
DFBETAs plot data
ols_prep_dfbeta_outliers()
DFBETAs plot outliers
ols_prep_dsrvf_data()
Deleted studentized residual plot data
ols_prep_rfsplot_fmdata() ols_prep_rfsplot_rsdata()
Residual fit spread plot data
ols_prep_rvsrplot_data()
Residual vs regressor plot data
ols_prep_rstudlev_data()
Studentized residual vs leverage plot data
ols_prep_srplot_data()
Studentized residual plot data
ols_prep_srchart_data()
Standardized residual chart data

Variable Contribution

ols_plot_resid_regressor()
Residual vs regressor plot
ols_plot_added_variable()
Added variable plots
ols_plot_comp_plus_resid()
Residual plus component plot
rvsr_plot_shiny()
Residual vs regressors plot for shiny app

Miscellaneous

ols_plot_response()
Response variable profile
ols_plot_reg_line()
Simple linear regression line

Data

olsrr comes with a built-in datasets which are used to illustrate the functions as well as for running tests.

surgical
Surgical Unit Data Set
stepdata
Test Data Set