ols_KCV | R Documentation |
ols_KCV makes the K-Fold Cross Validation for ordinary least squared regression
ols_KCV(data,k,y,x)
data |
full dataset which will be used for KCV |
k |
integer, which indicates how many training and test set will be splited from the dataset |
y |
dependent variable |
x |
independent variables |
the root mean square error after K-Fold Cross Validation on training set
df<-mtcars
ols_KCV(mtcars,5,"hp",c("mpg","qsec","disp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.