View source: R/unsup_get_pval_shrinkage.R
unsup_get_pval_shrinkage | R Documentation |
Create augmented sample containing subject 1's observations and u. Compute James-Stein shrinkage estimate of subject 1 mean using augmented subject 1 sample and data from all other subjects. As nonconformity scores, compute the absolute difference between each observation in the augmented subject 1 sample and the James-Stein shrinkage estimate. The p-value is the proportion of observations in the augmented sample with nonconformity score >= u's nonconformity score.
unsup_get_pval_shrinkage(u, Y)
u |
Hypothetical new observation on subject 1 |
Y |
List containing data of all subjects. Each item in the list is a vector with one subject's observations. |
p-value of u relative to subject 1's sample, using the James-Stein shrinkage estimate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.