Skip to content

Commit cb80250

Browse files
committed
just use std data
1 parent 88ab4e6 commit cb80250

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

08 EFA/EFA.R

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@ round(cor(Harman74), 2) # hard to visually "see" structure in the data...
1717
check_factorstructure(Harman74)
1818

1919

20-
## Raw or scaled? --------
21-
# Now we first need to decide:
22-
# Are we conducting a FA on the raw scales? Or the standardized scales?
23-
24-
2520

2621

2722
## Scree plot --------
2823
screeplot(
29-
prcomp(Harman74, scale. = FALSE), # set scale. = TRUE for standardized scales
24+
prcomp(Harman74, scale. = TRUE),
3025
npcs = 10, type = "lines"
3126
)
3227
# where is the elbow?
@@ -35,7 +30,8 @@ screeplot(
3530

3631
## Other methods --------
3732
ns <- n_factors(
38-
Harman74, # for standardized scales, standardized the data first!
33+
Harman74,
34+
type = "FA",
3935
algorithm = "pa", rotation = "oblimin"
4036
)
4137
# This function calls many methods, e.g., nFactors::nScree... Read the doc!

0 commit comments

Comments
 (0)