The input fit is the result of a call to stan by sample_theta, of class stanfit. Return a matrix TH with dimensions S x (3*K), where S is the number of samples (across all chains, and excluding warmup), and K is the number of mixtures.

extract_param(fit)

Arguments

fit

The fit from stan, of class stanfit

Value

A matrix of samples with dimensions S by (3*K), where S is the number of non-warmup samples