View source: R/FUNCTION_generateInits.R
generateInits | R Documentation |
This function generates initial values ("inits") for the MCMC sampling forms. Defaults settings are under development. Follow the discussion at this thread.
generateInits(priors, model_type = "Basic", n.chains = 2, filename = NULL)
priors |
output from |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.