crossv_loglik: Get Cross-Validated Log-Likelihood

Description Usage Arguments Value Methods (by class)

Description

Get Cross-Validated Log-Likelihood

Get Cross-Validated Log-Likelihood for a survreg_map model

Usage

1
2
3
4
5
crossv_loglik(object, ...)

## S3 method for class 'survreg_map'
crossv_loglik(object, folds = 5, seed = NULL,
  mc.cores = NULL, ...)

Arguments

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 parallel::mclapply for running folds in parallel.

Value

A vector of log-liklihoods, one for each fold

Methods (by class)


jwdink/survbayes documentation built on May 4, 2019, 4:23 p.m.