Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


joker (version 0.14.2)

check_optim: Check Optim Arguments

Description

Checks that the arguments supplied by the user are appropriate to be passed to optim(). Used internally in parameter estimation.

Usage

check_optim(par0, method, lower, upper, choices = NULL, len = 1)

Value

par0, possibly altered via match.arg() if it is a character.

Arguments

par0

numeric or character. If numeric, it is passed to optim as the initial estimation, i.e. the par argument. If character, the corresponding estimation method is called and the result is passed to optim instead.

method, lower, upper

arguments passed to optim.

choices

character. A vector of available estimation methods for the par0 argument

len

integer. The appropriate length of the lower and upper argument, as well as par if it is numeric.