File tree 1 file changed +3
-7
lines changed 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,11 @@ round(cor(Harman74), 2) # hard to visually "see" structure in the data...
17
17
check_factorstructure(Harman74 )
18
18
19
19
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
-
25
20
26
21
27
22
# # Scree plot --------
28
23
screeplot(
29
- prcomp(Harman74 , scale. = FALSE ), # set scale. = TRUE for standardized scales
24
+ prcomp(Harman74 , scale. = TRUE ),
30
25
npcs = 10 , type = " lines"
31
26
)
32
27
# where is the elbow?
@@ -35,7 +30,8 @@ screeplot(
35
30
36
31
# # Other methods --------
37
32
ns <- n_factors(
38
- Harman74 , # for standardized scales, standardized the data first!
33
+ Harman74 ,
34
+ type = " FA" ,
39
35
algorithm = " pa" , rotation = " oblimin"
40
36
)
41
37
# This function calls many methods, e.g., nFactors::nScree... Read the doc!
You can’t perform that action at this time.
0 commit comments