post_sample.unimix: post_sample.unimix

View source: R/unimix.R

post_sample.unimixR Documentation

post_sample.unimix

Description

returns random samples from the posterior, given a prior distribution m and n observed datapoints.

Usage

## S3 method for class 'unimix'
post_sample(m, data, nsamp)

Arguments

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

Value

a nsamp by n matrix


stephens999/ashr documentation built on May 16, 2024, 3:10 a.m.