Learn R Programming

multicon (version 1.0)

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 numeric vector containing the values to be reQ'd.
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

Examples

Run this code
data(rate.caq)
head(rate.caq)
caq.dist = c(5,8,12,16,18,16,12,8,5)
caq.sort = t(apply(rate.caq, MARGIN = 1, FUN = reQ, dist = caq.dist))
head(caq.sort)

Run the code above in your browser using DataLab