On this page

Show, without compiling or optimizing, the starts, bounds and map status that a fit of an input bundle would use, including the starts computed from the data that create_parameters() alone cannot show.

Usage

inspect_parameters(x, model = c("acl", "alscl"))

Arguments

ArgumentDefaultDescription
xrequired

Named input bundle accepted by the fitting functions.

modelc("acl", "alscl")

Model to inspect, "acl" or "alscl". Letter case does not matter.

Value

A data frame with one row per scalar parameter or block of process deviations and the columns parameter, kind, start, natural_start, lower, upper, transform, status, map_source, size, dimensions, n_free, n_fixed and n_tied. Starts and bounds are on the optimizer scale.

Details

The starts and bounds are those a fit uses, including the starts computed from the data, free starts moved into their bounds, the recruitment-age bounds, the default map and the shared-F restrictions. kind = "fixed_effect" marks a scalar parameter of the outer optimization; it does not mean that the map fixes it. status is free, fixed, tied, mixed or inactive, and map_source is default, explicit, unmapped or F_structure. Blocks of process deviations start at zero and their natural_start is a multiplier; n_free counts the independent values of the map and n_tied the further entries that share them. exp(mean_log_R) and exp(mean_log_F) are the baseline levels of the processes on the natural scale, not arithmetic means. The transform column names the transform used. Correlations use 2*plogis-1 under correlation_range = "symmetric"; log_t0 of ALSCL uses t0_lower+exp when t0_lower is not 0 and exp with the default 0. Nothing is compiled.

Examples

Run the setup before the example. Fitting examples require an R-compatible C++ toolchain; simulation and export examples may write files.

Example setup
library(ALSCL)
library(ggplot2)
library(patchwork)
data("YTF_example")
x <- YTF_example
inputs <- x[c("data.CatL", "data.wgt", "data.mat")]
dat <- x$data.CatL
x <- YTF_example
parameters <- inspect_parameters(x, "acl")
parameters[, c("parameter", "status", "map_source", "start", "natural_start")]
x$fit_config$alscl$F_structure <- "year"
inspect_parameters(x, "alscl")[, c("parameter", "status", "dimensions", "n_free")]

See also

Search documentation