Returns the continuous time parameter matrices for specified subjects of a ctStanFit fit object
ctStanContinuousPars(ctstanfitobj, subjects = "all", iter = "all",
calcfunc = quantile, calcfuncargs = list(probs = 0.5))
fit object from ctStanFit
Either 'all', or integers denoting which subjects to perform the calculation over. When multiple subjects are specified, the returned matrices will be a mean over subjects.
Either character string 'all' which will then use all post-warmup iterations, or an integer specifying which iteration/s to use.
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.
# NOT RUN {
#posterior median over all subjects (also reflects mean of unconstrained pars)
ctStanContinuousPars(ctstantestfit)
#posterior 97.5% quantiles for subject 2
ctStanContinuousPars(ctstantestfit, subjects=2, calcfunc=quantile,
calcfuncargs=list(probs=0.975))
# }
Run the code above in your browser using DataLab