make_stancode: *Stan* Code for 'PStrata' Models

View source: R/make_stancode.R

make_stancodeR Documentation

Stan Code for PStrata Models

Description

Generate the Stan code corresponding to the model, which is read by Stan to do sampling.

Usage

make_stancode(PSobject, filename = NULL, debug = FALSE)

Arguments

PSobject

an object of class PSobject

filename

(optional) string. If not NULL, the stan file will be saved via cat in a text file named after the string supplied.

debug

only for testing in development mode. Will be removed in future release.

Value

A string, which can be printed on screen using cat.


PStrata documentation built on May 29, 2024, 8:17 a.m.