View source: R/psychometrics.R
| efa_report | R Documentation |
Reports KMO sampling adequacy, Bartlett's test of sphericity, and a
parallel analysis scree plot to inform factor number selection. The
suggested number of factors from parallel analysis is returned in
$suggested_nfactors. The report
prepares the researcher to estimate an EFA solution with a separate package
such as psych or lavaan.
efa_report(
data,
instrument,
scales = NULL,
nfactors = NULL,
rotation = "oblimin"
)
data |
A |
instrument |
An |
scales |
Character vector or NULL. Scale IDs whose items to include. When NULL, all scale items are pooled. |
nfactors |
Integer or NULL. Suggested number of factors to highlight on the scree plot. When NULL, the parallel analysis recommendation is used. |
rotation |
Character. The rotation method to display in the diagnostic
notes. Does not affect the diagnostics themselves. Defaults to
|
An object of class sframe_efa_report with elements kmo,
bartlett, parallel, and suggested_nfactors.
reliability_report(), cfa_syntax()
if (requireNamespace("psych", quietly = TRUE)) {
demo <- sframe_demo_data()
er <- efa_report(demo$responses, demo$instrument)
print(er)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.