stan_data: Stan's data block for ODE models

Description Usage Arguments Value Examples

View source: R/stan_utils.R

Description

Stan's data block for ODE models

Usage

1
stan_data(vars_vector, type, inits = TRUE)

Arguments

vars_vector

a string vector. Each element corresponds to a vector's name for which users will supply data.

type

a string vector. It must have the same length as vars_vector . This parameter indicates the type of the variables declared by vars_vector.

inits

a boolean. Indicates whether the block includes the declaration for stocks' init values.

Value

a string that contains the Stan code for the data block.

Examples

1
2
stan_data("y", "int")
stan_data("y", "real", FALSE)

readsdr documentation built on Jan. 13, 2021, 11:08 a.m.