Learn R Programming

ctsem (version 3.2.1)

ctExtract: Extract samples from a ctStanFit object

Description

Extract samples from a ctStanFit object

Usage

ctExtract(object, ...)

Arguments

object

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

...

additional arguments to pass to rstan::extract.

Value

Array of posterior samples.

Examples

Run this code
# NOT RUN {
if (!exists("ctstantestfit")) example(ctstantestfit)
e = ctExtract(ctstantestfit)
# }

Run the code above in your browser using DataLab