generateInits: generateInits

View source: R/FUNCTION_generateInits.R

generateInitsR Documentation

generateInits

Description

This function generates initial values ("inits") for the MCMC sampling forms. Defaults settings are under development. Follow the discussion at this thread.

Usage

generateInits(priors, model_type = "Basic", n.chains = 2, filename = NULL)

Arguments

priors

output from generatePriors

model_type

one of "Basic", "Kalman", or "AR1". For details, see this wiki.

n.chains

number of MCMC chains to initiate

filename

either NULL, or a file/path for an output file to save the generated priors (e.g. "OUTPUT/Inits.txt")

sr.scale

an integer value used to rescale the Spn and Rec variables in sr_obj, prior to the MCMC fit, default = 10^6 (i.e. convert to millions). NOTE: If sr.scale is different from 1, then the benchmark estimates are scaled back, but the MCMC estimates of alpha and beta will be in different units then the alpha and beta estimates from the deterministic fit.


SOLV-Code/RapidRicker documentation built on Jan. 14, 2025, 9:36 a.m.