Home » date » 2010 » Nov » 29 »

Personal Standards (Yt) - Maandelijkse effecten

*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: Mon, 29 Nov 2010 10:25:28 +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/Nov/29/t1291026275im1qe7klihg2ou7.htm/, Retrieved Mon, 29 Nov 2010 11:24:57 +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/Nov/29/t1291026275im1qe7klihg2ou7.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 25 30 19 22 22 25 23 17 21 19 19 15 16 23 27 22 14 22 23 23 21 19 18 20 23 25 19 24 22 25 26 29 32 25 29 28 17 28 29 26 25 14 25 26 20 18 32 25 25 23 21 20 15 30 24 26 24 22 14 24 24 24 24 19 31 22 27 19 25 20 21 27 23 25 20 21 22 23 25 25 17 19 25 19 20 26 23 27 17 17 19 17 22 21 32 21 21 18 18 23 19 20 21 20 17 18 19 22 15 14 18 24 35 29 21 25 20 22 13 26 17 25 20 19 21 22 24 21 26 24 16 23 18 16 26 19 21 21 22 23 29 21 21 23 27 25 21 10 20 26 24 29 19 24 19 24 22 17
 
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 time10 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
PS[t] = + 21.3846153846154 + 1.54395604395604M1[t] -0.456043956043958M2[t] + 1.40109890109889M3[t] + 0.538461538461531M4[t] -0.153846153846160M5[t] + 0.461538461538454M6[t] + 1.38461538461538M7[t] + 1.99999999999999M8[t] + 1.69230769230768M9[t] + 1.15384615384615M10[t] -0.461538461538467M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)21.38461538461541.18791118.001900
M11.543956043956041.6496880.93590.3508560.175428
M2-0.4560439560439581.649688-0.27640.7825970.391298
M31.401098901098891.6496880.84930.3970890.198545
M40.5384615384615311.679960.32050.7490290.374515
M5-0.1538461538461601.67996-0.09160.9271590.463579
M60.4615384615384541.679960.27470.7839080.391954
M71.384615384615381.679960.82420.4111640.205582
M81.999999999999991.679961.19050.2357670.117884
M91.692307692307681.679961.00730.3154220.157711
M101.153846153846151.679960.68680.4932720.246636
M11-0.4615384615384671.67996-0.27470.7839080.391954


Multiple Linear Regression - Regression Statistics
Multiple R0.200542222804997
R-squared0.040217183127569
Adjusted R-squared-0.031603299767647
F-TEST (value)0.559968152626386
F-TEST (DF numerator)11
F-TEST (DF denominator)147
p-value0.858509976817269
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.28307523839994
Sum Squared Residuals2696.67582417582


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12422.92857142857141.07142857142861
22520.92857142857144.07142857142857
33022.78571428571437.21428571428569
41921.9230769230769-2.92307692307692
52221.23076923076920.769230769230767
62221.84615384615380.153846153846157
72522.76923076923082.23076923076923
82323.3846153846154-0.384615384615375
91723.0769230769231-6.07692307692307
102122.5384615384615-1.53846153846154
111920.9230769230769-1.92307692307692
121921.3846153846154-2.38461538461540
131522.9285714285714-7.92857142857143
141620.9285714285714-4.92857142857142
152322.78571428571430.214285714285715
162721.92307692307695.07692307692308
172221.23076923076920.769230769230769
181421.8461538461538-7.84615384615385
192222.7692307692308-0.76923076923077
202323.3846153846154-0.384615384615383
212323.0769230769231-0.0769230769230741
222122.5384615384615-1.53846153846154
231920.9230769230769-1.92307692307692
241821.3846153846154-3.38461538461539
252022.9285714285714-2.92857142857143
262320.92857142857142.07142857142858
272522.78571428571432.21428571428572
281921.9230769230769-2.92307692307692
292421.23076923076922.76923076923077
302221.84615384615380.153846153846155
312522.76923076923082.23076923076923
322623.38461538461542.61538461538462
332923.07692307692315.92307692307693
343222.53846153846159.46153846153846
352520.92307692307694.07692307692308
362921.38461538461547.61538461538461
372822.92857142857145.07142857142857
381720.9285714285714-3.92857142857142
392822.78571428571435.21428571428572
402921.92307692307697.07692307692308
412621.23076923076924.76923076923077
422521.84615384615383.15384615384615
431422.7692307692308-8.76923076923077
442523.38461538461541.61538461538462
452623.07692307692312.92307692307692
462022.5384615384615-2.53846153846154
471820.9230769230769-2.92307692307692
483221.384615384615410.6153846153846
492522.92857142857142.07142857142857
502520.92857142857144.07142857142857
512322.78571428571430.214285714285715
522121.9230769230769-0.923076923076921
532021.2307692307692-1.23076923076923
541521.8461538461538-6.84615384615385
553022.76923076923087.23076923076923
562423.38461538461540.615384615384615
572623.07692307692312.92307692307692
582422.53846153846151.46153846153846
592220.92307692307691.07692307692308
601421.3846153846154-7.38461538461539
612422.92857142857141.07142857142857
622420.92857142857143.07142857142857
632422.78571428571431.21428571428572
642421.92307692307692.07692307692308
651921.2307692307692-2.23076923076923
663121.84615384615389.15384615384615
672222.7692307692308-0.76923076923077
682723.38461538461543.61538461538461
691923.0769230769231-4.07692307692307
702522.53846153846152.46153846153846
712020.9230769230769-0.923076923076922
722121.3846153846154-0.384615384615392
732722.92857142857144.07142857142857
742320.92857142857142.07142857142858
752522.78571428571432.21428571428572
762021.9230769230769-1.92307692307692
772121.2307692307692-0.230769230769232
782221.84615384615380.153846153846155
792322.76923076923080.230769230769230
802523.38461538461541.61538461538462
812523.07692307692311.92307692307693
821722.5384615384615-5.53846153846154
831920.9230769230769-1.92307692307692
842521.38461538461543.61538461538461
851922.9285714285714-3.92857142857143
862020.9285714285714-0.928571428571425
872622.78571428571433.21428571428572
882321.92307692307691.07692307692308
892721.23076923076925.76923076923077
901721.8461538461538-4.84615384615385
911722.7692307692308-5.76923076923077
921923.3846153846154-4.38461538461538
931723.0769230769231-6.07692307692307
942222.5384615384615-0.538461538461538
952120.92307692307690.076923076923077
963221.384615384615410.6153846153846
972122.9285714285714-1.92857142857143
982120.92857142857140.0714285714285749
991822.7857142857143-4.78571428571428
1001821.9230769230769-3.92307692307692
1012321.23076923076921.76923076923077
1021921.8461538461538-2.84615384615385
1032022.7692307692308-2.76923076923077
1042123.3846153846154-2.38461538461538
1052023.0769230769231-3.07692307692308
1061722.5384615384615-5.53846153846154
1071820.9230769230769-2.92307692307692
1081921.3846153846154-2.38461538461539
1092222.9285714285714-0.928571428571431
1101520.9285714285714-5.92857142857143
1111422.7857142857143-8.7857142857143
1121821.9230769230769-3.92307692307692
1132421.23076923076922.76923076923077
1143521.846153846153813.1538461538462
1152922.76923076923086.23076923076923
1162123.3846153846154-2.38461538461538
1172523.07692307692311.92307692307693
1182022.5384615384615-2.53846153846154
1192220.92307692307691.07692307692308
1201321.3846153846154-8.38461538461539
1212622.92857142857143.07142857142857
1221720.9285714285714-3.92857142857142
1232522.78571428571432.21428571428572
1242021.9230769230769-1.92307692307692
1251921.2307692307692-2.23076923076923
1262121.8461538461538-0.846153846153846
1272222.7692307692308-0.76923076923077
1282423.38461538461540.615384615384615
1292123.0769230769231-2.07692307692308
1302622.53846153846153.46153846153846
1312420.92307692307693.07692307692308
1321621.3846153846154-5.38461538461539
1332322.92857142857140.0714285714285696
1341820.9285714285714-2.92857142857142
1351622.7857142857143-6.78571428571429
1362621.92307692307694.07692307692308
1371921.2307692307692-2.23076923076923
1382121.8461538461538-0.846153846153846
1392122.7692307692308-1.76923076923077
1402223.3846153846154-1.38461538461538
1412323.0769230769231-0.0769230769230741
1422922.53846153846156.46153846153846
1432120.92307692307690.076923076923077
1442121.3846153846154-0.384615384615392
1452322.92857142857140.0714285714285696
1462720.92857142857146.07142857142857
1472522.78571428571432.21428571428572
1482121.9230769230769-0.923076923076921
1491021.2307692307692-11.2307692307692
1502021.8461538461538-1.84615384615385
1512622.76923076923083.23076923076923
1522423.38461538461540.615384615384615
1532923.07692307692315.92307692307693
1541922.5384615384615-3.53846153846154
1552420.92307692307693.07692307692308
1561921.3846153846154-2.38461538461539
1572422.92857142857141.07142857142857
1582220.92857142857141.07142857142858
1591722.7857142857143-5.78571428571428


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
150.8647517969389150.270496406122170.135248203061085
160.8764312179503710.2471375640992570.123568782049629
170.795068186886980.4098636262260420.204931813113021
180.8291367825563460.3417264348873080.170863217443654
190.7645235091478910.4709529817042180.235476490852109
200.6751636925681720.6496726148636570.324836307431828
210.6566735925900360.6866528148199270.343326407409964
220.5649028479245920.8701943041508150.435097152075408
230.4733162586469110.9466325172938210.526683741353089
240.3913946336115330.7827892672230670.608605366388467
250.3148535856090120.6297071712180230.685146414390988
260.2596176395769780.5192352791539570.740382360423022
270.203816031891290.407632063782580.79618396810871
280.183846537909720.367693075819440.81615346209028
290.1445563192297670.2891126384595340.855443680770233
300.1283278372497880.2566556744995760.871672162750212
310.09649453520962020.1929890704192400.90350546479038
320.0786117098888190.1572234197776380.921388290111181
330.1573231204556480.3146462409112950.842676879544352
340.3604118124133720.7208236248267440.639588187586628
350.3759969592839840.7519939185679680.624003040716016
360.5521874123652170.8956251752695660.447812587634783
370.633854060558760.7322918788824810.366145939441241
380.6176228111239990.7647543777520020.382377188876001
390.5908526003992790.8182947992014420.409147399600721
400.6607150286710130.6785699426579730.339284971328987
410.6431176770203970.7137646459592050.356882322979603
420.6445335308209810.7109329383580380.355466469179019
430.7830848116978510.4338303766042970.216915188302149
440.7423709714309640.5152580571380730.257629028569036
450.7131493423330330.5737013153339340.286850657666967
460.6966924593023740.6066150813952520.303307540697626
470.6659746258494550.668050748301090.334025374150545
480.8252034111835970.3495931776328050.174796588816403
490.8012385030561530.3975229938876950.198761496943847
500.7973230164588460.4053539670823090.202676983541155
510.773657675836780.4526846483264410.226342324163221
520.7392169498719290.5215661002561430.260783050128071
530.7100631189051530.5798737621896940.289936881094847
540.752889850234460.494220299531080.24711014976554
550.823306661817870.3533866763642610.176693338182131
560.788564780605160.4228704387896810.211435219394841
570.7639529983168550.472094003366290.236047001683145
580.7262613121251590.5474773757496820.273738687874841
590.6863644129369280.6272711741261440.313635587063072
600.7950587552981170.4098824894037660.204941244701883
610.7604028798792320.4791942402415360.239597120120768
620.7382934628648960.5234130742702080.261706537135104
630.7081671343077890.5836657313844220.291832865692211
640.6733581366580390.6532837266839210.326641863341961
650.6464082864170260.7071834271659480.353591713582974
660.8008046036750930.3983907926498140.199195396324907
670.765894274759510.4682114504809790.234105725240489
680.7521410250394570.4957179499210860.247858974960543
690.7500493832586820.4999012334826370.249950616741318
700.7224630323972160.5550739352055690.277536967602784
710.681633596437060.636732807125880.31836640356294
720.6387017031780380.7225965936439230.361298296821962
730.6327674230358740.7344651539282520.367232576964126
740.5970123267386530.8059753465226950.402987673261347
750.5743519445625220.8512961108749560.425648055437478
760.5385125270748040.9229749458503910.461487472925196
770.4917177768031430.9834355536062870.508282223196857
780.4433416273940730.8866832547881470.556658372605927
790.3957591780336140.7915183560672270.604240821966386
800.3595908163282950.719181632656590.640409183671705
810.32380201329730.64760402659460.6761979867027
820.3543418564126020.7086837128252050.645658143587398
830.3191064160073490.6382128320146990.680893583992651
840.3083453113236640.6166906226473270.691654688676336
850.3007676483570830.6015352967141670.699232351642917
860.2626167354264850.5252334708529690.737383264573515
870.2669449819247030.5338899638494060.733055018075297
880.2331939663239010.4663879326478020.766806033676099
890.2760386274072870.5520772548145730.723961372592713
900.2930534853426170.5861069706852340.706946514657383
910.3313339875535680.6626679751071350.668666012446433
920.3304100370567040.6608200741134080.669589962943296
930.377245612135050.75449122427010.62275438786495
940.3315489520303140.6630979040606280.668451047969686
950.2886235197880160.5772470395760330.711376480211984
960.6068909630484710.7862180739030580.393109036951529
970.5705585475582090.8588829048835830.429441452441791
980.5227191502595150.954561699480970.477280849740485
990.5260289075456750.947942184908650.473971092454325
1000.5106336862225910.9787326275548170.489366313777409
1010.4972138989918020.9944277979836050.502786101008198
1020.4916914493701830.9833828987403660.508308550629817
1030.476081344177590.952162688355180.52391865582241
1040.4366762981115810.8733525962231610.56332370188842
1050.4233217373191790.8466434746383580.576678262680821
1060.4672685683950910.9345371367901810.53273143160491
1070.4568575183428230.9137150366856450.543142481657177
1080.4270109522763960.8540219045527930.572989047723604
1090.3814956339627880.7629912679255760.618504366037212
1100.42256171199940.84512342399880.5774382880006
1110.5343191280483040.9313617439033920.465680871951696
1120.5237937569239730.9524124861520550.476206243076027
1130.5830812340314320.8338375319371370.416918765968568
1140.9281004846017330.1437990307965350.0718995153982675
1150.9451280376191630.1097439247616740.0548719623808371
1160.9320154564325820.1359690871348350.0679845435674175
1170.911385551921060.1772288961578810.0886144480789407
1180.909311570589050.1813768588219000.0906884294109499
1190.8831083210072470.2337833579855070.116891678992753
1200.9151699026318090.1696601947363820.0848300973681909
1210.898516380870580.2029672382588400.101483619129420
1220.9064006704092980.1871986591814050.0935993295907026
1230.9163406172328580.1673187655342850.0836593827671425
1240.9020502473762160.1958995052475690.0979497526237843
1250.8980655445765030.2038689108469950.101934455423497
1260.8635733294020.2728533411960.136426670598
1270.8243673284861950.3512653430276090.175632671513805
1280.7752771267606810.4494457464786380.224722873239319
1290.7711697271083260.4576605457833470.228830272891674
1300.7248460798900960.5503078402198080.275153920109904
1310.6672188482259220.6655623035481550.332781151774078
1320.648870296115540.702259407768920.35112970388446
1330.571222304096910.857555391806180.42877769590309
1340.6099759073442550.780048185311490.390024092655745
1350.6198575935149230.7602848129701540.380142406485077
1360.5955733405276650.808853318944670.404426659472335
1370.7072541646276920.5854916707446160.292745835372308
1380.6172960626169840.7654078747660320.382703937383016
1390.5852722768219220.8294554463561560.414727723178078
1400.4860550926118560.9721101852237120.513944907388144
1410.4770211155698510.9540422311397020.522978884430149
1420.7306845024249780.5386309951500450.269315497575022
1430.6325047152246110.7349905695507790.367495284775389
1440.4809713053226130.9619426106452260.519028694677387


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 level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/10ziaq1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/10ziaq1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/1szdw1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/1szdw1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/2szdw1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/2szdw1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/3szdw1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/3szdw1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/438uz1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/438uz1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/538uz1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/538uz1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/638uz1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/638uz1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/7ehb21291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/7ehb21291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/879tn1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/879tn1291026316.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/979tn1291026316.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291026275im1qe7klihg2ou7/979tn1291026316.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; 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