draw_rand_sort: Draw one random Q-sort dataset.

Description Usage Arguments Details Value Note Author(s) See Also

View source: R/nfactors.R

Description

Draw one random Q-sort dataset, parametrized as original data.

Usage

1

Arguments

grid

A positive integer vector of a length covering the range of values, specifying maximum allowed frequencies for each value. (in Q-parlance, the maximum column heights for the Q-sorts).

n

A positive integer vector of length 1, as the number of people-variables. Defaults to NULL, in which case parameter is inferred from data.

p

A positive integer vector of length 1, as the number of item-cases. Defaults to NULL, in which case parameter is inferred from data.

Details

This function draws a random dataset, parametrized as some real or hypothetical observed dataset from a Q study.

Q data has some peculiarities that must be implemented to draw comparable random datasets, and that are not addressed in existing packages implementing parallel analysis (such as paran):

Helper function for run_parallel().

Value

A random integer matrix with item-cases as rows and people-variables as columns.

Note

Notice that in the case of a free distribution, there are no assumptions on the distributional shape (such as uni-modal, bimodal etc.). Random data for a free distribution are therefore drawn from an (on average over all people-variables) rectangular distribution over all available slots, as a neutral distributional shape. A more sophisticated parallel analysis may first infer some observed distribution parameters and then draw random data accordingly as per issue 146 on the development repo.

Author(s)

Maximilian Held

See Also

Other parallel-analysis: run_parallel()


maxheld83/pensieveR documentation built on Jan. 21, 2020, 9:15 a.m.