ctExtract: Extract samples from a ctStanFit object

View source: R/extract.ctStanFit.R

ctExtractR Documentation

Extract samples from a ctStanFit object

Description

Extract samples from a ctStanFit object

Usage

ctExtract(
  object,
  subjectMatrices = FALSE,
  cores = 2,
  nsamples = "all",
  subjects = "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.

subjects

either 'all', or an integer vector denoting subjects to extract.

Value

Array of posterior samples.

Examples


e = ctExtract(ctstantestfit)


ctsem documentation built on Nov. 2, 2023, 6:03 p.m.