plotshift.function: Shift Plot Function

View source: R/BNPPairedSamples.R

plotshift.functionR Documentation

Shift Plot Function

Description

The shift function quantifies the differences between the two study populations, before and after the intervention or measurement, through the difference between the quantiles of the two distributions as a function of the quantiles of the first group.

Usage

plotshift.function(results_BNP)

Arguments

results_BNP

list of results obtained from the BNP.test function.

Value

It returns an interactive graph with the shift function estimate and the credible interval at 95 possible to observe in detail the grid of 200 values ranging from the minimum of the data to the maximum; it also shows the average of the differences between the quantiles of both distributions.

Note

It is suggested to use the shift function if significant differences are observed between the marginal distributions (posterior.probability.H1), after performing the hypothesis test BNP.test.

Examples


## Not run: 
results <- BNP.test(x1, y1, n.mcm=10000)
plotshift.function(results)

## End(Not run)


kevortiz10/BNPPairedSamples documentation built on July 21, 2022, 12:42 a.m.