irr_npc_distribution: Combine the IRR statistics across strata

Description Usage Arguments Details Value

View source: R/irr.R

Description

Use NPC to combine the IRR statistics across strata.

Usage

1
irr_npc_distribution(perm_distr, size, obs_ts)

Arguments

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

Details

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.

Value

A list containing:


statlab/permuter documentation built on May 30, 2019, 9:45 a.m.