ctsem (version 3.3.11)

ctStanContinuousPars: ctStanContinuousPars

Description

Returns the continuous time parameter matricesof a ctStanFit fit object

Usage

ctStanContinuousPars(
  ctstanfitobj,
  calcfunc = quantile,
  calcfuncargs = list(probs = 0.5)
)

Arguments

ctstanfitobj

fit object from ctStanFit

calcfunc

Function to apply over samples, must return a single value. By default the median over all samples is returned using the quantile function, but one might also be interested in the mean or sd, for instance.

calcfuncargs

A list of additional parameters to pass to calcfunc. For instance, with the default of calcfunc = quantile, the probs argument is needed to ensure only a single value is returned.

Examples

Run this code
# NOT RUN {
#posterior median over all subjects (also reflects mean of unconstrained pars)
ctStanContinuousPars(ctstantestfit)
# }

Run the code above in your browser using DataCamp Workspace