PolyaTreePriorLikCons: Construct a Polya tree object for a data set

View source: R/PolyaTreeFunctions.R

PolyaTreePriorLikConsR Documentation

Construct a Polya tree object for a data set

Description

Construct a Polya tree object for a data set

Usage

PolyaTreePriorLikCons(datasetX, Ginv = NULL, c = 1, leveltot = NULL)

Arguments

datasetX

A dataset to compute the Polya Tree prior on

Ginv

A quantile function of some distribution, use to make bins

c

A scalar. The higher this is, the more influential the prior is on the data set.

leveltot

The number of levels the Polya Tree should go down.

Value

A list of vectors called alphalist, a list of vectors called splitlist, c, leveltot, and Ginv. Alphalist is used to construct a prior. Splitlist is used to construct a likelihood. Call the collection of these a Polya Tree object.

Examples

set.seed(100)
dataset1 = rnorm(200)
PTmodel1 = PolyaTreePriorLikCons(datasetX = dataset1)
#Ptmodel1 can be called by other methods in the package to use it

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