Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

setwd("C:/Users/Pawan Chhatwal/OneDrive/Desktop/DESKTOP/BABI/MODULE 3-ADVANCED STATISTICS/FACTOR

ANALYSIS/DELHI AIR POLLUTION")

> getwd()

RKP=read.csv("Delhi Air Pollution Case Study-Dataset.csv",header =TRUE)

> library(psych)

> RKP <- na.omit(RKP)

> RKPCorr <- cor(RKP[-c(1,2,22)])

> RKPCorr
RKPCorr
NO CO NO2
O3
NO 1.00000000 0.67696029 0.5812679
0.120721119
CO 0.67696029 1.00000000 0.4133421 -
0.053396186
NO2 0.58126790 0.41334210 1.0000000
0.375333327
O3 0.12072112 -0.05339619 0.3753333
1.000000000
SO2 0.39118329 0.22670798 0.3612119
0.329173213
PM2.5 0.70463047 0.55417088 0.5795105
0.067004489
Benzene 0.77305833 0.64672782 0.5461371 -
0.109079794
Toulene 0.77517892 0.62662264 0.5284132 -
0.114901158
P_Xylene 0.86604077 0.68608766 0.5137107 -
0.074955118
NOx 0.94940445 0.69152935 0.5879553
0.041109820
PM10 0.67331264 0.47777436 0.5760809
0.183899056
WindDirection 0.30335980 0.07026543 0.1814424
0.063300864
NH3 0.62129889 0.49641984 0.5304001 -
0.001958607
RH 0.14705025 0.25194487 -0.1197191 -
0.612502424
Temp -0.48205483 -0.38782014 -0.3498939
0.107655790
WindSpeed -0.57909211 -0.44140548 -0.6106899 -
0.011432555
VerticalWindSpeed -0.05062095 -0.08169549 0.1377352
0.144604092
Solar -0.38751784 -0.44292191 -0.3394173
0.281918705
BarPressure 0.39035928 0.21819739 0.2773735
0.209755524
PD_PM2.5 0.60674886 0.49776287 0.4792056
0.061286921
PD_PM10 0.55552959 0.42245257 0.4815410
0.166941310
PD_NO2 0.49249620 0.34669363 0.7287087
0.322007022
PD_SO2 0.49745230 0.30763592 0.4837342
0.370163792
PD_CO 0.51037323 0.48592215 0.3155569 -
0.106288795
SO2 PM2.5 Benzene
Toulene
NO 0.39118329 0.70463047 0.77305833
0.77517892
CO 0.22670798 0.55417088 0.64672782
0.62662264
NO2 0.36121189 0.57951054 0.54613710
0.52841323
O3 0.32917321 0.06700449 -0.10907979 -
0.11490116
SO2 1.00000000 0.37171324 0.29119218
0.24287386
PM2.5 0.37171324 1.00000000 0.77516259
0.64730833
Benzene 0.29119218 0.77516259 1.00000000
0.94894064
Toulene 0.24287386 0.64730833 0.94894064
1.00000000
P_Xylene 0.26278805 0.67903498 0.91812642
0.94978302
NOx 0.32330575 0.64263526 0.77105018
0.79443858
PM10 0.38643914 0.89286260 0.62730189
0.50773894
WindDirection 0.22286092 0.29795269 0.23360704
0.20006514
NH3 0.31317002 0.78947864 0.75652897
0.66175021
RH -0.14571485 0.17245031 0.44906696
0.44240742
Temp -0.29537661 -0.61164052 -0.64978331 -
0.52427868
WindSpeed -0.20051890 -0.51683032 -0.68544770 -
0.72367197
VerticalWindSpeed -0.07283954 -0.07481952 -0.09556371 -
0.07907504
Solar -0.13051213 -0.52053877 -0.60774868 -
0.52748322
BarPressure 0.40189299 0.43110477 0.44613277
0.39384610
PD_PM2.5 0.31348411 0.84058878 0.71231859
0.58906063
PD_PM10 0.31946031 0.77639440 0.57753277
0.45458289
PD_NO2 0.30368321 0.50504787 0.47794333
0.44728494
PD_SO2 0.70488667 0.51549579 0.39044229
0.33616007
PD_CO 0.15642631 0.50485710 0.57254792
0.53438208
P_Xylene NOx PM10
WindDirection
NO 0.86604077 0.94940445 0.67331264
0.303359796
CO 0.68608766 0.69152935 0.47777436
0.070265433
NO2 0.51371066 0.58795526 0.57608095
0.181442450
O3 -0.07495512 0.04110982 0.18389906
0.063300864
SO2 0.26278805 0.32330575 0.38643914
0.222860919
PM2.5 0.67903498 0.64263526 0.89286260
0.297952686
Benzene 0.91812642 0.77105018 0.62730189
0.233607037
Toulene 0.94978302 0.79443858 0.50773894
0.200065138
P_Xylene 1.00000000 0.86401685 0.57462439
0.222664244
NOx 0.86401685 1.00000000 0.57316609
0.242969309
PM10 0.57462439 0.57316609 1.00000000
0.365052499
WindDirection 0.22266424 0.24296931 0.36505250
1.000000000
NH3 0.65798769 0.57815263 0.63180393
0.085675167
RH 0.34517373 0.25502520 -0.07986845 -
0.154386275
Temp -0.46138203 -0.44560131 -0.47019550 -
0.137419762
WindSpeed -0.67958725 -0.63574920 -0.39545378 -
0.241231651
VerticalWindSpeed -0.00740521 -0.09134434 0.01580934 -
0.078233739
Solar -0.48401084 -0.41559695 -0.37328750 -
0.004598241
BarPressure 0.33281591 0.32513134 0.38291915
0.141059308
PD_PM2.5 0.61853009 0.53926676 0.76602552
0.206533316
PD_PM10 0.50310007 0.45332846 0.81136785
0.220450779
PD_NO2 0.42810752 0.45920813 0.52338004
0.122535054
PD_SO2 0.37349682 0.40680951 0.54857800
0.201381554
PD_CO 0.55882065 0.50353813 0.42373914
0.069157579
NH3 RH Temp
WindSpeed
NO 0.621298889 0.14705025 -0.4820548 -
0.579092113
CO 0.496419835 0.25194487 -0.3878201 -
0.441405478
NO2 0.530400134 -0.11971908 -0.3498939 -
0.610689885
O3 -0.001958607 -0.61250242 0.1076558 -
0.011432555
SO2 0.313170020 -0.14571485 -0.2953766 -
0.200518902
PM2.5 0.789478643 0.17245031 -0.6116405 -
0.516830320
Benzene 0.756528972 0.44906696 -0.6497833 -
0.685447696
Toulene 0.661750210 0.44240742 -0.5242787 -
0.723671972
P_Xylene 0.657987695 0.34517373 -0.4613820 -
0.679587253
NOx 0.578152629 0.25502520 -0.4456013 -
0.635749200
PM10 0.631803934 -0.07986845 -0.4701955 -
0.395453785
WindDirection 0.085675167 -0.15438628 -0.1374198 -
0.241231651
NH3 1.000000000 0.39461182 -0.6612095 -
0.481880128
RH 0.394611818 1.00000000 -0.5773227 -
0.288804264
Temp -0.661209462 -0.57732266 1.0000000
0.408975428
WindSpeed -0.481880128 -0.28880426 0.4089754
1.000000000
VerticalWindSpeed -0.124593085 -0.35349227 0.2954563
0.004698092
Solar -0.600596228 -0.60120581 0.7718077
0.446223575
BarPressure 0.511212413 0.18107633 -0.5173927 -
0.210725045
PD_PM2.5 0.737144348 0.18356150 -0.6216734 -
0.409260603
PD_PM10 0.607459569 -0.02185193 -0.5083227 -
0.301171150
PD_NO2 0.514390337 -0.12300313 -0.3249090 -
0.433981971
PD_SO2 0.481841057 -0.16651690 -0.3993471 -
0.251553694
PD_CO 0.491399970 0.27474197 -0.4019045 -
0.344399910
VerticalWindSpeed Solar BarPressure
NO -0.050620948 -0.387517836 0.3903593
CO -0.081695487 -0.442921910 0.2181974
NO2 0.137735151 -0.339417282 0.2773735
O3 0.144604092 0.281918705 0.2097555
SO2 -0.072839544 -0.130512131 0.4018930
PM2.5 -0.074819524 -0.520538766 0.4311048
Benzene -0.095563709 -0.607748677 0.4461328
Toulene -0.079075040 -0.527483222 0.3938461
P_Xylene -0.007405210 -0.484010841 0.3328159
NOx -0.091344345 -0.415596953 0.3251313
PM10 0.015809345 -0.373287496 0.3829191
WindDirection -0.078233739 -0.004598241 0.1410593
NH3 -0.124593085 -0.600596228 0.5112124
RH -0.353492275 -0.601205813 0.1810763
Temp 0.295456254 0.771807663 -0.5173927
WindSpeed 0.004698092 0.446223575 -0.2107250
VerticalWindSpeed 1.000000000 0.161457566 -0.3713759
Solar 0.161457566 1.000000000 -0.2780028
BarPressure -0.371375892 -0.278002823 1.0000000
PD_PM2.5 -0.060674490 -0.552602356 0.4372181
PD_PM10 0.024801184 -0.447327133 0.3868305
PD_NO2 0.171290219 -0.287732044 0.3355824
PD_SO2 -0.049614518 -0.254231834 0.5181450
PD_CO -0.044676261 -0.436613669 0.2527666
PD_PM2.5 PD_PM10 PD_NO2
PD_SO2
NO 0.60674886 0.55552959 0.4924962
0.49745230
CO 0.49776287 0.42245257 0.3466936
0.30763592
NO2 0.47920564 0.48154105 0.7287087
0.48373420
O3 0.06128692 0.16694131 0.3220070
0.37016379
SO2 0.31348411 0.31946031 0.3036832
0.70488667
PM2.5 0.84058878 0.77639440 0.5050479
0.51549579
Benzene 0.71231859 0.57753277 0.4779433
0.39044229
Toulene 0.58906063 0.45458289 0.4472849
0.33616007
P_Xylene 0.61853009 0.50310007 0.4281075
0.37349682
NOx 0.53926676 0.45332846 0.4592081
0.40680951
PM10 0.76602552 0.81136785 0.5233800
0.54857800
WindDirection 0.20653332 0.22045078 0.1225351
0.20138155
NH3 0.73714435 0.60745957 0.5143903
0.48184106
RH 0.18356150 -0.02185193 -0.1230031 -
0.16651690
Temp -0.62167345 -0.50832271 -0.3249090 -
0.39934713
WindSpeed -0.40926060 -0.30117115 -0.4339820 -
0.25155369
VerticalWindSpeed -0.06067449 0.02480118 0.1712902 -
0.04961452
Solar -0.55260236 -0.44732713 -0.2877320 -
0.25423183
BarPressure 0.43721807 0.38683054 0.3355824
0.51814501
PD_PM2.5 1.00000000 0.90004926 0.5774567
0.51520012
PD_PM10 0.90004926 1.00000000 0.5739629
0.55016779
PD_NO2 0.57745670 0.57396293 1.0000000
0.48534503
PD_SO2 0.51520012 0.55016779 0.4853450
1.00000000
PD_CO 0.56953828 0.49497449 0.4108130
0.31641021
PD_CO
NO 0.51037323
CO 0.48592215
NO2 0.31555691
O3 -0.10628880
SO2 0.15642631
PM2.5 0.50485710
Benzene 0.57254792
Toulene 0.53438208
P_Xylene 0.55882065
NOx 0.50353813
PM10 0.42373914
WindDirection 0.06915758
NH3 0.49139997
RH 0.27474197
Temp -0.40190450
WindSpeed -0.34439991
VerticalWindSpeed -0.04467626
Solar -0.43661367
BarPressure 0.25276661
PD_PM2.5 0.56953828
PD_PM10 0.49497449
PD_NO2 0.41081304
PD_SO2 0.31641021
PD_CO 1.00000000

>

ev = eigen(RKPCorr)

> ev
eigen() decomposition
$values
[1] 11.21500818 2.98569744 1.78929681 1.34697073 1.11005651
[6] 0.89010563 0.73051047 0.60189395 0.57041627 0.41180518
[11] 0.38091795 0.32580388 0.31021327 0.27113681 0.24302887
[16] 0.21258838 0.16697205 0.14337784 0.09715854 0.08089151
[21] 0.04637548 0.03109583 0.02014172 0.01853671

$vectors
[,1] [,2] [,3] [,4] [,5]
[1,] -0.25703547 -0.03531565 0.17911853 -0.20054877 0.071745123
[2,] -0.20605896 0.08597345 0.17562374 -0.05306298 -0.015485414
[3,] -0.20448655 -0.21554940 0.17286720 0.01718753 -0.275666045
[4,] -0.01944850 -0.45860426 -0.02577409 -0.12177466 -0.256219034
[5,] -0.13176066 -0.25421831 -0.22160962 -0.31353935 -0.112769588
[6,] -0.26345365 -0.05132429 -0.07304600 0.14388264 0.206728833
[7,] -0.27294004 0.13350429 0.09485645 -0.05333413 0.013092311
[8,] -0.25390243 0.14965980 0.20084484 -0.15214065 -0.050037559
[9,] -0.25792176 0.10366898 0.25155155 -0.13270381 0.032074713
[10,] -0.24699526 0.03436785 0.23729865 -0.23588620 0.002366688
[11,] -0.23595192 -0.18016298 -0.05309507 0.16398804 0.304215951
[12,] -0.08234038 -0.13188237 0.02378573 -0.28821120 0.661898931
[13,] -0.24780212 0.05929378 -0.13579349 0.12013887 -0.109637614
[14,] -0.08870551 0.50781280 -0.12315597 -0.02510654 -0.126181000
[15,] 0.21046007 -0.17353918 0.32418745 -0.04535813 0.086533110
[16,] 0.20129764 -0.07062224 -0.26595977 0.16361095 0.139477523
[17,] 0.03045213 -0.19660128 0.41388502 0.40336903 -0.096566258
[18,] 0.19086434 -0.25678750 0.16016534 -0.20572136 0.144037904
[19,] -0.15875478 -0.05241806 -0.40330322 -0.25199672 -0.150511540
[20,] -0.25017237 -0.04499966 -0.14826970 0.29732013 0.153021806
[21,] -0.22430916 -0.15270818 -0.14878067 0.34983831 0.207355298
[22,] -0.19001924 -0.22660264 0.07792915 0.19829509 -0.270513987
[23,] -0.17979629 -0.27783084 -0.24291573 -0.12256986 -0.125458117
[24,] -0.18863021 0.08719718 0.03900863 0.18994476 0.014589433
[,6] [,7] [,8] [,9]
[1,] 0.187329024 -0.0290918951 -0.101980206 -0.0009925261
[2,] 0.393895203 0.0095743666 -0.256604373 -0.3857125651
[3,] -0.312690660 -0.0976517742 -0.051939798 -0.2609859645
[4,] -0.025295160 -0.2810753370 -0.134906962 -0.0347571607
[5,] 0.119052470 0.5946821842 0.014425423 -0.0285954459
[6,] -0.028831715 -0.0393831503 -0.234886919 0.0611670533
[7,] -0.035755250 -0.0046965816 0.016991632 0.2227395902
[8,] -0.013708875 -0.0313793628 0.080146682 0.2569815799
[9,] 0.124121162 0.0116808773 0.001284784 0.2267614808
[10,] 0.158155200 -0.0505287715 -0.094385662 -0.0947277639
[11,] 0.006857779 -0.0462280828 -0.243818411 0.0097693835
[12,] -0.415693297 0.0861453964 0.290852851 -0.1061411063
[13,] -0.046023615 -0.0565305010 -0.117716280 0.2252514313
[14,] -0.084815346 0.0742285908 0.021748447 0.0826742955
[15,] 0.233109695 -0.1248023909 0.072510153 0.1148791892
[16,] 0.419240391 0.0002036295 -0.040282298 0.0776925412
[17,] -0.078426162 0.4547536774 0.041484518 0.4251093660
[18,] 0.220220035 -0.2419275239 0.079074805 0.3016551893
[19,] 0.018208986 -0.2996906244 0.178121936 0.4166912548
[20,] 0.048980463 -0.0810207154 -0.001790860 0.0554811481
[21,] 0.077915127 -0.0730325752 -0.040856711 0.0042755942
[22,] -0.171230003 -0.1907946269 0.330259631 -0.1302930991
[23,] 0.145768201 0.3367913948 0.106805068 -0.0062671934
[24,] 0.358007576 -0.0302613459 0.710456469 -0.2183391799
[,10] [,11] [,12] [,13] [,14]
[1,] 0.20018935 0.045078466 0.36219094 -0.220940584 -0.05185748
[2,] 0.19410034 0.319751282 -0.48654114 0.361964030 0.06176190
[3,] -0.14868838 0.114501431 0.17751863 0.161393492 -0.16639534
[4,] 0.42007185 -0.490934253 -0.05542700 0.087543907 0.28703477
[5,] -0.25153577 -0.048177106 -0.02815218 0.058945791 0.37643232
[6,] -0.19004055 -0.115075370 0.10058793 0.273206679 -0.04012828
[7,] -0.03433428 -0.042821721 -0.15018740 0.016497589 0.13835012
[8,] -0.06489425 -0.037810252 -0.18242285 -0.113016765 0.08455436
[9,] 0.01127332 -0.058331697 -0.05810051 -0.143560700 0.03336489
[10,] 0.11784436 0.047437630 0.37147730 -0.242301703 -0.05841765
[11,] -0.12070202 -0.020220310 0.11622587 0.132431621 -0.25269671
[12,] 0.24400907 0.149911291 -0.02900334 0.153665631 0.13002303
[13,] -0.17090720 0.066494496 0.30294874 0.431588226 0.19461355
[14,] 0.03981417 -0.008733581 0.10522282 0.033056804 0.20775857
[15,] -0.38775582 0.061382913 -0.13708808 0.061682986 -0.09305775
[16,] 0.26197944 0.358372124 0.32861781 -0.001414682 0.22118522
[17,] 0.37307265 0.077164530 -0.01109711 0.155542319 -0.07863509
[18,] -0.26396908 0.025899625 0.06723387 0.101945576 0.20752615
[19,] 0.21975601 0.243073139 -0.19856098 0.154384027 -0.33276739
[20,] -0.06296755 -0.088752695 -0.18642531 -0.222741363 0.24569432
[21,] -0.01109030 -0.070441233 -0.21277417 -0.367932135 0.02699897
[22,] -0.10905862 0.507706047 0.02283136 -0.187491062 0.30033438
[23,] -0.08261760 0.040037242 -0.02826403 -0.170671660 -0.41365083
[24,] 0.03218655 -0.345868197 0.14140347 0.275617182 -0.08673447
[,15] [,16] [,17] [,18]
[1,] 0.07436840 -0.156037273 -0.106089101 0.031373007
[2,] -0.04875415 -0.143633695 0.074302397 -0.058523583
[3,] 0.07905742 0.364074723 0.098047569 -0.572941167
[4,] -0.15057629 0.028687546 -0.013150834 0.126907135
[5,] 0.36631787 0.076533056 -0.181626325 -0.010720042
[6,] 0.10460972 -0.040063823 0.110218457 0.157968811
[7,] -0.02390385 0.308855077 0.226434488 0.067554144
[8,] -0.08895696 0.338409830 0.150864414 0.067441059
[9,] -0.14263487 0.205195840 -0.033780518 0.075060172
[10,] 0.10205981 -0.170103755 -0.170881804 -0.099999434
[11,] 0.26180304 0.069921388 0.156046901 0.362642753
[12,] -0.18584321 -0.005699353 -0.074027900 -0.075590027
[13,] -0.45282648 -0.148470322 -0.297937648 -0.031995026
[14,] 0.02124349 -0.233156582 0.125097838 -0.156338947
[15,] -0.15107020 0.100930161 -0.514638690 0.019729291
[16,] -0.10110143 0.497842144 0.098617650 -0.072357958
[17,] 0.11141844 -0.140787934 -0.009285472 -0.082564107
[18,] 0.08882921 -0.334801252 0.509586473 -0.281709045
[19,] 0.30137700 -0.033830463 -0.205595367 -0.085461179
[20,] -0.04849144 -0.138601199 -0.126754495 -0.286891170
[21,] 0.05606623 -0.030903116 -0.106387084 -0.302205576
[22,] 0.04250845 -0.140898199 0.065131571 0.407317729
[23,] -0.55620851 -0.138713271 0.284933243 0.005425606
[24,] 0.09676572 0.039439091 0.015932927 -0.006514881
[,19] [,20] [,21] [,22]
[1,] -0.22154285 0.058342741 -0.035808169 -0.324233038
[2,] -0.01200032 0.043273313 0.008748498 -0.006209215
[3,] 0.07157800 -0.002730493 0.082008635 -0.109386077
[4,] 0.23856669 0.033367856 0.009116589 0.001815606
[5,] -0.01312845 0.057374641 0.011274459 -0.018101271
[6,] 0.15515262 -0.483975589 -0.513350259 -0.287087098
[7,] -0.08160567 -0.075581670 -0.191087594 0.555589992
[8,] 0.02764417 0.073370130 -0.005406389 -0.090690849
[9,] -0.04763871 0.048514065 0.198580386 -0.433566221
[10,] 0.17451105 -0.162253865 -0.081402763 0.490606172
[11,] 0.21074367 0.313405434 0.474890657 0.139194826
[12,] 0.09024586 0.019834361 -0.010026162 -0.008970559
[13,] -0.26250130 0.251859615 0.022021899 0.109764753
[14,] 0.67483620 0.152528788 0.064286693 -0.127363547
[15,] 0.42527447 -0.032274033 -0.033883141 0.024900990
[16,] 0.13989958 -0.074788267 -0.012063809 -0.024204423
[17,] 0.05812496 -0.034605198 -0.005240982 0.028870635
[18,] -0.07127352 0.089005612 0.026012828 -0.002008008
[19,] 0.01179130 -0.056392402 -0.001545529 -0.015727918
[20,] -0.04507770 -0.502193783 0.490401032 0.032939576
[21,] 0.04689657 0.503821216 -0.412584415 -0.008933871
[22,] 0.07881570 -0.016243514 -0.050848008 -0.050237481
[23,] 0.16400292 -0.070312264 -0.005249841 0.028778969
[24,] -0.03330807 0.028486744 0.001072171 0.002612971
[,23] [,24]
[1,] -0.107142948 0.609598218
[2,] 0.028540967 0.003699426
[3,] -0.069186416 0.040988302
[4,] -0.011950503 0.021864980
[5,] 0.007328493 -0.018701080
[6,] 0.044224031 -0.079380769
[7,] -0.460145400 0.279970049
[8,] 0.732658679 0.117202365
[9,] -0.407153569 -0.527430145
[10,] 0.179549484 -0.386339795
[11,] 0.024059474 0.024519827
[12,] 0.006687276 -0.010023349
[13,] 0.079639306 -0.051208462
[14,] -0.113009357 0.137251550
[15,] -0.084167012 0.219530203
[16,] 0.029561466 -0.018304609
[17,] 0.038255092 0.004608259
[18,] -0.002678614 -0.059948909
[19,] -0.019310136 -0.029579184
[20,] 0.044818829 0.123356966
[21,] -0.008146299 -0.078370591
[22,] -0.044168976 -0.036372603
[23,] -0.021830093 0.046115494
[24,] 0.013822174 -0.004179838

EigenValue=ev$values

> EigenValue
[1] 11.21500818 2.98569744 1.78929681 1.34697073 1.11005651
[6] 0.89010563 0.73051047 0.60189395 0.57041627 0.41180518
[11] 0.38091795 0.32580388 0.31021327 0.27113681 0.24302887
[16] 0.21258838 0.16697205 0.14337784 0.09715854 0.08089151
[21] 0.04637548 0.03109583 0.02014172 0.01853671

Factor=c(3:21,23:27)

> Scree=data.frame(Factor,EigenValue)

Factor=c(3:21,23:27)

> Scree=data.frame(Factor,EigenValue)

> plot(Scree,main="Scree Plot", col="Blue",ylim=c(0,4))

> lines(Scree,col="Red")

Unrotate=principal(RKPCorr, nfactors=5, rotate="none")


print(Unrotate,digits=3)
Principal Components Analysis
Call: principal(r = RKPCorr, nfactors = 5, rotate = "none")
Standardized loadings (pattern matrix) based upon correlation matrix
PC1 PC2 PC3 PC4 PC5 h2 u2
NO 0.861 0.061 0.240 0.233 0.076 0.862 0.1380
CO 0.690 -0.149 0.235 0.062 -0.016 0.558 0.4425
NO2 0.685 0.372 0.231 -0.020 -0.290 0.746 0.2541
O3 0.065 0.792 -0.034 0.141 -0.270 0.726 0.2738
SO2 0.441 0.439 -0.296 0.364 -0.119 0.622 0.3779
PM2.5 0.882 0.089 -0.098 -0.167 0.218 0.871 0.1289
Benzene 0.914 -0.231 0.127 0.062 0.014 0.909 0.0912
Toulene 0.850 -0.259 0.269 0.177 -0.053 0.896 0.1040
P_Xylene 0.864 -0.179 0.336 0.154 0.034 0.916 0.0838
NOx 0.827 -0.059 0.317 0.274 0.002 0.863 0.1366
PM10 0.790 0.311 -0.071 -0.190 0.321 0.865 0.1347
WindDirection 0.276 0.228 0.032 0.334 0.697 0.727 0.2728
NH3 0.830 -0.102 -0.182 -0.139 -0.116 0.765 0.2351
RH 0.297 -0.877 -0.165 0.029 -0.133 0.904 0.0962
Temp -0.705 0.300 0.434 0.053 0.091 0.786 0.2142
WindSpeed -0.674 0.122 -0.356 -0.190 0.147 0.654 0.3465
VerticalWindSpeed -0.102 0.340 0.554 -0.468 -0.102 0.662 0.3382
Solar -0.639 0.444 0.214 0.239 0.152 0.731 0.2686
BarPressure 0.532 0.091 -0.539 0.292 -0.159 0.693 0.3074
PD_PM2.5 0.838 0.078 -0.198 -0.345 0.161 0.892 0.1076
PD_PM10 0.751 0.264 -0.199 -0.406 0.218 0.886 0.1139
PD_NO2 0.636 0.392 0.104 -0.230 -0.285 0.703 0.2967
PD_SO2 0.602 0.480 -0.325 0.142 -0.132 0.736 0.2637
PD_CO 0.632 -0.151 0.052 -0.220 0.015 0.473 0.5267
com
NO 1.34
CO 1.35
NO2 2.23
O3 1.32
SO2 3.85
PM2.5 1.25
Benzene 1.18
Toulene 1.51
P_Xylene 1.47
NOx 1.54
PM10 1.82
WindDirection 2.05
NH3 1.23
RH 1.36
Temp 2.13
WindSpeed 1.90
VerticalWindSpeed 2.82
Solar 2.53
BarPressure 2.78
PD_PM2.5 1.56
PD_PM10 2.22
PD_NO2 2.51
PD_SO2 2.76
PD_CO 1.38

PC1 PC2 PC3 PC4 PC5


SS loadings 11.215 2.986 1.789 1.347 1.110
Proportion Var 0.467 0.124 0.075 0.056 0.046
Cumulative Var 0.467 0.592 0.666 0.722 0.769
Proportion Explained 0.608 0.162 0.097 0.073 0.060
Cumulative Proportion 0.608 0.770 0.867 0.940 1.000

Mean item complexity = 1.9


Test of the hypothesis that 5 components are sufficient.

The root mean square of the residuals (RMSR) is 0.046

Fit based upon off diagonal values = 0.99

UnrotatedProfile=plot(Unrotate,row.names(Unrotate$loadings))
Rotate=principal(RKPCorr,nfactors=5,rotate="varimax")
> print(Rotate,digits=3)

Principal Components Analysis


Call: principal(r = RKPCorr, nfactors = 5, rotate = "varimax")
Standardized loadings (pattern matrix) based upon correlation matrix
RC1 RC4 RC2 RC3 RC5 h2 u2
NO 0.801 0.325 0.238 0.092 0.224 0.862 0.1380
CO 0.684 0.293 0.011 0.059 0.015 0.558 0.4425
NO2 0.564 0.323 0.530 -0.165 -0.121 0.746 0.2541
O3 -0.081 -0.038 0.828 -0.180 0.025 0.726 0.2738
SO2 0.179 0.145 0.660 0.332 0.150 0.622 0.3779
PM2.5 0.477 0.752 0.162 0.125 0.189 0.871 0.1289
Benzene 0.801 0.469 -0.002 0.216 0.024 0.909 0.0912
Toulene 0.886 0.287 -0.007 0.171 0.006 0.896 0.1040
P_Xylene 0.895 0.315 0.014 0.076 0.099 0.916 0.0838
NOx 0.871 0.223 0.154 0.099 0.145 0.863 0.1366
PM10 0.351 0.745 0.281 -0.018 0.328 0.865 0.1347
WindDirection 0.173 0.129 0.082 0.073 0.818 0.727 0.2728
NH3 0.493 0.633 0.132 0.284 -0.154 0.765 0.2351
RH 0.360 0.114 -0.592 0.546 -0.336 0.904 0.0962
Temp -0.335 -0.572 0.006 -0.563 0.173 0.786 0.2142
WindSpeed -0.791 -0.129 -0.093 -0.029 0.040 0.654 0.3465
VerticalWindSpeed 0.018 0.062 0.084 -0.793 -0.147 0.662 0.3382
Solar -0.393 -0.552 0.207 -0.352 0.324 0.731 0.2686
BarPressure 0.176 0.290 0.421 0.632 -0.014 0.693 0.3074
PD_PM2.5 0.344 0.861 0.132 0.108 0.061 0.892 0.1076
PD_PM10 0.209 0.877 0.233 -0.016 0.135 0.886 0.1139
PD_NO2 0.388 0.477 0.498 -0.195 -0.199 0.703 0.2967
PD_SO2 0.201 0.400 0.680 0.260 0.072 0.736 0.2637
PD_CO 0.448 0.511 -0.061 0.039 -0.077 0.473 0.5267
com
NO 1.74
CO 1.37
NO2 2.89
O3 1.12
SO2 1.89
PM2.5 2.03
Benzene 1.79
Toulene 1.29
P_Xylene 1.29
NOx 1.29
PM10 2.19
WindDirection 1.18
NH3 2.58
RH 3.39
Temp 2.80
WindSpeed 1.09
VerticalWindSpeed 1.11
Solar 3.68
BarPressure 2.40
PD_PM2.5 1.41
PD_PM10 1.31
PD_NO2 3.56
PD_SO2 2.20
PD_CO 2.06

RC1 RC4 RC2 RC3 RC5


SS loadings 6.682 5.219 2.984 2.263 1.299
Proportion Var 0.278 0.217 0.124 0.094 0.054
Cumulative Var 0.278 0.496 0.620 0.714 0.769
Proportion Explained 0.362 0.283 0.162 0.123 0.070
Cumulative Proportion 0.362 0.645 0.807 0.930 1.000

Mean item complexity = 2


Test of the hypothesis that 5 components are sufficient.

The root mean square of the residuals (RMSR) is 0.046

Fit based upon off diagonal values = 0.99

RotatedProfile=plot(Rotate,row.names(Rotate$loadings),cex=1.0)

You might also like