Home » date » 2010 » Dec » 22 »

BEL20-MR1

*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: Wed, 22 Dec 2010 15:44:40 +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/22/t129303522624nzf5nsq8teqx3.htm/, Retrieved Wed, 22 Dec 2010 17:27:17 +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/22/t129303522624nzf5nsq8teqx3.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 «
3,04 493 9 3.030 9.026 25,64 104,8 3,28 481 11 2.803 9.787 27,97 105,2 3,51 462 13 2.768 9.536 27,62 105,6 3,69 457 12 2.883 9.490 23,31 105,8 3,92 442 13 2.863 9.736 29,07 106,1 4,29 439 15 2.897 9.694 29,58 106,5 4,31 488 13 3.013 9.647 28,63 106,71 4,42 521 16 3.143 9.753 29,92 106,68 4,59 501 10 3.033 10.070 32,68 107,41 4,76 485 14 3.046 10.137 31,54 107,15 4,83 464 14 3.111 9.984 32,43 107,5 4,83 460 45 3.013 9.732 26,54 107,22 4,76 467 13 2.987 9.103 25,85 107,11 4,99 460 8 2.996 9.155 27,60 107,57 4,78 448 7 2.833 9.308 25,71 107,81 5,06 443 3 2.849 9.394 25,38 108,75 4,65 436 3 2.795 9.948 28,57 109,43 4,54 431 4 2.845 10.177 27,64 109,62 4,51 484 4 2.915 10.002 25,36 109,54 4,49 510 0 2.893 9.728 25,90 109,53 3,99 513 -4 2.604 10.002 26,29 109,84 3,97 503 -14 2.642 10.063 21,74 109,67 3,51 471 -18 2.660 10.018 19,20 109,79 3,34 471 -8 2.639 9.960 19,32 109,56 3,29 476 -1 2.720 10.236 19,82 110,22 3,28 475 1 2.746 10.893 20,36 110,4 3,26 470 2 2.736 10.756 24,31 110,69 3,32 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 time11 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
BEL20[t] = -6.52694269803798 + 0.38134548609792Eonia[t] + 0.0066331019909006Werkloosheid[t] + 0.0339479944182582Consumentenvertrouwen[t] -0.0176233167337368Goudprijs[t] + 0.00861723790694973Olieprijs[t] + 0.0406391768418570CPI[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.526942698037982.38488-2.73680.0071160.003558
Eonia0.381345486097920.0642675.933800
Werkloosheid0.00663310199090060.0013165.04032e-061e-06
Consumentenvertrouwen0.03394799441825820.0069714.86993e-062e-06
Goudprijs-0.01762331673373680.022191-0.79420.428610.214305
Olieprijs0.008617237906949730.0039432.18560.0307220.015361
CPI0.04063917684185700.0247861.63960.1036160.051808


Multiple Linear Regression - Regression Statistics
Multiple R0.821004574068137
R-squared0.674048510640803
Adjusted R-squared0.658276664381487
F-TEST (value)42.7374512506842
F-TEST (DF numerator)6
F-TEST (DF denominator)124
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.443811783973242
Sum Squared Residuals24.4241435495955


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13.032.528862467100140.501137532899857
22.8032.631606639734890.171393360265108
32.7682.678846242516290.0891537574837057
42.8832.652173138200330.230826861799671
52.8632.731825772037690.131174227962309
62.8972.94231092612984-0.0453109261298374
73.0133.20823999158108-0.195239991581082
83.1433.57895333402728-0.435953334027283
93.0333.35529564464951-0.322295644649509
103.0463.42821612369081-0.382216123690813
113.1113.34020458700085-0.229204587000851
123.0134.3083665810325-1.29536658103250
132.9873.24243715217481-0.255437152174809
142.9963.14683270316400-0.150832703163997
152.8332.94397538811202-0.110975388112018
162.8492.91563616907485-0.0666361690748498
172.7952.758213117543540.0367868824564586
182.8452.712719271350990.132280728649011
192.9153.03301895613899-0.118018956138994
202.8933.07113642599380-0.178136425993797
212.6042.77570109006415-0.171701090064148
222.6422.315071101390110.326928898609894
232.661.775382902593600.884617097406401
242.6392.04274332438530.596256675614701
252.722.320743961213300.399256038786698
262.7462.378583234405160.367416765594839
272.7362.419976654556070.316023345443931
282.8122.327544576919110.484455423080892
292.7992.320682429893770.478317570106226
302.5552.290918972301560.264081027698440
312.3052.67672989992180-0.371729899921805
322.2152.66082224946506-0.445822249465058
332.0662.68646593848017-0.620465938480174
341.942.63971624795032-0.699716247950316
352.0422.51314735381025-0.471147353810252
361.9952.34075676879281-0.345756768792811
371.9472.27731516979939-0.330315169799387
381.7662.16750911477274-0.401509114772736
391.6351.94932252581049-0.314322525810488
401.8332.06133507586850-0.228335075868503
411.912.06531652356652-0.155316523566523
421.961.96783418640435-0.00783418640434615
431.972.24318894228212-0.273188942282121
442.0612.40753719200839-0.346537192008392
452.0932.54982783286232-0.456827832862316
462.1212.13125322539307-0.0102532253930704
472.1752.30269572913065-0.127695729130647
482.1972.39521749977699-0.198217499776989
492.352.55283678509818-0.202836785098181
502.442.63824164372342-0.198241643723416
512.4092.54239917372659-0.133399173726592
522.4732.48727537695453-0.0142753769545326
532.4082.41205113061827-0.00405113061826799
542.4552.64208456826422-0.187084568264222
552.4482.8938820671105-0.445882067110501
562.4983.10151427871375-0.60351427871375
572.6463.12993179137956-0.483931791379559
582.7573.0772604088016-0.320260408801600
592.8492.87701643611857-0.0280164361185700
602.9212.853424110705630.0675758892943694
612.9822.889733610969180.0922663890308174
623.0813.015356058129020.0656439418709842
633.1063.10986675820726-0.00386675820725781
643.1192.951037973466970.167962026533034
653.0612.697078527132910.363921472867087
663.0972.739848933397470.357151066602535
673.1623.139190137706570.0228098622934251
683.2573.27800536751436-0.0210053675143613
693.2773.14203210050450.134967899495502
703.2953.172461044194780.122538955805216
713.3642.997993963742540.366006036257458
723.4943.216133603129130.27786639687087
733.6673.384938114063590.282061885936408
743.8133.337432671164820.47556732883518
753.9183.244456292096070.673543707903935
763.8963.328955029161850.567044970838153
773.8013.26815956712910.532840432870902
783.573.462666725696360.107333274303636
793.7023.85764514853185-0.155645148531854
803.8623.96758405557747-0.105584055577467
813.973.866085945398650.103914054601354
824.1393.837928277189910.301071722810089
834.23.671996314150980.52800368584902
844.2913.410510993034830.880489006965169
854.4443.630885058131740.81311494186826
864.5033.664703689178740.838296310821256
874.3573.568464321332140.788535678667865
884.5913.747530460337780.843469539662219
894.6973.634880062617961.06211993738204
904.6213.612281971441691.00871802855831
914.5634.019945289372950.543054710627052
924.2034.007932659482590.195067340517414
934.2963.881305919790740.41469408020926
944.4353.843079336437810.591920663562193
954.1053.652063172416140.452936827583862
964.1173.757124883559860.359875116440137
973.8443.767821405665080.0761785943349186
983.7213.85309626671009-0.132096266710090
993.6743.88954341116678-0.215543411166777
1003.8583.793475126939280.0645248730607213
1013.8013.766847927768530.0341520722314743
1023.5043.86283777376056-0.358837773760565
1033.0334.2358899442194-1.2028899442194
1043.0474.20228495580579-1.15528495580579
1052.9624.02778282004451-1.06578282004451
1062.1983.25381164883254-1.05581164883254
1072.0142.60415942852153-0.590159428521525
1081.8632.22344393493199-0.360443934931989
1091.9052.21079346409249-0.305793464092489
1101.8111.85654968154084-0.0455496815408419
1111.671.8116048573789-0.141604857378901
1121.8641.863937387790016.26122099874546e-05
1132.0521.908936040835420.143063959164578
1142.032.08139440319924-0.0513944031992398
1152.0712.29810846050504-0.227108460505042
1162.2932.64124405962976-0.348244059629764
1172.4432.47677443292429-0.0337744329242888
1182.5132.363142043832080.149857956167918
1192.4672.411768164088730.0552318359112712
1202.5032.329406117524550.173593882475448
1212.542.395993739997040.144006260002959
1222.4832.349320852605600.133679147394396
1232.6262.395544976253310.230455023746685
1242.6562.540696488421710.115303511578291
1252.4472.168369877594700.278630122405305
1262.4672.310218065047140.156781934952857
1272.4622.83746925148891-0.375469251488915
1282.5052.95937767668005-0.454377676680048
1292.5792.85115799954385-0.272157999543846
1302.6492.92893610743094-0.279936107430943
1312.6372.86283904555191-0.225839045551909


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.0008787235816516720.001757447163303340.999121276418348
110.0006153582725018050.001230716545003610.999384641727498
120.0002062655593766060.0004125311187532120.999793734440623
130.0002210070608548180.0004420141217096360.999778992939145
144.71259844848096e-059.42519689696192e-050.999952874015515
159.00616697596201e-061.80123339519240e-050.999990993833024
161.73030505214405e-063.46061010428809e-060.999998269694948
173.65545430783622e-077.31090861567244e-070.99999963445457
181.39548733097121e-072.79097466194241e-070.999999860451267
192.30153054991982e-084.60306109983964e-080.999999976984695
207.47544960303117e-091.49508992060623e-080.99999999252455
213.98377021393674e-087.96754042787349e-080.999999960162298
228.79613583082916e-091.75922716616583e-080.999999991203864
238.67518727119655e-091.73503745423931e-080.999999991324813
242.80595923888905e-095.6119184777781e-090.99999999719404
251.44509635548742e-092.89019271097484e-090.999999998554904
265.04217689203774e-101.00843537840755e-090.999999999495782
271.31953193165719e-102.63906386331437e-100.999999999868047
285.76717683575943e-111.15343536715189e-100.999999999942328
291.76875382461664e-113.53750764923327e-110.999999999982312
301.66760542193812e-113.33521084387624e-110.999999999983324
314.14879514602423e-108.29759029204845e-100.99999999958512
321.18712006636003e-092.37424013272006e-090.99999999881288
336.46080540198683e-091.29216108039737e-080.999999993539195
345.17214660795943e-081.03442932159189e-070.999999948278534
358.67148857002095e-081.73429771400419e-070.999999913285114
367.22392259002392e-081.44478451800478e-070.999999927760774
372.98424106293431e-085.96848212586862e-080.99999997015759
381.17777933364393e-082.35555866728786e-080.999999988222207
394.73820144124059e-099.47640288248118e-090.999999995261799
404.88743918498313e-099.77487836996627e-090.99999999511256
412.84311663633253e-095.68623327266506e-090.999999997156883
421.03235783760647e-082.06471567521294e-080.999999989676422
434.55525824298141e-089.11051648596281e-080.999999954447418
441.21866330095137e-072.43732660190273e-070.99999987813367
451.35009733581721e-072.70019467163442e-070.999999864990266
462.2333647090806e-074.4667294181612e-070.999999776663529
473.06822292808928e-076.13644585617855e-070.999999693177707
484.48516944038307e-078.97033888076613e-070.999999551483056
492.1088194129996e-064.2176388259992e-060.999997891180587
501.47882523602673e-052.95765047205347e-050.99998521174764
515.15177380113457e-050.0001030354760226910.999948482261989
520.0001645657754246140.0003291315508492270.999835434224575
530.000493947460166830.000987894920333660.999506052539833
540.001580628979159260.003161257958318520.99841937102084
550.00474597484770820.00949194969541640.995254025152292
560.0164381060738180.0328762121476360.983561893926182
570.05263957312987540.1052791462597510.947360426870125
580.1010025428360810.2020050856721620.898997457163919
590.1794530092789770.3589060185579540.820546990721023
600.3351388328428990.6702776656857990.664861167157101
610.4986601516482920.9973203032965840.501339848351708
620.652584965653410.694830068693180.34741503434659
630.7739894742031050.452021051593790.226010525796895
640.8575399109843130.2849201780313740.142460089015687
650.8800389529267560.2399220941464870.119961047073244
660.8981778187599180.2036443624801640.101822181240082
670.8770175381004240.2459649237991520.122982461899576
680.8487825272131230.3024349455737540.151217472786877
690.8290550922512930.3418898154974140.170944907748707
700.809639619310930.380720761378140.19036038068907
710.792406147148090.4151877057038190.207593852851909
720.8037194743376160.3925610513247680.196280525662384
730.8728307172580660.2543385654838680.127169282741934
740.8785181919461930.2429636161076130.121481808053807
750.8606921901363250.2786156197273490.139307809863675
760.8644446719807240.2711106560385510.135555328019276
770.8926399593724650.2147200812550700.107360040627535
780.9860359923457470.02792801530850610.0139640076542530
790.9960124250822560.007975149835487760.00398757491774388
800.9976255603597990.004748879280403060.00237443964020153
810.998057615734920.003884768530159680.00194238426507984
820.9994608149342720.001078370131456450.000539185065728224
830.9998325340682880.0003349318634239220.000167465931711961
840.9998101586297650.0003796827404697610.000189841370234880
850.9998392224007740.0003215551984523340.000160777599226167
860.9997976274138530.0004047451722936660.000202372586146833
870.9996573053147630.0006853893704742970.000342694685237149
880.9994683656329340.001063268734132120.000531634367066058
890.9993995418613480.001200916277304130.000600458138652066
900.9991344513688370.001731097262325020.000865548631162511
910.999519452117940.000961095764120440.00048054788206022
920.9993183499889280.001363300022143660.00068165001107183
930.999077331066340.001845337867319350.000922668933659677
940.9992268540417980.001546291916403550.000773145958201775
950.9996102050033090.000779589993382410.000389794996691205
960.9998315902833220.0003368194333562230.000168409716678112
970.9999104462572320.0001791074855361828.95537427680908e-05
980.9999535949586249.28100827521577e-054.64050413760788e-05
990.9999719335275225.6132944955891e-052.80664724779455e-05
1000.999990822473861.83550522807422e-059.1775261403711e-06
1010.999999528450779.43098461443915e-074.71549230721957e-07
1020.9999997890304334.21939134837489e-072.10969567418744e-07
1030.999999965764476.84710584228158e-083.42355292114079e-08
1040.999999953399899.32002214404243e-084.66001107202121e-08
1050.9999999575205748.49588514838488e-084.24794257419244e-08
1060.9999999899344532.01310944525951e-081.00655472262975e-08
1070.9999999815247163.69505688458387e-081.84752844229194e-08
1080.999999943303891.13392221562619e-075.66961107813096e-08
1090.999999935952871.28094260290691e-076.40471301453456e-08
1100.9999999362730681.27453864478889e-076.37269322394447e-08
1110.999999711115345.77769320118724e-072.88884660059362e-07
1120.9999988050021482.38999570331684e-061.19499785165842e-06
1130.999998962434812.07513037799125e-061.03756518899562e-06
1140.9999965466191716.90676165800907e-063.45338082900453e-06
1150.9999987042388162.59152236717197e-061.29576118358599e-06
1160.9999999368713171.26257366764203e-076.31286833821014e-08
1170.9999992976357761.40472844721956e-067.02364223609781e-07
1180.9999953254794439.34904111482786e-064.67452055741393e-06
1190.999979381510324.12369793587486e-052.06184896793743e-05
1200.9997708010464040.0004583979071911990.000229198953595599
1210.9979426727991350.004114654401729240.00205732720086462


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level890.794642857142857NOK
5% type I error level910.8125NOK
10% type I error level910.8125NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/10brlw1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/10brlw1293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/14qol1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/14qol1293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/24qol1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/24qol1293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/3xz551293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/3xz551293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/4xz551293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/4xz551293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/5xz551293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/5xz551293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/68qmr1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/68qmr1293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/70hlb1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/70hlb1293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/8brlw1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/8brlw1293032668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/9brlw1293032668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t129303522624nzf5nsq8teqx3/9brlw1293032668.ps (open in new window)


 
Parameters (Session):
par1 = 4 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 4 ; par2 = Do not include Seasonal 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