Learn R Programming

multicon (version 1.6)

reQ: Forced Q-Sort Distribution

Description

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).

See Also

ipsatize rank

Examples

Run this code
data(rate.caq)
head(rate.caq)
rowMeans(rate.caq)
caq.dist = c(5,8,12,16,18,16,12,8,5)
caq.reQ = reQ(rate.caq, dist = caq.dist)
head(caq.reQ)
rowMeans(caq.reQ)

Run the code above in your browser using DataLab