Skip to content

Recipes for common linear regression operations: model comparisons, heteroskedasticity, collinearity, goodness of fit

Notifications You must be signed in to change notification settings

fiddlesleet/Linear-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinearRegression

linear-regression-workflow.R

A workflow for processing linear regression
  1. Get correlations
  2. Scatterplot of independent vs. dependent variable
  3. Density plot of variable distributions; check for normal distribution to use linear regression
  4. (Optional) Box plot to visualize outliers
  5. Build linear model
  6. Evaluate linear model: t-stat, p-value, goodness of fit with f-stat & standard error, adjusted r^2, AIC, BIC
  7. Rebuild linear model with training & test sets; measure accuracy via correlation of actual vs predicted values
  8. K-fold cross validation: cross-validate the linear model with k-folds; analyze

About

Recipes for common linear regression operations: model comparisons, heteroskedasticity, collinearity, goodness of fit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages