reQ: Forced Q-Sort Distribution

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Replace the values in x with the distribution of values defined by dist.

Usage

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

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

Value

Returns a vector of size x containing data that has been normalized to fit a Q-Sort Distributions

Author(s)

Ryne A. Sherman

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

1
2
3
4
5
6
7
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)

multicon documentation built on May 2, 2019, 3:18 a.m.