qmethod(dataset, nfactors, rotation = "varimax", forced = TRUE,
distribution = NULL, cor.method = "pearson", ...)"varimax". Other possible rotations allowed in principal function can be used: "none", "varimax", "quartimax", "TRUE if all respondents ranked the items strictly following the distribution scores, in which case the values of the distribution are calculated automatically. SetFALSE, the distribution has to be provided as a vector of numbers, such as c(-2, -1, -1, 0, 1, 1, 2, 2).cor: "pearson" (default), "kendall", or "spearman".principalQmethodRes, with eight objects:"date"), number of statements ("nstat"), number of Q-sorts ("nqsort"), whether the distribution was 'forced' ("distro"), number of factors extracted ("nfactors"), type or rotation ("rotation"), method for correlation in the PCA ("cor.method"), and a summary of this information for display purposes ("info").qfcharact):
"characteristics": data frame with the following values for each factor: average reliability coefficient, number of loading Q-sorts, eigenvalues, percentage of explained variance, composite reliability, standard error of factor scores."cor_zsc": matrix of correlation coefficients between factors z-scores."sd_dif": matrix of standard errors of differences.qdcprincipal); flagging Q-sorts (qflag); calculating weights, z-scores, and rounded scores (qzscores), calculating general characteristics (qfcharact), and finding distinguishing and consensus statements (qdc).The default qmethod performs automatic flagging and uses varimax rotation. Varimax rotation can be replaced by other methods for rotation allowed in principal from
If the input data contains row names and variable names, these will be kept throughout the analysis. Input data is validated, and it will give an error if there are non numerical values or either if the number of statements and Q-sorts introduced does not match the input data. It also returns error if the argument forced is set to TRUE but Q-sorts contain differing distributions.
See further references on the methodology in qmethod-package.
principal in package data(lipset)
results <- qmethod(lipset[[1]], nfactors = 3, rotation = "varimax")
summary(results)
results #shows all resultsRun the code above in your browser using DataLab