Learn R Programming

ctsem (version 2.1.0)

ctStanPlotPost: ctStanPlotPost

Description

Plots posterior and prior distributions of model parameters in a ctStanFit object.

Usage

ctStanPlotPost(ctstanfitobj, rows = "all", mfrow = "auto", parcontrol = list(mgp = c(1.3, 0.5, 0), mar = c(3, 2, 2, 1) + 0.2), wait = FALSE)

Arguments

ctstanfitobj
fit object as generated by ctStanFit.
rows
vector of integers denoting which rows of ctstanmodel$pars to plot priors for. Character string 'all' plots all rows with parameters to be estimated.
mfrow
2 dimensional integer vector defining number of rows and columns of plots, as per the mfrow argument to par. 'auto' determines automatically, to a maximum of 4 by 4, while NULL uses the current system setting.
parcontrol
parameters to pass to par which temporarily change plot settings.
wait
If true, user is prompted to continue before plotting next graph. If false, graphs are plotted one after another without waiting.

Examples

Run this code
ctStanPlotPost(ctstantestfit)

Run the code above in your browser using DataLab