Compares all fitted models in a list and returns the model with the greatest log-likelihood
refMod(modelSet)
The model object with the greatest log-likelihood among
the models in modelSet
a list of fitted models with a loglik
element.
Models may be pkm
, cpm
, survreg
objects or any
objects with a loglik
component.