Learn R Programming

ctsem (version 3.2.1)

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, plot = TRUE)

Arguments

fit

ctStanFit object.

tipred

character vector representing which tipreds to use.

pars

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

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 {
if (!exists("ctstantestfit")) example(ctstantestfit)
ctStanTIpredMarginal(ctstantestfit,pars=c('DRIFT','CINT'),tipred=c('TI2','TI3'))
# }

Run the code above in your browser using DataLab