refMod: Return the model with the greatest log-likelihood

View source: R/model_utility_functions.R

refModR Documentation

Return the model with the greatest log-likelihood

Description

Compares all fitted models in a list and returns the model with the greatest log-likelihood

Usage

refMod(modelSet)

Arguments

modelSet

a list of fitted models with a loglik element. Models may be pkm, cpm, survreg objects or any objects with a loglik component.

Value

The model object with the greatest log-likelihood among the models in modelSet


ddalthorp/GenEst documentation built on June 4, 2023, 1 a.m.