Learn R Programming

likeLTD (version 6.3.0)

relistArguments: likeLTD::relistArguments

Description

In practice, this function undoes the flattening needed to run optim. Hence, it should take the same parameters that optimisation.params does. Takes a linear vector of parameters, as passed to and returned from an optimisation method, and makes it a list. Transforms degradation parameters back into normal (non-logarithmic) form. Adds fixed arguments back into the list.

Usage

relistArguments(parameters, hypothesis, fixed=NULL, 
logDegradation=TRUE, arguments=NULL)

Arguments

parameters

Vector of parameters

hypothesis

Hypothesis from which objective function was obtained.

fixed

Names of the arguments which were fixed during optimisation.

logDegradation

Whether degradation is logarithmic form.

arguments

Initial guess, if any, when starting minimization.

Value

Input parameters as a list.

See Also

optimisation.params, initial.arguments