Prepare a survey instrument for exploratory factor analysis
Source:R/psychometrics.R
sframe_efa_readiness_results.RdReports 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.
Usage
sframe_efa_readiness_results(
data,
instrument,
scales = NULL,
nfactors = NULL,
rotation = "oblimin"
)Arguments
- data
A
tibbleordata.frameof responses.- instrument
An
sframeobject.- 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
"oblimin".
Value
An object of class sframe_efa_report with elements kmo,
bartlett, parallel, and suggested_nfactors.
Fitting the solution
This report says whether the data suit a factor analysis and how many
factors to extract. sframe_efa_solution() then fits that solution and returns
the loadings, so the whole route stays in surveyframe. Take the result to
another package when you want a method surveyframe leaves out.
See also
sframe_efa_solution(), sframe_reliability_results(), sframe_syntax_cfa()
Other Analyse functions:
run_analysis_plan(),
score_scales(),
sframe_assumption_results(),
sframe_descriptives_results(),
sframe_efa_solution(),
sframe_item_results(),
sframe_posthoc_results(),
sframe_reliability_results(),
sframe_validity_results()
Examples
# \donttest{
if (requireNamespace("psych", quietly = TRUE)) {
demo <- sframe_demo("tourism_services")
er <- sframe_efa_readiness_results(demo$responses, demo$instrument)
print(er)
}
# }