factor_analysis_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
factor_analysis_examples [2019/12/06 13:45] – created hkimscil | factor_analysis_examples [2019/12/06 14:00] – hkimscil | ||
---|---|---|---|
Line 27: | Line 27: | ||
# use fa() to conduct an oblique principal-axis exploratory factor analysis | # use fa() to conduct an oblique principal-axis exploratory factor analysis | ||
# save the solution to an R variable | # save the solution to an R variable | ||
- | solution | + | fa.ini |
- | solution2 <- fa(data, | + | |
# display the solution output | # display the solution output | ||
- | solution | + | fa.ini |
- | solution2 | + | |
</ | </ | ||
< | < | ||
- | fa.sort(solution) | + | names(fa.ini) |
</ | </ | ||
+ | < | ||
+ | fa.ini$e.values | ||
+ | </ | ||
+ | < | ||
+ | num <- 5 | ||
+ | fa.5 <- fa(r=corMat, | ||
+ | fa.5.oblimin.minres <- fa(r=corMat, | ||
+ | fa.5.vm.minres <- fa(r=corMat, | ||
+ | |||
+ | fa.sort(fa.5.oblimin.minres) | ||
+ | fa.sort(fa.5.vm.minres) | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | > fa.sort(fa.5.oblimin.minres) | ||
+ | Factor Analysis using method = minres | ||
+ | Call: fa(r = corMat, nfactors = num, rotate = " | ||
+ | Standardized loadings (pattern matrix) based upon correlation matrix | ||
+ | MR1 | ||
+ | Resale_Value | ||
+ | Price 0.58 0.23 -0.11 -0.01 -0.07 0.35 0.645 1.4 | ||
+ | Maintenance | ||
+ | Fuel_Efficiency | ||
+ | Safety | ||
+ | Space_comfort | ||
+ | Fuel_Type | ||
+ | Technology | ||
+ | After_Sales_Service -0.01 0.04 0.95 -0.01 -0.01 0.92 0.085 1.0 | ||
+ | Color 0.03 -0.05 0.02 0.78 0.09 0.67 0.329 1.0 | ||
+ | Exterior_Looks | ||
+ | Testimonials | ||
+ | Test_drive | ||
+ | Product_reviews | ||
+ | |||
+ | | ||
+ | SS loadings | ||
+ | Proportion Var 0.12 0.10 0.09 0.08 0.07 | ||
+ | Cumulative Var 0.12 0.22 0.30 0.38 0.45 | ||
+ | Proportion Explained | ||
+ | Cumulative Proportion 0.26 0.48 0.67 0.85 1.00 | ||
+ | |||
+ | With factor correlations of | ||
+ | MR1 | ||
+ | MR1 1.00 -0.03 0.16 0.25 0.03 | ||
+ | MR2 -0.03 1.00 0.32 -0.07 0.21 | ||
+ | MR4 0.16 0.32 1.00 0.13 0.07 | ||
+ | MR5 0.25 -0.07 0.13 1.00 0.17 | ||
+ | MR3 0.03 0.21 0.07 0.17 1.00 | ||
+ | |||
+ | Mean item complexity = 1.8 | ||
+ | Test of the hypothesis that 5 factors are sufficient. | ||
+ | |||
+ | The degrees of freedom for the null model are 91 and the objective function was 2.97 | ||
+ | The degrees of freedom for the model are 31 and the objective function was 0.34 | ||
+ | |||
+ | The root mean square of the residuals (RMSR) is 0.04 | ||
+ | The df corrected root mean square of the residuals is 0.06 | ||
+ | |||
+ | Fit based upon off diagonal values = 0.97 | ||
+ | Measures of factor score adequacy | ||
+ | | ||
+ | Correlation of (regression) scores with factors | ||
+ | Multiple R square of scores with factors | ||
+ | Minimum correlation of possible factor scores | ||
+ | |||
+ | |||
+ | > fa.sort(fa.5.vm.minres) | ||
+ | Factor Analysis using method = minres | ||
+ | Call: fa(r = corMat, nfactors = num, rotate = " | ||
+ | Standardized loadings (pattern matrix) based upon correlation matrix | ||
+ | MR1 | ||
+ | Resale_Value | ||
+ | Maintenance | ||
+ | Price 0.57 0.15 -0.05 -0.04 -0.02 0.35 0.645 1.2 | ||
+ | Fuel_Efficiency | ||
+ | Space_comfort | ||
+ | Fuel_Type | ||
+ | Technology | ||
+ | Safety | ||
+ | Testimonials | ||
+ | Test_drive | ||
+ | Product_reviews | ||
+ | After_Sales_Service | ||
+ | Color 0.21 -0.05 0.26 0.07 0.74 0.67 0.329 1.4 | ||
+ | Exterior_Looks | ||
+ | |||
+ | | ||
+ | SS loadings | ||
+ | Proportion Var 0.12 0.11 0.08 0.07 0.07 | ||
+ | Cumulative Var 0.12 0.23 0.31 0.38 0.45 | ||
+ | Proportion Explained | ||
+ | Cumulative Proportion 0.27 0.51 0.68 0.84 1.00 | ||
+ | |||
+ | Mean item complexity = 1.7 | ||
+ | Test of the hypothesis that 5 factors are sufficient. | ||
+ | |||
+ | The degrees of freedom for the null model are 91 and the objective function was 2.97 | ||
+ | The degrees of freedom for the model are 31 and the objective function was 0.34 | ||
+ | |||
+ | The root mean square of the residuals (RMSR) is 0.04 | ||
+ | The df corrected root mean square of the residuals is 0.06 | ||
+ | |||
+ | Fit based upon off diagonal values = 0.97 | ||
+ | Measures of factor score adequacy | ||
+ | | ||
+ | Correlation of (regression) scores with factors | ||
+ | Multiple R square of scores with factors | ||
+ | Minimum correlation of possible factor scores | ||
+ | > | ||
+ | > | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Factor Analysis using method = minres | ||
+ | Call: fa(r = corMat, nfactors = num, rotate = " | ||
+ | Standardized loadings (pattern matrix) based upon correlation matrix | ||
+ | MR1 | ||
+ | ---------------------------------------------------------------- | ||
+ | Resale_Value | ||
+ | Maintenance | ||
+ | Price 0.57 0.15 -0.05 -0.04 -0.02 0.35 0.645 1.2 | ||
+ | Fuel_Efficiency | ||
+ | ---------------------------------------------------------------- | ||
+ | Space_comfort | ||
+ | Fuel_Type | ||
+ | Technology | ||
+ | Safety | ||
+ | ---------------------------------------------------------------- | ||
+ | Testimonials | ||
+ | Test_drive | ||
+ | Product_reviews | ||
+ | ---------------------------------------------------------------- | ||
+ | After_Sales_Service | ||
+ | ---------------------------------------------------------------- | ||
+ | Color 0.21 -0.05 0.26 0.07 0.74 0.67 0.329 1.4 | ||
+ | Exterior_Looks | ||
+ | |||
+ | | ||
+ | SS loadings | ||
+ | Proportion Var 0.12 0.11 0.08 0.07 0.07 | ||
+ | Cumulative Var 0.12 0.23 0.31 0.38 0.45 | ||
+ | Proportion Explained | ||
+ | Cumulative Proportion 0.27 0.51 0.68 0.84 1.00 | ||
+ | </ |
factor_analysis_examples.txt · Last modified: 2022/05/05 15:02 by hkimscil