Fits model for A0 of one of several variants using Hamiltonian Monte Carlo.
1 2 3 4 | A0_estimate(A0data, variant = c("withLatent", "noLatent", "flatA0",
"flatBoth"), cores = getOption("mc.cores", default =
parallel::detectCores()), chains = 3L, iter = 2000L,
method = c("sampling", "optimizing"), ...)
|
A0data |
A list of data required, including known parameters |
variant |
Which A0 variant to use: withLatent, noLatent, flatA0, flatBoth |
cores |
Number of processing cores for running chains in parallel.
See |
chains |
A positive integer specifying the number of Markov chains. The default is 3. |
iter |
Number of iterations per chain (including warmup). Defaults to 2000. |
method |
Either "sampling" (default) which runs the MC sampler, or "optimizing" which optimizes to find the maximum a posteriori estimate. |
... |
Other arguments passed to rstan::sampling() for customizing the Monte Carlo sampler |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.