Description Usage Arguments Details Value
Simulates the permutation distribution of the irr test statistic for a matrix of ratings “ratings“
1 2 | irr_ts_distribution(ratings, obs_ts = NULL, reps = 10000,
keep_dist = FALSE, seed = NULL)
|
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, |
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. |
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
.
A list containing:
obs_ts: 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.