qzscores(dataset, nfactors, nstat, nqsorts, rotation="unknown",
loa=loa, flagged=flagged, forced=TRUE, distribution=NA)
"varimax"
. Other possible rotations allowed in principal
function can be used: "none"
, "varimax"
, "quartimax"
, "
nqsorts
rows and nfactors
columns, with values of factor loadings for Q-sorts, calculated using, e.g., principal(...)$loadings
.nqsorts
rows and nfactors
columns, with TRUE
values for Q-sorts that are flagged. Automatic flagging can be aplied using qflag
function. Manual fTRUE
if all respondents ranked the items following strictly the distribution scores, and the values of the distribution are calculated automatically. Seforced = FALSE
, the distribution has to be provided as a vector of numbers, such as c(-2, -1, -1, 0, 1, 1, 2, 2)
.qfcharact
.flagged
. The loadings from principal(...)$loadings
can be explored to decide upong flagging. The loa
data frame should have Q-sorts as rows, and factors as columns, where TRUE
are the flagged Q-sorts.See further references on the methodology in qmethod-package
.
data(lipset)
library(psych)
loa <- as.data.frame(unclass(principal(lipset,
nfactors=3, rotate="varimax")$loadings))
flagged <- qflag(nqsorts=9, nstat=33, loa=loa)
qmzsc <- qzscores(lipset, nstat=33, nfactors=3, nqsorts=9,
flagged=flagged, loa=loa,
rotation="varimax")
qmzsc
Run the code above in your browser using DataLab