qmboots {qmethod} | R Documentation |
Q Methodology: Bootstrap
Description
Implementation of the bootstrap to Q methodology using Principal Components Analysis (PCA).
Usage
qmboots(dataset, nfactors, nsteps, load = "auto",
rotation = "varimax", indet = "qindtest", fsi = TRUE,
forced = T, distribution = NULL,
cor.method="pearson", ...)
Arguments
dataset |
a matrix or dataframe containing original data, with statements as rows, Q sorts as columns, and Q board column values in each cell. |
nfactors |
number of factors to extract using PCA. |
load |
a matrix of factor loadings to be used as target. If "auto", the target matrix is generated using the rotation indicated ("varimax" by default). |
nsteps |
number of steps (repetitions) for the bootstraping. |
rotation |
rotation method, set to "varimax" by default. Other possible rotations from psych |
indet |
method to solve the double indeterminacy issue in PCA bootstrapping. |
fsi |
logical; Shall the Factor Stability index be calculated? (experimental index). |
forced |
logical; Is the ranking of the items forced to match the distributions? Set to |
distribution |
logical; when forced = |
cor.method |
character string indicating which correlation coefficient is to be computed, to be passed on to the function |
... |
Other arguments passed on to |
Value
zscore-stats |
summary of the analysis. List of one object, plus as many objects as factors extracted: the bootstrapped factor scores, and the z-score statistics of the bootrstrap. The z-score statistics of interest are |
full.bts.res |
full bootstrap results. List with as many objects as factors extracted, each object containing three data frames: |
indet.tests |
indeterminacy tests. |
resamples |
index of the Q-sorts selected for each step. |
orig.res |
original results. See details of all the objects in |
q.array |
array of values in the distribution grid. |
loa.stats |
statistics of factor loadings. List with as many objects as factors extracted, each object containing one data frame with the factor loading statistics of the bootrstrap. The factor loading statistics of interest are |
q.array |
array of values in the distribution grid. |
fsi |
factor stability index (optional; experimental). |
Author(s)
Aiora Zabala
References
Zabala, Pascual (2016) Bootstrapping Q Methodology to Improve the Understanding of Human Perspectives. PLoS ONE 11(2): e0148087.
See Also
Examples
data(lipset)
boots <- qmboots(lipset[[1]], nfactors = 3, nsteps = 10, load = "auto",
rotation = "varimax", indet = "qindtest",
fsi = TRUE)
boots
boxplot(t(boots[[2]][[1]][[2]]), horizontal = TRUE,
main = "Statement z-score boxplot for the first factor", las = 1)
#See the table summaries:
qms <- qmb.summary(boots)
round(qms$statements, digits=2) # statements
round(qms$qsorts, digits=2) # Q-sorts
# A more synthetic visualisation:
# z-scores:
qmb.plot(qms, nfactors=3, type="zsc", sort="difference")
# factor loadings:
qmb.plot(qms, nfactors=3, type="loa", sort="difference")