Description Usage Arguments Value Methods (by class)
Get Cross-Validated Log-Likelihood
Get Cross-Validated Log-Likelihood for a survreg_map model
1 2 3 4 5 | crossv_loglik(object, ...)
## S3 method for class 'survreg_map'
crossv_loglik(object, folds = 5, seed = NULL,
mc.cores = NULL, ...)
|
object |
An object to be cross-validated |
... |
Ignored |
folds |
Either (a) the number of folds, or (b) a list of indices for the *test* group. |
seed |
Allows you to set the seed for reproducible folds. This is essential if you want to compare cross-validation estimates for different calls to this function. |
mc.cores |
Passed to |
A vector of log-liklihoods, one for each fold
survreg_map
:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.