add_data: Add data to stan model

Description Usage Arguments Examples

View source: R/stan-model.R

Description

Introduce a data declaration to stan model

Usage

1
add_data(stan_model, ...)

Arguments

stan_model

A object of class 'stan_model'

...

Mandatory arguments are declaration and name. minimum, maximum, and length are optional.

Examples

1
2
3
stan_model <- create_stan_model()
add_data(stan_model, declaration = "int", name = "test", 
minimum = 3, maximum = 5, length = 500)

duarteguilherme/stanutils documentation built on Dec. 23, 2019, 6:30 p.m.