Description Usage Arguments Value
Given information on the variable subsets in each time period,
write_stan_code
writes Stan code for estimating the corresponding
model.
1 2 | write_stan_code(x, est_n_evolve = FALSE, verbosity = 1L,
transition_model = "dirichlet", sampling_model = "dirichlet")
|
x |
Either (a) a matrix in which the element in row t, column m indicates the number of groups (G_{tm}) in proportion vector m in time period t (p_{tm}) or (b) a list of population targets from which the matrix above can be created. |
est_n_evolve |
If TRUE, then n^{evol} will modeled as a parameter rather than treated as data. |
sampling_model |
Either "multinomial" or "dirichlet" |
vebosity |
Scalar; if greater than 1, the stan code will be printed |
a character string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.