Skip to contents

Each varying growth parameter's series and the semi-parametric surface are drawn by draw_growth_pe_surface from the form the estimation model penalizes them under, at the fitted process error parameters: a parameter's sd in the time-varying half of growth_pe_pars and the surface's in the semi-parametric half, as Get_PE_loglik reads them. The fit's maps decide what is drawn: a cell the map fixes stays at zero, a shared level takes one draw, and years past the fit are active. The first n_cond_yrs years of every replicate keep the fit's own deviations, or the replicate's own draw of them under a joint self test, and the years after them are drawn given those at that replicate's process error. Growth is then rebuilt through derive_sim_growth; under cohort growth that builds only the years before the propagation starts, and the annual cycle advances the rest from each replicate's own numbers at age.

Usage

draw_sim_growth_devs(sim_env)

Arguments

sim_env

Simulation environment holding what Setup_Sim_Growth_RE stored, n_yrs, n_sims and n_cond_yrs (NULL or 0 draws every year).

Value

invisible(NULL); sim_env is modified in place.