Learn R Programming

PStrata (version 0.0.5)

make_stancode: 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)

Value

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

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.