prepivot: Main function for calculating the pre-pivoting p-value

Description Usage Arguments Value See Also Examples

View source: R/prepivot.R

Description

Calculates the p-value using the pre-pivoting root of the t-test statistic for a given univariate variable observed over two groups of populations.

Usage

1
    prepivot(x, y)

Arguments

x

vector of length n corresponding to the n observations from the first group

y

vector of size m corresponding to the m observations from the second group

Value

The pre-pivoted test statistic value

See Also

prepr.test.

Examples

1
2
3
4
5
6
## generate random data
x <- rnorm(n = 20, mean = 0, sigma = 1)
y <- rnorm(n = 10, mean = 3, sigma = 2)

# evaluate the function value
prepivot(x, y, length(x), length(y), w = 3)

dnayyala/prepr documentation built on March 28, 2020, 7:15 p.m.