View source: R/PolyaTreeFunctions.R
PolyaTreeBFcons | R Documentation |
Polya Tree test for checking if two data sets share the same distribution using Polya tree objects.
PolyaTreeBFcons(PolyaTreePriorLik1, PolyaTreePriorLik2)
PolyaTreePriorLik1 |
An object constructed by PolyaTreePriorLikCons for a dataset. |
PolyaTreePriorLik2 |
Another object constructed by PolyaTreePriorLikCons for another dataset. |
A scalar, which corresponds to the log BF of the test. Another vector is given which corresponds to the contribution of the log BF at each level.
set.seed(100)
dataset1 = rnorm(200)
dataset2 = rnorm(200)
PTmodel1 = PolyaTreePriorLikCons(datasetX = dataset1, Ginv = qnorm)
PTmodel2 = PolyaTreePriorLikCons(datasetX = dataset2, Ginv = qnorm)
PTresults = PolyaTreeBFcons(PTmodel1, PTmodel2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.