Learn R Programming

gmwmx2 (version 0.0.5)

theta_to_domain: Convert optimization parameters to domain parameters

Description

Maps a real-valued optimization vector theta into the constrained parameter space used by each model component.

Usage

theta_to_domain(model, theta, prep = NULL)

Value

Named numeric vector (single model) or a named list (sum model).

Arguments

model

A time_series_model or sum_model.

theta

Numeric vector in real space (typically from optim).

prep

Optional output from prepare_optim_layout for sum models.