PolyaTreeBFcons: Polya Tree test for checking if two data sets share the same...

View source: R/PolyaTreeFunctions.R

PolyaTreeBFconsR Documentation

Polya Tree test for checking if two data sets share the same distribution using Polya tree objects.

Description

Polya Tree test for checking if two data sets share the same distribution using Polya tree objects.

Usage

PolyaTreeBFcons(PolyaTreePriorLik1, PolyaTreePriorLik2)

Arguments

PolyaTreePriorLik1

An object constructed by PolyaTreePriorLikCons for a dataset.

PolyaTreePriorLik2

Another object constructed by PolyaTreePriorLikCons for another dataset.

Value

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.

Examples

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)

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