Description Usage Arguments Details Value
Use NPC to combine the IRR statistics across strata.
1 | irr_npc_distribution(perm_distr, size, obs_ts)
|
perm_distr |
Input matrix of dimension [B, S] Column s is the permutation distribution of rho_s, for s = 1, …, S. |
size |
Vector of S sample sizes. Entry s is the number of items N_s in stratum s. |
obs_ts |
a vector of test statistics for each stratum |
Simulates the permutation distribution of the combined NPC test statistic for S matrices of ratings corresponding to S strata. The distribution comes from combining p-values across the S strata.
If obs_ts
is null, computes the reference value of the test
statistic before the first permutation. Otherwise, uses the value
obs_ts
for comparison.
If keep_dist
, return the distribution of values of the test
statistic; otherwise, return only the number of permutations
for which the value of the irr test statistic is at least
as large as obs_ts
.
A list containing:
obs_npc: observed value of the test statistic for the input data, or the input value of obs_ts
if it was given as input
geq: integer number of iterations for which the test statistic was greater than or equal to obs_ts
reps: number of permutations
pvalue: geq/reps
dist: if keep_dist
, the array of values of the irr test statistic from the reps
iterations. Otherwise, NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.