generate_stan_code: Generate stan code

Description Usage Arguments Examples

View source: R/stan-model.R

Description

This functions gets a stan_model object and generate stan code from it.

Usage

1
generate_stan_code(stan_model)

Arguments

stan_model

A object of class 'stan_model'

Examples

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

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