Skip to content

Instantly share code, notes, and snippets.

@mustafaascha
Created August 23, 2016 01:42
Show Gist options
  • Save mustafaascha/4905ae11194bf95d895646279c10977d to your computer and use it in GitHub Desktop.
Save mustafaascha/4905ae11194bf95d895646279c10977d to your computer and use it in GitHub Desktop.
This code is intended to show how to use the RMS package for regression and k-fold cross-validation.
library(rms)
dd <- datadist(mtcars)
mtcarsRegression <-
ols(mpg ~ hp + wt, data = mtcars, x = TRUE, y = TRUE)
validate(mtcarsRegression)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment