get_stancode-ubmsFit-method function

Get Stan Code From Model

Get Stan Code From Model

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

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

Arguments

  • object: A ubmsFit object
  • ...: Arguments passed to rstan::get_stancode

Returns

A character string with the model code

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.

  • Maintainer: Ken Kellner
  • License: GPL (>= 3)
  • Last published: 2024-10-01