compiler: Compile stan model code in 'bdm' object

compilerR Documentation

Compile stan model code in bdm object

Description

This function calls rstan::stan_model to compile the model.

Usage

compiler(object, ...)

## S4 method for signature 'bdm'
compiler(object, ...)

Arguments

object

a bdm class object that contains the model code in object@model_code

...

additional arguments to stan_model

Value

A bdm class object with a compiled DSO in object@dso.

Examples

library(bdm)

# initialise default model object
mdl <- bdm()

# compile Stan model code
## Not run: 
mdl <- compiler(mdl)

## End(Not run)


cttedwards/bdm documentation built on Oct. 11, 2022, 7:52 p.m.