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

ctExtract

Extract samples from a ctStanFit object


Description

Extract samples from a ctStanFit object

Usage

ctExtract(object, subjectMatrices = FALSE, cores = 2, nsamples = "all")

Arguments

object

ctStanFit object, samples may be from Stan's HMC, or the importance sampling approach of ctsem.

subjectMatrices

Calculate subject specific system matrices?

cores

Only used if subjectMatrices = TRUE . For faster computation use more cores.

nsamples

either 'all' or an integer denoting number of random samples to extract.

Value

Array of posterior samples.

Examples

e = ctExtract(ctstantestfit)

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.