Replace the values in x with the distribution of values defined by dist.
Usage
reQ(x, dist, ties = "random")
Arguments
x
A data.frame, matrix, or numeric vector containing the values to be reQ'd. It is assumed that the rows are to be reQ'd if a matrix or data.frame is given.
dist
A numeric vector whose sum must be equal to the length of x. The Q values are assumed to be from 1 to length(dist). The values in dist indicate the number of times each Q value is to be used.
ties
A character element passed to the rank function indicating how ties should be broken.
Value
Returns a vector of size x containing data that has been normalized to fit a Q-Sort Distributions
Details
This function takes a vector of data and "normalizes" it by forcing it to fit a Q-sort distributon (see Block, 1978 for information on the Q-sort method).
References
Block, J. (1978). The Q-Sort method in personality assessment and psychiatric research. Palo Alto, CA: Consulting Psychologists Press. (Originally published 1961).