View source: R/main-declarations.R
stan_vector | R Documentation |
Create a StanVector object.
stan_vector(name, length, lower = NULL, upper = NULL)
name |
name of the vector |
length |
length of the vector, must be a StanDimension object |
lower |
lower bound |
upper |
upper bound |
Other Stan variable declaration functions:
stan_array()
,
stan_dim()
,
stan_matrix()
,
stan_param()
,
stan_transform()
,
stan_var()
,
stan_vector_array()
x <- stan_vector("x", length = stan_dim("N", lower = 1), lower = 0)
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.