PosteriorDraw.exponential {dirichletprocess}R Documentation

Draw from the posterior distribution

Description

Draw from the posterior distribution

Usage

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

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

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

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

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

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

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

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.

Value

A sample from the posterior distribution


[Package dirichletprocess version 0.4.2 Index]