Learn R Programming

ctsem (version 2.5.0)

ctStanPlotPost: ctStanPlotPost

Description

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

Usage

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

Arguments

obj

fit or model object as generated by ctStanFit, ctModel, or ctStanModel.

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
# NOT RUN {
ctStanPlotPost(ctstantestfit)
# }

Run the code above in your browser using DataLab