Skip to content

Commit

Permalink
just use std data
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Apr 22, 2021
1 parent 88ab4e6 commit cb80250
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions 08 EFA/EFA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@ round(cor(Harman74), 2) # hard to visually "see" structure in the data...
check_factorstructure(Harman74)


## Raw or scaled? --------
# Now we first need to decide:
# Are we conducting a FA on the raw scales? Or the standardized scales?




## Scree plot --------
screeplot(
prcomp(Harman74, scale. = FALSE), # set scale. = TRUE for standardized scales
prcomp(Harman74, scale. = TRUE),
npcs = 10, type = "lines"
)
# where is the elbow?
Expand All @@ -35,7 +30,8 @@ screeplot(

## Other methods --------
ns <- n_factors(
Harman74, # for standardized scales, standardized the data first!
Harman74,
type = "FA",
algorithm = "pa", rotation = "oblimin"
)
# This function calls many methods, e.g., nFactors::nScree... Read the doc!
Expand Down

0 comments on commit cb80250

Please sign in to comment.