make_stancode {PStrata}R 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.


[Package PStrata version 0.0.5 Index]