add_parameter: Add parameter to stan model

Description Usage Arguments Examples

View source: R/stan-model.R

Description

Introduce a parameter declaration to stan model

Usage

1
add_parameter(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_parameter(stan_model, declaration = "int", name = "test",
minimum = 3, maximum = 5, length = 500)

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