qzscores {qmethod} | R Documentation |
Q methodology: z-scores from loadings
Description
Calculates factor characteristics, z-scores, and factor scores, provided a matrix of loadings and a matrix of (manually or automatically) flagged Q-sorts.
Usage
qzscores(dataset, nfactors, loa, flagged, forced = TRUE,
distribution = NULL)
Arguments
dataset |
a matrix or a data frame containing raw data, with statements as rows, Q-sorts as columns, and the column scores in the distribution in each cell. |
nfactors |
number of factors to extract. |
loa |
matrix or data frame of |
flagged |
matrix or data frame of |
forced |
logical; Is the distribution of items forced? Set to |
distribution |
logical; when |
Details
In order to implement manual flagging, use a manually created data frame (or matrix) for flagged
. See an example of code to perform manual flagging or to manipulate the loadings in the website.
The loadings from principal(...)$loadings
or centroid
can be explored to decide upon flagging. The loa
data frame should have Q-sorts as rows, and factors as columns, where TRUE
are the flagged Q-sorts.
Value
Returns a list of class QmethodRes
, with seven objects:
brief |
a list with the basic values of the analysis: date ( |
dataset |
original data. |
loa |
factor loadings for Q-sorts. |
flagged |
logical dataframe of flagged Q-sorts. |
zsc |
statements z-scores. |
zsc_n |
statements rounded scores, rounded to the values in the first row of the original dataset. |
f_char |
factor characteristics obtained from |
Note
This is a function used within qmethod
. Rarely to be used independently.
Author(s)
Aiora Zabala
References
Brown, S. R., 1980 Political subjectivity: Applications of Q methodology in political science, New Haven, CT: Yale University Press.
See further references on the methodology in qmethod-package
.
Examples
data(lipset)
library(psych)
loa <- unclass(principal(lipset[[1]],
nfactors = 3, rotate = "varimax")$loadings)
flagged <- qflag(nstat = 33, loa = loa)
qmzsc <- qzscores(lipset[[1]], nfactors = 3, flagged = flagged, loa = loa)
qmzsc # Show results