ctsem (version 3.0.4)

ctStanTIpredMarginal: Plot marginal relationships between covariates and parameters for a ctStanFit object.

Description

Plot marginal relationships between covariates and parameters for a ctStanFit object.

Usage

ctStanTIpredMarginal(fit, tipred, pars, probs = c(0.025, 0.5, 0.975),
  useimputed = TRUE, plot = TRUE)

Arguments

fit

ctStanFit object.

tipred

Integer representing which tipred to use -- integer corresponds to TIpredNames specification.

pars

Subject level matrices from the ctStanFit output -- e.g, 'DRIFT' or 'DIFFUSION'.

probs

vector of 3 quantile probabilities, the 2nd will be plotted as a line, the outer two as shaded regions.

useimputed

Logical, include imputed tipreds or only observed?

plot

Logical, whether to plot.

Value

If plot=TRUE, nothing, otherwise an array that can be used with ctPlotArray.

Examples

Run this code
# NOT RUN {
ctStanTIpredMarginal(ctstantestfit,pars='CINT',tipred=3)
# }

Run the code above in your browser using DataLab