ctStanContinuousPars: ctStanContinuousPars

View source: R/ctStanContinuousPars.R

ctStanContinuousParsR Documentation

ctStanContinuousPars

Description

Returns the continuous time parameter matrices of a ctStanFit fit object

Usage

ctStanContinuousPars(
  fit,
  calcfunc = quantile,
  calcfuncargs = list(probs = 0.5),
  timeinterval = 1
)

Arguments

fit

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.

timeinterval

time interval for discrete time parameter matrix computation.

Examples


#posterior median over all subjects (also reflects mean of unconstrained pars)
ctStanContinuousPars(ctstantestfit)


ctsem documentation built on Sept. 11, 2024, 9:06 p.m.