post_sample.normalmix | R Documentation |
returns random samples from the posterior, given a prior distribution m and n observed datapoints.
## S3 method for class 'normalmix'
post_sample(m, data, nsamp)
m |
mixture distribution with k components |
data |
a list with components x and s to be interpreted as a normally-distributed observation and its standard error |
nsamp |
number of samples to return for each observation |
a nsamp by n matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.