Learn R Programming

dirichletprocess (version 0.4.2)

PosteriorDraw.exponential: Draw from the posterior distribution

Description

Draw from the posterior distribution

Usage

# S3 method for exponential
PosteriorDraw(mdObj, x, n = 1, ...)

PosteriorDraw(mdObj, x, n = 1, ...)

# S3 method for mvnormal PosteriorDraw(mdObj, x, n = 1, ...)

# S3 method for mvnormal2 PosteriorDraw(mdObj, x, n = 1, ...)

# S3 method for normalFixedVariance PosteriorDraw(mdObj, x, n = 1, ...)

# S3 method for normal PosteriorDraw(mdObj, x, n = 1, ...)

# S3 method for weibull PosteriorDraw(mdObj, x, n = 100, ...)

Value

A sample from the posterior distribution

Arguments

mdObj

Mixing Distribution

x

Data

n

Number of draws

...

For a non-conjugate distribution the starting parameters. Defaults to a draw from the prior distribution.