Learn R Programming

NSM3 (version 1.1)

epstein: Epstein

Description

Function to compute the P-value for the observed Epstein E statistic

Usage

epstein(x, alternative = "two.sided", exact=FALSE)

Arguments

Value

The function returns a list with two elements:Ethe value of the Epstein statisticpthe corresponding probability

Examples

Run this code
ex11.1<-c(42, 43, 51, 61, 66, 69, 71, 81, 82, 82)
Ep <- epstein(ex11.1, alt="ifr", exact=TRUE)
Ep$E
Ep$p

#Large Sample Approximation
Ep.lsa <- epstein(ex11.1, alt="ifr")

Run the code above in your browser using DataLab