get_stancode,ubmsFit-method {ubms}R Documentation

Get Stan Code From Model

Description

Get the Stan code used to run a model as a character string

Usage

## S4 method for signature 'ubmsFit'
get_stancode(object, ...)

Arguments

object

A ubmsFit object

...

Arguments passed to rstan::get_stancode

Details

Pass the result of get_stancode to cat to get the code in a more readable format. Note that the output in most cases is Stan code that can be used to fit several types of models, and not all Stan code will be used in all models.

Value

A character string with the model code


[Package ubms version 1.2.6 Index]