GenEst (version 1.4.5)

refMod: 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