tc | R Documentation |
Function to compute the asymptotic P-value for the observed Guess-Hollander-Proschan T_1 statistic.
tc(x, tau, alternative = "two.sided")
x |
a vector of data of length n |
tau |
the known value of the turning point,T |
alternative |
the direction of the alternative hypothesis. The choices are two.sided, idmrl, and dimrl with the default value being two.sided. |
The function returns a list with four elements:
T1 |
the value of the idmrl statistic |
T1* |
the standardized value of the idmrl statistic |
p |
the corresponding probability for T1* |
sigma.hat |
the standard deviation for T1 |
Rachel Becvarik
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.