ctsem (version 3.0.4)

stan_unconstrainsamples: Convert samples from a stanfit object to the unconstrained scale

Description

Convert samples from a stanfit object to the unconstrained scale

Usage

stan_unconstrainsamples(fit, standata = NA)

Arguments

fit

stanfit object.

standata

only necessary if R session has been restarted since fitting model -- used to reinitialize stanfit object.

Value

Matrix containing columns of unconstrained parameters for each post-warmup iteration.

Examples

Run this code
# NOT RUN {
umat <- stan_unconstrainsamples(ctstantestfit$stanfit, ctstantestfit$standata)
# }

Run the code above in your browser using DataCamp Workspace