generate: Generate a Stan file for inferring the model parameters

Description Usage Arguments Value

View source: R/stan_utils.R

Description

Generate a Stan file for inferring the model parameters

Usage

1
2
generate(model, priors, filename = NA, simple_bd = FALSE,
  noise_model = F, loo = F)

Arguments

model

The bpmodel object from which to generate the Stan file

priors

A list of prior distributions for each parameters in the mode. Each entry in the list should be a names list of the form list(name="normal",params=c(0,1),bounds=(-100,100))

filename

The name of the file in which to store the model. Should end in ".stan"

Value

a string containing the model code


jproney/bpinference documentation built on April 19, 2021, 2:18 a.m.