create_stan_data: function to generate a stan input list from population data

Description Usage Arguments Value

View source: R/stan_utils.R

Description

function to generate a stan input list from population data

Usage

1
2
create_stan_data(model, final_pop, init_pop, times, c_mat = NA,
  simple_bd = FALSE)

Arguments

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

Value

A data list to pass to the Stan sampling function


jproney/bpinference documentation built on April 19, 2021, 2:18 a.m.