Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ctStanSubjectPars

Extract an array of subject specific parameters from a ctStanFit object.


Description

Extract an array of subject specific parameters from a ctStanFit object.

Usage

ctStanSubjectPars(fit, pointest = TRUE, cores = 2, nsamples = "all")

Arguments

fit

fit object

pointest

if TRUE, returns only the set of individual difference parameters based on the max a posteriori estimate (or the median if sampling approaches were used).

cores

Number of cores to use.

nsamples

Number of samples to calculate parameters for. Not used if pointest=TRUE.

Details

This function returns the estimates of individual parameters, taking into account any covariates and random effects.

Value

an nsamples by nsubjects by nparams array.

Examples

indpars <- ctStanSubjectPars(ctstantestfit)
dimnames(indpars)
plot(indpars[1,,'cint1'],indpars[1,,'cint2'])

ctsem

Continuous Time Structural Equation Modelling

v3.4.3
GPL-3
Authors
Charles Driver [aut, cre, cph], Manuel Voelkle [aut, cph], Han Oud [aut, cph], Trustees of Columbia University [cph]
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.