irr_ts_distribution: Get the permutation distribution of the IRR test statistic

Description Usage Arguments Details Value

View source: R/irr.R

Description

Simulates the permutation distribution of the irr test statistic for a matrix of ratings “ratings“

Usage

1
2
irr_ts_distribution(ratings, obs_ts = NULL, reps = 10000,
  keep_dist = FALSE, seed = NULL)

Arguments

ratings

matrix of dimension [R, Ns]. Each row corresponds to the ratings given by a single rater; columns correspond to items rated.

obs_ts

if None, obs_ts is calculated as the value of the test statistic for the original data

reps

integer number of random permutations of the elements of each row of ratings

keep_dist

Boolean flag for whether to store and return the array of permutation values of the irr test statistic

seed

Random seed for random number generator. If NULL, the pseudorandom number generator is the instance used by the permutation function.

Details

If obs_ts is not 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.