qzscores | R Documentation |
Calculates factor characteristics, z-scores, and factor scores, provided a matrix of loadings and a matrix of (manually or automatically) flagged Q-sorts.
qzscores(dataset, nfactors, loa, flagged, forced = TRUE,
distribution = NULL)
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 |
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.
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 |
This is a function used within qmethod
. Rarely to be used independently.
Aiora Zabala
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
.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.