User Tools

Site Tools


r:deleting_columns_in_data_frame_by_names

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
r:deleting_columns_in_data_frame_by_names [2017/12/21 07:25] – created hkimscilr:deleting_columns_in_data_frame_by_names [2017/12/21 07:30] (current) hkimscil
Line 242: Line 242:
 </code> </code>
  
 +Then, we do fa again with efa_a data.
 +<code>> efa_a.fa.4 <- fa(efa_a, nfactors=4, rotate="varimax")
 +> efa_a.fa.4
 +Factor Analysis using method =  minres
 +Call: fa(r = efa_a, nfactors = 4, rotate = "varimax")
 +Standardized loadings (pattern matrix) based upon correlation matrix
 +                      MR1   MR2   MR3   MR4   h2   u2 com
 +Price                0.54  0.11  0.01 -0.05 0.31 0.69 1.1
 +Safety              -0.27  0.40 -0.16  0.07 0.26 0.74 2.2
 +Exterior_Looks      -0.01  0.02  0.19 -0.56 0.35 0.65 1.2
 +Space_comfort       -0.01  0.74  0.26 -0.22 0.67 0.33 1.4
 +After_Sales_Service  0.17  0.49  0.14  0.12 0.30 0.70 1.6
 +Resale_Value         0.72 -0.14 -0.13  0.06 0.55 0.45 1.2
 +Fuel_Type            0.06  0.55  0.03 -0.07 0.31 0.69 1.1
 +Fuel_Efficiency      0.50  0.23  0.33  0.30 0.50 0.50 3.0
 +Color                0.20 -0.06  0.27  0.69 0.59 0.41 1.5
 +Maintenance          0.60  0.02  0.12  0.22 0.43 0.57 1.4
 +Test_drive           0.09  0.13  0.42 -0.02 0.20 0.80 1.3
 +Product_reviews      0.33  0.12  0.44  0.03 0.32 0.68 2.0
 +Testimonials        -0.24 -0.04  0.67  0.00 0.51 0.49 1.3
  
 +                       MR1  MR2  MR3  MR4
 +SS loadings           1.73 1.37 1.18 1.00
 +Proportion Var        0.13 0.11 0.09 0.08
 +Cumulative Var        0.13 0.24 0.33 0.41
 +Proportion Explained  0.33 0.26 0.22 0.19
 +Cumulative Proportion 0.33 0.59 0.81 1.00
 +
 +Mean item complexity =  1.6
 +Test of the hypothesis that 4 factors are sufficient.
 +
 +The degrees of freedom for the null model are  78  and the objective function was  2.76 with Chi Square of  231.56
 +The degrees of freedom for the model are 32  and the objective function was  0.48 
 +
 +The root mean square of the residuals (RMSR) is  0.05 
 +The df corrected root mean square of the residuals is  0.07 
 +
 +The harmonic number of observations is  90 with the empirical chi square  29.46  with prob <  0.6 
 +The total number of observations was  90  with Likelihood Chi Square =  38.68  with prob <  0.19 
 +
 +Tucker Lewis Index of factoring reliability =  0.889
 +RMSEA index =  0.06  and the 90 % confidence intervals are  0 0.097
 +BIC =  -105.32
 +Fit based upon off diagonal values = 0.95
 +Measures of factor score adequacy             
 +                                                   MR1  MR2  MR3  MR4
 +Correlation of (regression) scores with factors   0.86 0.85 0.81 0.80
 +Multiple R square of scores with factors          0.74 0.72 0.66 0.64
 +Minimum correlation of possible factor scores     0.49 0.44 0.32 0.28
 +
 +> fa.sort(efa_a.fa.4)
 +Factor Analysis using method =  minres
 +Call: fa(r = efa_a, nfactors = 4, rotate = "varimax")
 +Standardized loadings (pattern matrix) based upon correlation matrix
 +                      MR1   MR2   MR3   MR4   h2   u2 com
 +Resale_Value         0.72 -0.14 -0.13  0.06 0.55 0.45 1.2
 +Maintenance          0.60  0.02  0.12  0.22 0.43 0.57 1.4
 +Price                0.54  0.11  0.01 -0.05 0.31 0.69 1.1
 +Fuel_Efficiency      0.50  0.23  0.33  0.30 0.50 0.50 3.0
 +Space_comfort       -0.01  0.74  0.26 -0.22 0.67 0.33 1.4
 +Fuel_Type            0.06  0.55  0.03 -0.07 0.31 0.69 1.1
 +After_Sales_Service  0.17  0.49  0.14  0.12 0.30 0.70 1.6
 +Safety              -0.27  0.40 -0.16  0.07 0.26 0.74 2.2
 +Testimonials        -0.24 -0.04  0.67  0.00 0.51 0.49 1.3
 +Product_reviews      0.33  0.12  0.44  0.03 0.32 0.68 2.0
 +Test_drive           0.09  0.13  0.42 -0.02 0.20 0.80 1.3
 +Color                0.20 -0.06  0.27  0.69 0.59 0.41 1.5
 +Exterior_Looks      -0.01  0.02  0.19 -0.56 0.35 0.65 1.2
 +
 +                       MR1  MR2  MR3  MR4
 +SS loadings           1.73 1.37 1.18 1.00
 +Proportion Var        0.13 0.11 0.09 0.08
 +Cumulative Var        0.13 0.24 0.33 0.41
 +Proportion Explained  0.33 0.26 0.22 0.19
 +Cumulative Proportion 0.33 0.59 0.81 1.00
 +
 +Mean item complexity =  1.6
 +Test of the hypothesis that 4 factors are sufficient.
 +
 +The degrees of freedom for the null model are  78  and the objective function was  2.76 with Chi Square of  231.56
 +The degrees of freedom for the model are 32  and the objective function was  0.48 
 +
 +The root mean square of the residuals (RMSR) is  0.05 
 +The df corrected root mean square of the residuals is  0.07 
 +
 +The harmonic number of observations is  90 with the empirical chi square  29.46  with prob <  0.6 
 +The total number of observations was  90  with Likelihood Chi Square =  38.68  with prob <  0.19 
 +
 +Tucker Lewis Index of factoring reliability =  0.889
 +RMSEA index =  0.06  and the 90 % confidence intervals are  0 0.097
 +BIC =  -105.32
 +Fit based upon off diagonal values = 0.95
 +Measures of factor score adequacy             
 +                                                   MR1  MR2  MR3  MR4
 +Correlation of (regression) scores with factors   0.86 0.85 0.81 0.80
 +Multiple R square of scores with factors          0.74 0.72 0.66 0.64
 +Minimum correlation of possible factor scores     0.49 0.44 0.32 0.28
 +
 +</code>
 +
 +We see four factors, of which names might be as follow:
 +  * MR1: economic factor
 +  * MR2: convenience factor
 +  * MR3: information (review) factor
 +  * MR4: look factor
 +<code>                      MR1   MR2   MR3   MR4   h2   u2 com
 +Resale_Value         0.72 -0.14 -0.13  0.06 0.55 0.45 1.2
 +Maintenance          0.60  0.02  0.12  0.22 0.43 0.57 1.4
 +Price                0.54  0.11  0.01 -0.05 0.31 0.69 1.1
 +Fuel_Efficiency      0.50  0.23  0.33  0.30 0.50 0.50 3.0
 +----
 +Space_comfort       -0.01  0.74  0.26 -0.22 0.67 0.33 1.4
 +Fuel_Type            0.06  0.55  0.03 -0.07 0.31 0.69 1.1
 +After_Sales_Service  0.17  0.49  0.14  0.12 0.30 0.70 1.6
 +Safety              -0.27  0.40 -0.16  0.07 0.26 0.74 2.2
 +----
 +Testimonials        -0.24 -0.04  0.67  0.00 0.51 0.49 1.3
 +Product_reviews      0.33  0.12  0.44  0.03 0.32 0.68 2.0
 +Test_drive           0.09  0.13  0.42 -0.02 0.20 0.80 1.3
 +----
 +Color                0.20 -0.06  0.27  0.69 0.59 0.41 1.5
 +Exterior_Looks      -0.01  0.02  0.19 -0.56 0.35 0.65 1.2
 +</code>
r/deleting_columns_in_data_frame_by_names.1513810508.txt.gz · Last modified: 2017/12/21 07:25 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki