Skip to contents

Check which parameters are at or beyond their lower or upper bounds after optimization.

Usage

check_bounds(opt, lower, upper)

Arguments

opt

An optimized TMB object. Must contain a par element with named parameter vector.

lower

A numeric vector of lower bounds, same length as opt$par.

upper

A numeric vector of upper bounds, same length as opt$par.

Value

A data.frame containing only parameters at their bounds, with columns:

par

Character. Parameter name.

lb

Numeric. Lower bound.

value

Numeric. Current parameter value.

ub

Numeric. Upper bound.

index

Integer. Parameter index in the original vector.