Learn R Programming

NSM3 (version 1.5)

newbet: Hollander-Proschan T*

Description

Function to compute the asymptotic P-value for the observed Hollander-Proschan T* statistic.

Usage

newbet(x)

Arguments

x
a vector of data of length n

Value

The function returns a list with two elements:
T
the value of the Hollander-Proschan statistic
T.star
the standardized value of the Hollander-Proschan statistic
p
the corresponding probability

Examples

Run this code
table11.4<-c(194,15,41,29,33,181)
newbet(table11.4)

Run the code above in your browser using DataLab