Description Usage Arguments Value Author(s) Examples
Fit a Bayesian 3-level Poisson model using Stan to evaluate effect of various sampling strategies on biases when looking at incidence.
1 2 | sample_incidence(data, iter = 500, warmup = 100, chains = 4, cores,
seed = 123, nsimul)
|
data |
Data file. |
iter |
A positive integer specifying how many iterations for each chain (including warmup). Default is 500. |
warmup |
A positive integer specifying number of warmup (aka burnin)
iterations. Warmup samples should not be used for inference. The number of
warmup should not be larger than |
chains |
A positive integer specifying number of chains. Defaults to 4. |
cores |
Number of cores to use when executing the chains in parallel (up to the number of chains). |
seed |
Positive integer. Used by |
nsimul |
Number of simulations. |
An object of class stanfit
.
Denis Haine
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.