factload: R-mode Exploratory Factor Analysis

Description Usage Arguments Value References Examples

Description

This function produces a factor loading matrix given by the specified factor extraction method, number of factors and rotation method. R-mode Exploratory Factor Analysis is based on the factorization of the variables. See "References" for more details.

Usage

1
2
factload(data, cormeth = "spearman", data.cor, 
         method = "pc", nfac = 1, rotation = "varimax")

Arguments

data

Dataset to be analyzed for R-mode Exploratory Factor Analysis

cormeth

Correlation coefficient. Type polycor for polychoric correlation coefficient (see polychor), for else see cor. If data is NULL, and data.cor is specified; cormeth will be ignored.

data.cor

Given correlation matrix. However, if data is specified, data.cor will be replaced.

method

Factor extraction method. Type pc for Principal component factor analysis, mle for Maximum likelihood estimation and prax for Principal axis factor analysis (see "References")

nfac

The number of factors

rotation

Rotation method. Type varimax for orthogonal and promax for oblique rotation.

Value

Returns a loadings class factor loading matrix

References

Reyment, R., Joreskog, K.G., 1993. Applied Factor Analysis in the Natural Sciences. Cambridge University Press, Cambridge, United Kingdom.

Klinke, S., Wagner, C., 2008. Visualizing exploratory factor analysis models, in: Paulo, B. (Ed.), Compstat 2008: Proceedings in Computational Statistics: 18th Symposium Held in Porto, Portugal, 2008.

Harman, Harry H., and Wayne H. Jones. "Factor analysis by minimizing residuals (minres)." Psychometrika 31.3 (1966): 351-368.

Examples

1
2
3
4
5
6
data(timss2011)
timss2011 <- na.omit(timss2011)
factload(timss2011,nfac=5,method="prax",cormeth="spearman")
factload(timss2011,nfac=8,method="pc",cormeth="pearson",rotation="promax")
timsscor <- cor(timss2011)
factload(data.cor=timsscor,nfac=10,method="mle")

Example output

Loading required package: gplots

Attaching package: 'gplots'

The following object is masked from 'package:stats':

    lowess

Loading required package: polycor

Loadings:
     [,1]   [,2]   [,3]   [,4]   [,5]  
X10A                0.103 -0.101 -0.224
X10B                                   
X10C         0.106               -0.129
X11A                      -0.544 -0.130
X11B                      -0.514       
X11C -0.129 -0.105        -0.500       
X11D                      -0.475       
X12A -0.116        -0.152 -0.338  0.318
X12B        -0.254 -0.133 -0.328  0.256
X12C        -0.149 -0.136 -0.298  0.249
X13A         0.549                     
X13B         0.504                     
X13C         0.583                     
X13D         0.398                     
X13E         0.595                     
X13F         0.458                     
X17A -0.539        -0.419 -0.140       
X17B  0.633         0.156        -0.164
X17C -0.350        -0.450 -0.185       
X17D  0.727         0.222        -0.173
X17E -0.325        -0.337 -0.164       
X17F -0.611        -0.445 -0.143       
X17G -0.252        -0.481 -0.145  0.157
X18A -0.303        -0.420 -0.267 -0.138
X18B  0.537  0.146         0.152 -0.152
X18C -0.353        -0.326 -0.192       
X18D -0.416        -0.413 -0.277       
X18E -0.160        -0.381 -0.239 -0.125
X19A -0.540        -0.443 -0.135 -0.254
X19B  0.633  0.119                     
X19C  0.694         0.158              
X19D -0.519        -0.424 -0.163 -0.256
X19E  0.687  0.112                     
X19F -0.415        -0.462 -0.124 -0.361
X19G -0.313        -0.491 -0.220 -0.359
X19H -0.383        -0.500 -0.214 -0.361
X19I  0.690                            
X19J -0.238        -0.507 -0.158       
X19K               -0.620         0.142
X19L               -0.714         0.124
X19M               -0.749         0.101
X19N -0.184        -0.654              
X21A               -0.120 -0.106       

                [,1]  [,2]  [,3]  [,4]  [,5]
SS loadings    5.576 1.851 4.965 1.987 1.076
Proportion Var 0.130 0.043 0.115 0.046 0.025
Cumulative Var 0.130 0.173 0.288 0.334 0.359
Warning messages:
1: In sqrt(val) : NaNs produced
2: In sqrt(val) : NaNs produced
3: In sqrt(val) : NaNs produced
4: In sqrt(val) : NaNs produced
5: In sqrt(val) : NaNs produced
6: In sqrt(val) : NaNs produced
7: In sqrt(val) : NaNs produced
8: In sqrt(val) : NaNs produced

Loadings:
     [,1]   [,2]   [,3]   [,4]   [,5]   [,6]   [,7]   [,8]  
X10A        -0.142 -0.144  0.310  0.295  0.187 -0.149       
X10B  0.140  0.101               -0.198        -0.159  0.153
X10C  0.103                                            0.662
X11A                       0.779                            
X11B                       0.725                      -0.159
X11C                       0.656 -0.117               -0.136
X11D                       0.700                0.128  0.298
X12A                             -0.751                     
X12B        -0.158               -0.743                     
X12C                             -0.765                     
X13A         0.674                                          
X13B         0.574                                          
X13C         0.694                                          
X13D         0.537                                          
X13E         0.742                                    -0.173
X13F         0.562                                          
X17A -0.722         0.192                              0.112
X17B  0.269        -0.648                      -0.210       
X17C -0.404         0.121               -0.123         0.235
X17D  0.383        -0.648                      -0.171       
X17E -0.835                              0.107              
X17F -0.734         0.261                                   
X17G -0.637                             -0.249  0.138 -0.127
X18A -0.373        -0.132                0.103 -0.516       
X18B  0.124        -0.584 -0.149               -0.107  0.170
X18C -0.670                              0.158 -0.130       
X18D -0.660                                    -0.154 -0.136
X18E -0.451        -0.226                      -0.303  0.111
X19A -0.254         0.212                      -0.497       
X19B -0.228        -0.728                       0.263       
X19C               -0.727                       0.187       
X19D -0.253         0.200                      -0.493       
X19E  0.118        -0.724                                   
X19F                0.173               -0.121 -0.654  0.111
X19G                                           -0.795       
X19H                                           -0.764       
X19I               -0.767                       0.137       
X19J -0.432                             -0.208 -0.137       
X19K -0.249        -0.110               -0.600              
X19L                                    -0.893              
X19M                                    -0.931              
X19N                                    -0.698 -0.129       
X21A                                                   0.654

                [,1]  [,2]  [,3]  [,4]  [,5]  [,6]  [,7]  [,8]
SS loadings    4.355 2.512 3.731 2.207 1.919 2.781 2.909 1.313
Proportion Var 0.101 0.058 0.087 0.051 0.045 0.065 0.068 0.031
Cumulative Var 0.101 0.160 0.246 0.298 0.342 0.407 0.475 0.505

Loadings:
     Factor1 Factor2 Factor3 Factor4 Factor5 Factor6 Factor7 Factor8 Factor9
X10A                  0.209                          -0.131   0.126         
X10B                                                                        
X10C                                                                 -0.179 
X11A                  0.683                                          -0.127 
X11B  0.114           0.608                                                 
X11C  0.128           0.532                           0.164                 
X11D                  0.556                                          -0.192 
X12A  0.163                                           0.607                 
X12B                  0.120  -0.201                   0.636                 
X12C                                                  0.587                 
X13A                          0.563                                         
X13B                          0.484                                  -0.111 
X13C                          0.612                                         
X13D                          0.417                                         
X13E                          0.640                                   0.110 
X13F                          0.457                                         
X17A  0.625   0.125                          -0.339                  -0.156 
X17B -0.240                                   0.610           0.153         
X17C  0.437   0.203                          -0.256                  -0.330 
X17D -0.351                                   0.679           0.166   0.120 
X17E  0.559                                  -0.156                         
X17F  0.676   0.144                          -0.405                  -0.151 
X17G  0.520   0.270                          -0.129   0.124                 
X18A  0.514           0.106           0.369  -0.122                         
X18B -0.179          -0.130   0.114           0.532  -0.101   0.142  -0.124 
X18C  0.562                           0.127  -0.176          -0.107         
X18D  0.643   0.122   0.110           0.149  -0.204   0.117           0.109 
X18E  0.439   0.114   0.105           0.188                          -0.165 
X19A  0.485   0.154                   0.352  -0.370           0.246         
X19B                                 -0.160   0.659          -0.137  -0.101 
X19C -0.157  -0.105                  -0.150   0.693          -0.129         
X19D  0.476   0.135                   0.303  -0.357           0.321  -0.129 
X19E -0.198                                   0.679                         
X19F  0.327   0.210                   0.420  -0.313           0.271  -0.281 
X19G  0.363   0.178   0.112           0.649  -0.168                  -0.126 
X19H  0.403   0.176   0.113           0.629  -0.234                         
X19I -0.112                                   0.702          -0.121         
X19J  0.491   0.243                   0.119  -0.131   0.115          -0.144 
X19K  0.387   0.478                                   0.108          -0.159 
X19L  0.236   0.764                                                         
X19M  0.205   0.876                   0.116                                 
X19N  0.278   0.583                   0.145  -0.178                  -0.195 
X21A                                                                 -0.229 
     Factor10
X10A         
X10B         
X10C         
X11A         
X11B         
X11C         
X11D         
X12A         
X12B         
X12C         
X13A         
X13B         
X13C         
X13D         
X13E         
X13F         
X17A -0.288  
X17B         
X17C         
X17D  0.104  
X17E         
X17F -0.407  
X17G         
X18A         
X18B         
X18C         
X18D         
X18E  0.130  
X19A         
X19B         
X19C         
X19D         
X19E         
X19F         
X19G         
X19H         
X19I         
X19J  0.166  
X19K  0.117  
X19L         
X19M         
X19N         
X21A         

               Factor1 Factor2 Factor3 Factor4 Factor5 Factor6 Factor7 Factor8
SS loadings      4.622   2.383   1.639   1.846   1.563   4.018   1.328   0.434
Proportion Var   0.107   0.055   0.038   0.043   0.036   0.093   0.031   0.010
Cumulative Var   0.107   0.163   0.201   0.244   0.280   0.374   0.405   0.415
               Factor9 Factor10
SS loadings      0.642    0.368
Proportion Var   0.015    0.009
Cumulative Var   0.430    0.438

DandEFA documentation built on May 2, 2019, 2:17 a.m.

Related to factload in DandEFA...