R Code Library

Here we provide many of the useful pieces of R code we find very handy. We hope you would provide your feedback, and if you like the code, please let us know. If you would like to see some code written or some examples, we would love to help out.

Create Lags – Function that creates n number of lags for a field, and/or n number of moving averages for a field in a dataset

Analyze Linear Models – Function that combines the analysis for Linear Models and tests primary assumptions of normality of residuals, constant variance of residuals and independence of residuals.