Learn R Programming

NSM3 (version 1.1)

tc: Guess-Hollander-Proschan

Description

Function to compute the asymptotic P-value for the observed Guess-Hollander-Proschan T_1 statistic.

Usage

tc(x, tau, alternative = "two.sided")

Arguments

Value

The function returns a list with four elements:T1the value of the idmrl statisticT1*the standardized value of the idmrl statisticpthe corresponding probability for T1*sigma.hatthe standard deviation for T1

Examples

Run this code
tb<-c(43, 45, 53, 56, 56, 57, 58, 66, 67, 73, 74, 79, 80, 80, 81, 81, 81, 82, 83, 83, 84, 88,  
89,  91,  91,  92,  92,  97,  99,  99, 100, 100, 101, 102, 102, 102, 103, 104, 107, 108, 109,
113, 114, 118, 121, 123, 126, 128, 137, 138, 139, 144, 145, 147, 156, 162, 174, 178, 179, 184,
191, 198, 211, 214, 243, 249, 329, 380, 403, 511, 522, 598)
tc(tb, tau=91.9, alt="dimrl")
tc(tb, tau=91.9, alt="idmrl")

Run the code above in your browser using DataLab