Home » date » 2010 » Dec » 12 »

Monthly dummie

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 12 Dec 2010 14:05:11 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq.htm/, Retrieved Sun, 12 Dec 2010 15:17:33 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
24 14 11 12 24 26 25 11 7 8 25 23 17 6 17 8 30 25 18 12 10 8 19 23 18 8 12 9 22 19 16 10 12 7 22 29 20 10 11 4 25 25 16 11 11 11 23 21 18 16 12 7 17 22 17 11 13 7 21 25 23 13 14 12 19 24 30 12 16 10 19 18 23 8 11 10 15 22 18 12 10 8 16 15 15 11 11 8 23 22 12 4 15 4 27 28 21 9 9 9 22 20 15 8 11 8 14 12 20 8 17 7 22 24 31 14 17 11 23 20 27 15 11 9 23 21 34 16 18 11 21 20 21 9 14 13 19 21 31 14 10 8 18 23 19 11 11 8 20 28 16 8 15 9 23 24 20 9 15 6 25 24 21 9 13 9 19 24 22 9 16 9 24 23 17 9 13 6 22 23 24 10 9 6 25 29 25 16 18 16 26 24 26 11 18 5 29 18 25 8 12 7 32 25 17 9 17 9 25 21 32 16 9 6 29 26 33 11 9 6 28 22 13 16 12 5 17 22 32 12 18 12 28 22 25 12 12 7 29 23 29 14 18 10 26 30 22 9 14 9 25 23 18 10 15 8 14 17 17 9 16 5 25 23 20 10 10 8 26 23 15 12 11 8 20 25 20 14 14 10 18 24 33 14 9 6 32 24 29 10 12 8 25 23 23 14 17 7 25 21 26 16 5 4 23 24 18 9 12 8 21 24 20 10 12 8 20 28 11 6 6 4 15 16 28 8 24 20 30 20 26 13 12 8 24 29 22 10 12 8 26 27 17 8 14 6 24 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Personal_Standards[t] = + 6.85249471188449 + 0.334156412849869Concern_over_Mistakes[t] -0.370092394686343Doubts_about_actions[t] + 0.1593164710071Parental_Expectations[t] + 0.0649584207606233Parental_Criticism[t] + 0.40340194756281Organization[t] -0.112988112395845M1[t] + 0.30165765044183M2[t] + 0.663745180491903M3[t] + 0.151960848781343M4[t] + 0.37281959143706M5[t] + 1.0266247528337M6[t] + 0.417404861828112M7[t] + 1.66380986838678M8[t] + 1.41001962150359M9[t] + 0.924259509685395M10[t] -0.535671626926254M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.852494711884492.4787742.76450.0064590.003229
Concern_over_Mistakes0.3341564128498690.0596925.59800
Doubts_about_actions-0.3700923946863430.116287-3.18260.0017930.000897
Parental_Expectations0.15931647100710.1066281.49410.1373590.068679
Parental_Criticism0.06495842076062330.1394340.46590.6420210.32101
Organization0.403401947562810.0761395.298200
M1-0.1129881123958451.367893-0.08260.9342860.467143
M20.301657650441831.3698780.22020.8260260.413013
M30.6637451804919031.3623930.48720.6268740.313437
M40.1519608487813431.4045630.10820.9139970.456999
M50.372819591437061.3995610.26640.7903310.395165
M61.02662475283371.4018810.73230.4651810.23259
M70.4174048618281121.4234880.29320.7697770.384888
M81.663809868386781.3974531.19060.2357970.117898
M91.410019621503591.3821361.02020.3093810.15469
M100.9242595096853951.3717390.67380.5015420.250771
M11-0.5356716269262541.422233-0.37660.7070020.353501


Multiple Linear Regression - Regression Statistics
Multiple R0.622661478001645
R-squared0.387707316187193
Adjusted R-squared0.318716591250539
F-TEST (value)5.61970201854202
F-TEST (DF numerator)16
F-TEST (DF denominator)142
p-value3.06102809766173e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.48067319339608
Sum Squared Residuals1720.3421948501


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12422.59839984911541.40160015088464
22522.35017379910262.64982620089741
33024.2894406049825.71055939501796
41919.969239125828-0.969239125827967
52220.44045101975261.55954898024736
62223.5898612001837-1.58986120018371
72522.34946743703742.65053256296261
82320.73025555258342.26974444741664
91719.5972008934956-2.59720089349562
102121.9972686559548-0.997268655954792
111921.8827978343171-2.88279783431708
121922.8959611609948-3.89596116099485
131522.741273172611-7.74127317261104
141616.891720346986-0.891720346985973
152319.60456113711963.39543886288044
162723.47879821602663.52120178397344
172220.99828039815741.00171960184259
181417.0436984178923-3.04369841789228
192223.8370243671717-1.83702436717173
202325.1848214397522-2.18482143975215
212322.54189942678210.458100573217887
222124.8668720012348-3.86687200123479
231921.5496071654349-2.5496071654349
241823.4211268547222-5.42112685472224
252022.5848651810081-2.58486518100814
262322.1959354038930.804064596106976
272523.32968092837441.67031907162564
281923.0282953297813-4.02829532978134
292423.65785795074540.342142049254587
302221.96805637258950.0319436274104594
312525.1109847781952-0.110984778195152
322624.53741453834171.46258546165829
332923.33328836399645.66671163600361
343225.62148067180576.37851932819433
352520.43109724401424.56890275598576
362923.93607100835955.0639289916405
372824.3940934919943.605906508006
381716.68814001666330.31185998333674
392826.29017674097321.70982325902683
402922.56200853703066.43799146296937
412627.3538958629773-1.35389586297727
422523.99303017012791.00696982987215
431419.3510385979061-5.35103859790606
442523.01823248040331.9817675195967
452622.63579551362263.36420448637736
462020.7051889143151-0.705188914315135
471820.3803193595599-2.38031935955988
483224.20360831545647.79639168454357
492524.43882843738620.561171562613776
502521.29298618352863.70701381647143
512321.02089109107691.97910890892308
522121.801551199464-0.801551199464008
532023.9342381633844-3.93423816338436
541517.0044493080387-2.00444930803874
553026.85634264665723.14365735334275
562426.5232916809371-2.52329168093707
572625.23634907158780.763650928412178
582421.99169804757192.00830195242813
592220.40635678820311.59364321179687
601415.0245112216697-1.02451122166975
612421.67080619376042.32919380623961
622422.61302447447361.38697552552639
632423.40449707147020.595502928529775
642419.74887415745094.25112584254914
651918.22147256378270.778527436217349
663127.35933786556593.64066213443407
672226.6218045032383-4.62180450323831
682722.5966672602384.40333273976202
691918.52668484181940.473315158180569
702522.74606337325082.25393662674918
712023.9538129310552-3.9538129310552
722121.0374369821878-0.0374369821877996
732726.89619092139280.103809078607211
742324.1537863151167-1.15378631511665
752525.7380213530364-0.738021353036382
762021.8920350263386-1.89203502633858
772118.93396748148732.06603251851267
782222.9519985207818-0.951998520781767
792322.98925123710150.0107487628985322
802525.1373752925557-0.13737529255568
812524.37936921822070.620630781779336
821724.3316144685456-7.3316144685456
831920.3586233541285-1.35862335412847
842523.45517829661841.54482170338161
851921.7349870254826-2.73498702548261
862022.7858399135692-2.78583991356919
872622.59152064174893.40847935825114
882320.48768031227542.51231968772456
892724.47390940002592.5260905999741
901721.3651148582308-4.36511485823084
911723.2084174838922-6.20841748389221
921921.3533357694662-2.35333576946622
931720.5748857342479-3.57488573424785
942222.27480789833-0.274807898330005
952122.6288813498089-1.62888134980886
963228.12401714027663.87598285972337
972124.0769821528683-3.07698215286835
982124.1521256301243-3.15212563012434
991821.3723276805754-3.37232768057538
1001820.9103911893702-2.91039118937019
1012322.72076002353680.279239976463159
1021921.0738079701298-2.07380797012977
1032020.753224596279-0.75322459627898
1042123.4845549731727-2.48455497317272
1052024.8675401713321-4.86754017133209
1061719.0776735155312-2.07767351553116
1071819.2790753612779-1.27907536127787
1081920.3131446122449-1.31314461224493
1092221.48785398741890.512146012581074
1101518.4265069306332-3.42650693063323
1111418.9306777030369-4.93067770303689
1121826.4103072897199-8.41030728971993
1132421.4982896343652.501710365635
1143524.082455238222910.9175447617771
1152919.32407211161169.67592788838835
1162122.9796209967813-1.97962099678128
1172521.26660644850263.73339355149745
1182018.87463266578891.12536733421109
1192222.1454594740557-0.1454594740557
1201316.2431973967479-3.24319739674791
1212622.60891805705913.39108194294092
1221716.58226355908920.417736440910772
1232520.29599767562434.70400232437565
1242020.4867606355997-0.486760635599708
1251917.98672765619361.01327234380639
1262122.9975235473161-1.99752354731611
1272220.85615174359081.14384825640918
1282423.8890156795150.110984320484983
1292123.8799128354004-2.87991283540036
1302625.97981955624010.0201804437599126
1312419.64413963369534.35586036630469
1321619.7710716822945-3.7710716822945
1332321.65505798727361.3449420127264
1341820.5118425264845-2.5118425264845
1351622.542310427475-6.54231042747502
1362623.592077637972.40792236202999
1371918.79851573160190.201484268398134
1382117.35279138803413.64720861196585
1392122.1678896151079-1.16788961510787
1402219.86383086746142.13616913253863
1412320.77201448506422.22798551493581
1422925.27451198992443.72548801007562
1432118.31206666275722.68793333724276
1442119.44004760379681.55995239620316
1452321.24335562028281.7566443797172
1462722.74708846714034.2529115328597
1472525.5018999362049-0.501899936204934
1482120.63198134314480.368018656855218
1491016.9816341139897-6.9816341139897
1502023.2178751428864-3.21787514288639
1512622.57433088221113.4256691177889
1522424.7015834687921-0.701583468792133
1532932.3884529959283-3.38845299592828
1541919.2583682415068-0.258368241506766
1552421.02776284169212.97223715830786
1561920.1346277246302-1.13462772463022
1572422.86838792234671.13161207765331
1582221.60856643319550.391433566804476
1591724.0879970083019-7.08799700830191


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.7574300882464570.4851398235070860.242569911753543
210.7013053830979880.5973892338040250.298694616902012
220.5794902721491780.8410194557016450.420509727850822
230.4531008279607660.9062016559215310.546899172039234
240.3982957635423150.7965915270846290.601704236457685
250.2959978424784380.5919956849568760.704002157521562
260.2264689383816290.4529378767632580.773531061618371
270.168755297497650.3375105949953010.83124470250235
280.2150910061107410.4301820122214820.784908993889259
290.1532460743528640.3064921487057280.846753925647136
300.12076619651990.24153239303980.8792338034801
310.08903052579353670.1780610515870730.910969474206463
320.05983779762798190.1196755952559640.940162202372018
330.162701365282740.325402730565480.83729863471726
340.2581659208904530.5163318417809070.741834079109546
350.3336457064746240.6672914129492490.666354293525376
360.4736231563110120.9472463126220250.526376843688988
370.452654039260110.9053080785202190.54734596073989
380.3936275624327020.7872551248654040.606372437567298
390.3413246855742970.6826493711485940.658675314425703
400.4787867111968230.9575734223936460.521213288803177
410.4413754495630540.8827508991261080.558624550436946
420.4108684845889360.8217369691778720.589131515411064
430.3824456350363740.7648912700727480.617554364963626
440.3845597739061920.7691195478123850.615440226093808
450.3463203121322230.6926406242644470.653679687867777
460.2922328980622710.5844657961245430.707767101937729
470.2643057607404060.5286115214808130.735694239259594
480.4060585920092670.8121171840185340.593941407990733
490.3509374389208740.7018748778417490.649062561079126
500.3526361294414210.7052722588828410.647363870558579
510.3739622701968310.7479245403936620.626037729803169
520.3252679318897470.6505358637794950.674732068110253
530.3749671052497080.7499342104994150.625032894750292
540.3441893637113450.688378727422690.655810636288655
550.4833877155335120.9667754310670240.516612284466488
560.5153530306553740.9692939386892520.484646969344626
570.4795380634118280.9590761268236560.520461936588172
580.4370277654653320.8740555309306640.562972234534668
590.3909055448357250.781811089671450.609094455164275
600.3531606513568850.7063213027137710.646839348643115
610.3408912973749780.6817825947499570.659108702625022
620.3098174240426190.6196348480852390.69018257595738
630.2824459807317490.5648919614634970.717554019268251
640.3214881484663170.6429762969326340.678511851533683
650.2853686767661680.5707373535323360.714631323233832
660.2870604646005390.5741209292010770.712939535399461
670.3379427084615560.6758854169231110.662057291538445
680.3511919904626860.7023839809253720.648808009537314
690.3078100440938330.6156200881876670.692189955906167
700.2821887249833790.5643774499667580.717811275016621
710.3078265747552850.6156531495105690.692173425244715
720.2674579273454070.5349158546908140.732542072654593
730.2272600466885350.454520093377070.772739953311465
740.1971697209484640.3943394418969290.802830279051536
750.1962152003100220.3924304006200430.803784799689979
760.1760781796591310.3521563593182610.823921820340869
770.167304107711090.3346082154221790.83269589228891
780.1383765940048670.2767531880097340.861623405995133
790.1131899543577920.2263799087155840.886810045642208
800.09397620604256650.1879524120851330.906023793957434
810.07689872512938990.153797450258780.92310127487061
820.1733049593455080.3466099186910150.826695040654492
830.1449724824267250.2899449648534490.855027517573275
840.122750536609680.2455010732193590.87724946339032
850.1131432300461730.2262864600923470.886856769953827
860.1080205290733490.2160410581466990.89197947092665
870.1344502569875840.2689005139751690.865549743012416
880.1338842993380390.2677685986760780.866115700661961
890.1221427532862970.2442855065725940.877857246713703
900.1370229236682440.2740458473364870.862977076331756
910.2223452615713780.4446905231427570.777654738428622
920.2036274023088330.4072548046176660.796372597691167
930.2014658339184510.4029316678369020.798534166081549
940.1670816621614340.3341633243228670.832918337838567
950.1447136155089550.289427231017910.855286384491045
960.1741804455825420.3483608911650850.825819554417458
970.17938109749980.3587621949996010.8206189025002
980.1752431950005910.3504863900011820.824756804999409
990.1696890675974220.3393781351948430.830310932402578
1000.1535778743867160.3071557487734320.846422125613284
1010.1282654944743790.2565309889487570.871734505525621
1020.116020386141730.232040772283460.88397961385827
1030.1108887810559620.2217775621119240.889111218944038
1040.0953862111331430.1907724222662860.904613788866857
1050.1194631579481820.2389263158963640.880536842051818
1060.110664351959290.2213287039185790.88933564804071
1070.1011384619891350.2022769239782710.898861538010865
1080.0797927720794110.1595855441588220.92020722792059
1090.0660014108534540.1320028217069080.933998589146546
1100.066619869552960.133239739105920.93338013044704
1110.0664026659503050.132805331900610.933597334049695
1120.1896617869815880.3793235739631760.810338213018412
1130.1841561109873780.3683122219747550.815843889012623
1140.7093004614532050.5813990770935910.290699538546795
1150.9207161156514040.1585677686971910.0792838843485957
1160.8967818292606080.2064363414787840.103218170739392
1170.9324522192198880.1350955615602230.0675477807801116
1180.9095329394413050.1809341211173890.0904670605586947
1190.925016586440590.1499668271188190.0749834135594094
1200.940928215299410.1181435694011810.0590717847005905
1210.9216450001336460.1567099997327070.0783549998663537
1220.8938294393380440.2123411213239120.106170560661956
1230.9731822850402080.0536354299195850.0268177149597925
1240.9589495228196240.08210095436075160.0410504771803758
1250.9420294024980170.1159411950039670.0579705975019833
1260.9192909553791920.1614180892416160.080709044620808
1270.8911522439292280.2176955121415440.108847756070772
1280.8565617929794060.2868764140411880.143438207020594
1290.8331006495683950.3337987008632090.166899350431605
1300.795659756050790.4086804878984180.204340243949209
1310.7368630073316240.5262739853367520.263136992668376
1320.6662995247124480.6674009505751040.333700475287552
1330.5986420254441790.8027159491116420.401357974555821
1340.5192004936736350.961599012652730.480799506326365
1350.4507747850133790.9015495700267580.549225214986621
1360.3846887547450180.7693775094900370.615311245254982
1370.469536621271030.939073242542060.53046337872897
1380.6579096205848210.6841807588303580.342090379415179
1390.529867836935510.940264326128980.47013216306449


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0166666666666667OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/10ncj01292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/10ncj01292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/1ybmo1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/1ybmo1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/2r23r1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/2r23r1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/3r23r1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/3r23r1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/4r23r1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/4r23r1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/5jb2u1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/5jb2u1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/6jb2u1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/6jb2u1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/7c21f1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/7c21f1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/8c21f1292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/8c21f1292162696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/9ncj01292162696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292163450suv9z83z6o5gqwq/9ncj01292162696.ps (open in new window)


 
Parameters (Session):
par1 = 5 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 5 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by