View source: R/cross_validation.R
Out of Sample Predictions Using Cross Valiation
1 2 3 4 5 6 7 | cv_predict(x, ...)
## Default S3 method:
cv_predict(x, y, tmt, model, folds = 3, ...)
## S3 method for class 'formula'
cv_predict(x, data, model, folds = 3, ...)
|
x |
a |
... |
extra parameters passed to |
y |
a vector of outcomes. |
tmt |
a vector indicating which units received treatment. |
model |
a |
folds |
the number of folds to use for cros validation. |
data |
a |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.