Created
August 23, 2016 01:42
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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