powered by
Extract the theta's of the first MCMC iteration across chains and participants. Note that the ps array in DMC is a nchain x nsubject x nparameter array. Armadillo operates on slice (the third dimension), so chain dimension has to be on slice.
GetTheta0(samples)
posterior samples
a nsubject x npar x nchain array