View source: R/unsup_get_pvalue.R
unsup_get_pvalue | R Documentation |
On a subsample containing 1 observation from each of the k subjects, the p-value at u is inf{alpha : u not in [Y_(r), Y_(s)]}, where r = floor((k+1)(alpha/2)) and s = ceiling((k+1)(1-alpha/2)). The p-value is 1 if u is in [Y_(floor((k+1)/2)), Y_(ceiling((k+1)/2))]. Return p-value of u.
unsup_get_pvalue(u, Y_sorted)
u |
Observation at which to compute p-value |
Y_sorted |
Subsample containing one observation per subject, sorted from smallest to largest |
p-value of u on subsample
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.