f_get_best_surv_model: Choose the best model out of a set based on a metric.

Description Usage Arguments Details Value

View source: R/survival_fit.R

Description

Choose the best model out of a set based on a metric.

Usage

1
f_get_best_surv_model(surv_fits, metric = c("AIC"))

Arguments

surv_fits

A list object from f.get.survival.probs that gives a collection (list) of parametric survival fit object.

metric

The metric to choose the model by. Currently supports selecting the best model using one (and only one) of the following metrics: 1. "AIC": Akaike information criterion 2. "BIC": Bayesian information criterion 3. "m2LL": -2*log likelihood

Details

Gets the best survival model, according to a particular metric. Current implementation is limited to selecting the best model using one (and only one) of the following metrics: 1. Akaike information criterion (AIC) 2. Bayesian information criterion (BIC) 3. -2*log likelihood (-2LL)

Value

The best model according to the chosen metric.


MattWiener/heemodFits documentation built on May 19, 2019, 8:21 a.m.