View source: R/unsup_get_avg_pvalue.R
unsup_get_avg_pvalue | R Documentation |
On a subsample b containing 1 observation from each of the k subjects, the p-value at u is inf{alpha : u not in [Y^b_(r), Y^b_(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^b_(floor((k+1)/2)), Y^b_(ceiling((k+1)/2))]. Compute p-value of u on each subsample, and return the average p-value.
unsup_get_avg_pvalue(Y_subsample_mat, u)
Y_subsample_mat |
Data frame where each row is a subsample of one observation from each of the k subjects |
u |
Observation at which to compute p-value |
Average p-value of u across repeated subsamples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.