Description Usage Arguments Value
function to generate a stan input list from population data
1 2 | create_stan_data(model, final_pop, init_pop, times, c_mat = NA,
simple_bd = FALSE)
|
model |
The branching process model being estimated |
final_pop |
Population vectors at end of each run. Dimensions ndatapts x ntypes |
init_pop |
= population at beginning of each run. Dimensions ndatapts x ntypes |
times |
= the length of time elapsing between each initial population and each final population. dimensions ndatapts x 1 |
c_mat |
= matrix of dependent variables that vary from run to run. Dimensions ndatapts x ndep |
simple_bd |
= logical value indicating whether or not the model is a simple birth-death process. If TRUE, a simpler data list will be returned |
A data list to pass to the Stan sampling function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.