write_stan_code: Write Stan code for dynamic ecological inference model

Description Usage Arguments Value

Description

Given information on the variable subsets in each time period, write_stan_code writes Stan code for estimating the corresponding model.

Usage

1
2
write_stan_code(x, est_n_evolve = FALSE, verbosity = 1L,
  transition_model = "dirichlet", sampling_model = "dirichlet")

Arguments

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

Value

a character string


devincaughey/estsubpop documentation built on June 11, 2019, 1:31 p.m.