PolyaTreePredDraws: Generate draws from a Polya Tree model's Predictive...

View source: R/PolyaTreeFunctions.R

PolyaTreePredDrawsR Documentation

Generate draws from a Polya Tree model's Predictive distribution

Description

Generate draws from a Polya Tree model's Predictive distribution

Usage

PolyaTreePredDraws(PolyaTreePriorLik, ndraw = 2000)

Arguments

PolyaTreePriorLik

An object constructed by PolyaTreePriorLikCons for a dataset.

ndraw

Number of draws desired from Predictive Polya Tree distribution.

Value

A list of draws from the Predictive Polya Tree Posterior

Examples

set.seed(100)
dataset1 = rnorm(200)
PTmodel1 = PolyaTreePriorLikCons(datasetX = dataset1, Ginv = qnorm)
Predictiveposteriordraws = PolyaTreePredDraws(PTmodel1, ndraw = 400)
plot(density(Predictiveposteriordraws))

naveedmerchant/BayesScreening documentation built on June 13, 2024, 7:56 a.m.