findTheBestModel: Pick one model as the best

Description Usage Arguments Value

Description

findTheBestModel finds the first (by default) model in a list that does not have convergence errors. As the formula lists are configured now, this will return the most complex model (that does not have convergence errors). This does not run any model comparison, it just finds the first (or last if specified with option last=TRUE)

Usage

1
findTheBestModel(models, last = FALSE)

Arguments

models

A list of models, as generated by fitModels

last

A logical, should the last model be picked? By default this is FALSE, which means the first model will be picked.

Value

Returns a list of length two, the first, named chosenModel is the model chosen, allModels has all of the models, and is a copy of models


jonkeane/mocapGrip documentation built on May 19, 2019, 7:30 p.m.