post_sample
returns random samples from the posterior, given a prior distribution m and n observed datapoints.
post_sample(m, data, nsamp)
m |
prior distribution (eg of type normalmix) |
data |
a list with components x and s, each vectors of length n, to be interpreted as a normally-distributed observations and corresponding standard errors |
nsamp |
number of random samples to return for each observation |
exported, but mostly users will want to use 'get_post_sample'
an nsamp by n matrix
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.