stan_dim: Create a StanDimension object

View source: R/main-declarations.R

stan_dimR Documentation

Create a StanDimension object

Description

Create a StanDimension object

Usage

stan_dim(name, lower = NULL, upper = NULL)

Arguments

name

name of the dimension variable

lower

lower bound

upper

upper bound

See Also

Other Stan variable declaration functions: stan_array(), stan_matrix(), stan_param(), stan_transform(), stan_var(), stan_vector(), stan_vector_array()

Examples

N <- stan_dim("N")
M <- stan_dim("M", lower = 1, upper = 100)
print(N)
print(M)

jtimonen/odemodeling documentation built on Sept. 15, 2024, 4:29 a.m.