View source: R/PolyaTreeFunctions.R
PolyaTreePriorLikCons | R Documentation |
Construct a Polya tree object for a data set
PolyaTreePriorLikCons(datasetX, Ginv = NULL, c = 1, leveltot = NULL)
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. |
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.
set.seed(100)
dataset1 = rnorm(200)
PTmodel1 = PolyaTreePriorLikCons(datasetX = dataset1)
#Ptmodel1 can be called by other methods in the package to use it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.