Home » date » 2008 » Dec » 22 »

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 22 Dec 2008 06:18:22 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7.htm/, Retrieved Mon, 22 Dec 2008 14:20:02 +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/2008/Dec/22/t1229951992jivrkdjv5rqa1e7.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
9.2 0 9.1 0 9.1 0 9.1 0 9.1 0 9.2 0 9.3 0 9.3 0 9.3 0 9.3 0 9.3 0 9.4 0 9.4 0 9.4 0 9.5 0 9.5 0 9.4 0 9.4 0 9.3 0 9.4 0 9.4 0 9.2 0 9.1 0 9.1 0 9.1 0 9.1 0 9 0 8.9 0 8.8 0 8.7 0 8.5 0 8.3 0 8.1 0 7.8 0 7.6 0 7.5 0 7.4 0 7.3 0 7.1 0 6.9 0 6.8 0 6.8 0 6.8 0 6.9 0 6.7 0 6.6 0 6.5 0 6.4 0 6.3 0 6.3 0 6.3 0 6.5 0 6.6 0 6.5 0 6.4 0 6.5 0 6.7 0 7.1 0 7.1 0 7.2 1 7.2 1 7.3 1 7.3 1 7.3 1 7.4 1 7.4 1 7.6 1 7.6 1 7.6 1 7.7 1 7.8 1 7.9 1 8.1 1 8.1 1 8.1 1 8.2 1 8.2 1 8.2 1 8.2 1 8.2 1 8.2 1 8.3 1 8.3 1 8.4 1 8.4 1 8.4 1 8.3 1 8 1 8 1 8.2 1 8.6 1 8.7 1 8.7 1 8.5 1 8.4 1 8.4 1 8.4 1 8.5 1 8.5 1 8.5 1 8.5 1 8.5 1 8.4 1 8.4 1 8.4 1 8.5 1 8.5 1 8.6 1 8.6 1 8.6 1 8.5 1 8.4 1 8.4 1 8.3 1 8.2 1 8.1 1 8.2 1 8.1 1 8 1 7.9 1 7.8 1 7.7 1 7.7 1 7.9 1 7.8 1 7.6 1 7.4 1 7.3 1 7.1 1 7.1 1 7 1 7 1
 
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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 8.76672357226612 + 1.36175819286055SabenaFailliet[t] -0.0217721416744073t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)8.766723572266120.14579260.131700
SabenaFailliet1.361758192860550.2679155.08281e-061e-06
t-0.02177214167440730.003496-6.228200


Multiple Linear Regression - Regression Statistics
Multiple R0.482262997343590
R-squared0.232577598606824
Adjusted R-squared0.220679576879798
F-TEST (value)19.5475856358987
F-TEST (DF numerator)2
F-TEST (DF denominator)129
p-value3.84346970916383e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.777927240618144
Sum Squared Residuals78.067032128753


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.28.74495143059170.455048569408303
29.18.72317928891730.376820711082695
39.18.70140714724290.3985928527571
49.18.679635005568490.420364994431510
59.18.657862863894080.442137136105918
69.28.636090722219680.563909277780325
79.38.614318580545270.685681419454733
89.38.592546438870860.707453561129141
99.38.570774297196450.729225702803548
109.38.549002155522040.750997844477955
119.38.527230013847640.772769986152363
129.48.505457872173230.89454212782677
139.48.483685730498820.916314269501177
149.48.461913588824420.938086411175584
159.58.440141447150011.05985855284999
169.58.41836930547561.08163069452440
179.48.39659716380121.00340283619881
189.48.374825022126791.02517497787321
199.38.353052880452380.946947119547621
209.48.331280738777971.06871926122203
219.48.309508597103561.09049140289644
229.28.287736455429160.912263544570842
239.18.265964313754750.83403568624525
249.18.244192172080340.855807827919657
259.18.222420030405940.877579969594064
269.18.200647888731530.899352111268472
2798.178875747057120.82112425294288
288.98.157103605382710.742896394617287
298.88.13533146370830.664668536291695
308.78.11355932203390.586440677966101
318.58.091787180359490.408212819640509
328.38.070015038685080.229984961314917
338.18.048242897010680.051757102989323
347.88.02647075533627-0.226470755336269
357.68.00469861366186-0.404698613661862
367.57.98292647198745-0.482926471987455
377.47.96115433031305-0.561154330313047
387.37.93938218863864-0.63938218863864
397.17.91761004696423-0.817610046964233
406.97.89583790528983-0.995837905289825
416.87.87406576361542-1.07406576361542
426.87.852293621941-1.05229362194101
436.87.8305214802666-1.03052148026660
446.97.8087493385922-0.908749338592196
456.77.78697719691779-1.08697719691779
466.67.76520505524338-1.16520505524338
476.57.74343291356897-1.24343291356897
486.47.72166077189457-1.32166077189457
496.37.69988863022016-1.39988863022016
506.37.67811648854575-1.37811648854575
516.37.65634434687134-1.35634434687134
526.57.63457220519694-1.13457220519694
536.67.61280006352253-1.01280006352253
546.57.59102792184812-1.09102792184812
556.47.56925578017372-1.16925578017371
566.57.5474836384993-1.04748363849931
576.77.5257114968249-0.8257114968249
587.17.50393935515049-0.403939355150494
597.17.48216721347609-0.382167213476086
607.28.82215326466223-1.62215326466223
617.28.80038112298782-1.60038112298782
627.38.77860898131341-1.47860898131341
637.38.756836839639-1.45683683963900
647.38.7350646979646-1.43506469796460
657.48.71329255629019-1.31329255629019
667.48.69152041461578-1.29152041461578
677.68.66974827294137-1.06974827294137
687.68.64797613126697-1.04797613126697
697.68.62620398959256-1.02620398959256
707.78.60443184791815-0.904431847918152
717.88.58265970624375-0.782659706243745
727.98.56088756456934-0.660887564569337
738.18.53911542289493-0.439115422894931
748.18.51734328122052-0.417343281220523
758.18.49557113954612-0.395571139546116
768.28.47379899787171-0.273798997871709
778.28.4520268561973-0.252026856197302
788.28.43025471452289-0.230254714522894
798.28.40848257284849-0.208482572848487
808.28.38671043117408-0.186710431174080
818.28.36493828949967-0.164938289499672
828.38.34316614782526-0.0431661478252636
838.38.32139400615086-0.0213940061508563
848.48.299621864476450.100378135523551
858.48.277849722802040.122150277197958
868.48.256077581127630.143922418872365
878.38.234305439453230.065694560546773
8888.21253329777882-0.212533297778820
8988.19076115610441-0.190761156104413
908.28.168989014430.0310109855699937
918.68.14721687275560.452783127244401
928.78.125444731081190.574555268918808
938.78.103672589406780.596327410593216
948.58.081900447732380.418099552267624
958.48.060128306057970.339871693942031
968.48.038356164383560.361643835616439
978.48.016584022709150.383415977290846
988.57.994811881034750.505188118965253
998.57.973039739360340.526960260639660
1008.57.951267597685930.548732402314068
1018.57.929495456011520.570504543988475
1028.57.907723314337120.592276685662882
1038.47.885951172662710.51404882733729
1048.47.86417903098830.535820969011698
1058.47.84240688931390.557593110686105
1068.57.820634747639490.679365252360512
1078.57.798862605965080.701137394034919
1088.67.777090464290670.822909535709326
1098.67.755318322616270.844681677383733
1108.67.733546180941860.86645381905814
1118.57.711774039267450.788225960732548
1128.47.690001897593040.709998102406956
1138.47.668229755918640.731770244081363
1148.37.646457614244230.653542385755771
1158.27.624685472569820.575314527430177
1168.17.602913330895420.497086669104585
1178.27.581141189221010.618858810778992
1188.17.55936904754660.5406309524534
11987.537596905872190.462403094127807
1207.97.515824764197790.384175235802215
1217.87.494052622523380.305947377476622
1227.77.472280480848970.227719519151029
1237.77.450508339174560.249491660825437
1247.97.428736197500160.471263802499844
1257.87.406964055825750.393035944174251
1267.67.385191914151340.214808085848658
1277.47.363419772476930.0365802275230664
1287.37.34164763080253-0.0416476308025268
1297.17.31987548912812-0.219875489128120
1307.17.29810334745371-0.198103347453712
13177.2763312057793-0.276331205779305
13277.2545590641049-0.254559064104897


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.0008327603267428890.001665520653485780.999167239673257
70.0002568006267483020.0005136012534966030.999743199373252
83.0317832725678e-056.0635665451356e-050.999969682167274
92.77696860098558e-065.55393720197115e-060.999997223031399
102.39161023844817e-074.78322047689634e-070.999999760838976
112.13117527970927e-084.26235055941855e-080.999999978688247
122.26160899285285e-094.52321798570570e-090.99999999773839
131.85892393311179e-103.71784786622358e-100.999999999814108
141.52069795747574e-113.04139591495147e-110.999999999984793
152.05626502774265e-124.1125300554853e-120.999999999997944
161.88327959158439e-133.76655918316877e-130.999999999999812
177.57735739731868e-141.51547147946374e-130.999999999999924
183.01115154543953e-146.02230309087905e-140.99999999999997
191.52813053842851e-133.05626107685702e-130.999999999999847
204.08643277717611e-148.17286555435222e-140.99999999999996
211.24893871323192e-142.49787742646384e-140.999999999999988
222.46835500849802e-134.93671001699603e-130.999999999999753
235.27615232312097e-121.05523046462419e-110.999999999994724
242.00181914365171e-114.00363828730342e-110.999999999979982
253.94135361905903e-117.88270723811806e-110.999999999960586
265.94051493375531e-111.18810298675106e-100.999999999940595
271.86880673754482e-103.73761347508964e-100.99999999981312
281.04527244740078e-092.09054489480156e-090.999999998954728
298.498646593197e-091.6997293186394e-080.999999991501353
308.47719021953042e-081.69543804390608e-070.999999915228098
311.85620395463694e-063.71240790927389e-060.999998143796045
324.69630787876911e-059.39261575753822e-050.999953036921212
330.0008562499239195750.001712499847839150.99914375007608
340.01256208931232750.02512417862465490.987437910687673
350.0739923263144960.1479846526289920.926007673685504
360.1977302395099890.3954604790199780.802269760490011
370.3500027137081790.7000054274163570.649997286291821
380.4923070757709550.984614151541910.507692924229045
390.6291607670298170.7416784659403660.370839232970183
400.7446631901573560.5106736196852880.255336809842644
410.8159845303657990.3680309392684020.184015469634201
420.8472847565766130.3054304868467740.152715243423387
430.8577521109251960.2844957781496080.142247889074804
440.8505995014743760.2988009970512480.149400498525624
450.846335262397280.3073294752054410.153664737602720
460.8394724012228980.3210551975542050.160527598777102
470.8309840918025470.3380318163949050.169015908197453
480.8222463587139780.3555072825720440.177753641286022
490.8152777916130930.3694444167738140.184722208386907
500.8005148530860830.3989702938278350.199485146913917
510.7802677493216570.4394645013566860.219732250678343
520.7427210658150840.5145578683698330.257278934184916
530.7022001898566750.595599620286650.297799810143325
540.6618857034524710.6762285930950580.338114296547529
550.6286059823429370.7427880353141260.371394017657063
560.6000799986828620.7998400026342760.399920001317138
570.5860361400026720.8279277199946560.413963859997328
580.6265697158432280.7468605683135450.373430284156772
590.662186941163920.6756261176721610.337813058836080
600.6790644199939110.6418711600121770.320935580006089
610.7063054501890840.5873890996218320.293694549810916
620.729842407107050.5403151857859010.270157592892950
630.7630510181289020.4738979637421950.236948981871098
640.805964182819960.388071634360080.19403581718004
650.8443125113029470.3113749773941050.155687488697053
660.887058130110250.2258837397794980.112941869889749
670.9155030370648630.1689939258702740.0844969629351368
680.9424167018528020.1151665962943950.0575832981471975
690.965769790694040.06846041861191990.0342302093059599
700.9809607541163430.03807849176731490.0190392458836574
710.9899918283202240.02001634335955150.0100081716797757
720.9949404787207630.01011904255847460.00505952127923729
730.9973180118018480.005363976396304440.00268198819815222
740.9986003032972670.002799393405466280.00139969670273314
750.9992922688086920.001415462382616370.000707731191308187
760.9996282783352570.0007434433294868890.000371721664743445
770.9998045958377660.0003908083244675480.000195404162233774
780.9998983608194440.0002032783611119340.000101639180555967
790.9999483170126940.0001033659746117175.16829873058585e-05
800.9999746527074315.06945851381023e-052.53472925690512e-05
810.9999881984817662.36030364677302e-051.18015182338651e-05
820.9999938032905821.2393418836392e-056.196709418196e-06
830.9999967564115836.48717683330002e-063.24358841665001e-06
840.9999980282777253.94344454896978e-061.97172227448489e-06
850.9999987461091222.50778175657188e-061.25389087828594e-06
860.9999991697650731.66046985398103e-068.30234926990516e-07
870.999999539856889.20286240459554e-074.60143120229777e-07
880.9999999403807621.19238476638176e-075.96192383190878e-08
890.9999999969527926.0944159592419e-093.04720797962095e-09
900.999999999722225.55561161151066e-102.77780580575533e-10
910.9999999998167433.66514092565076e-101.83257046282538e-10
920.9999999998273143.45372590938391e-101.72686295469195e-10
930.999999999810383.79238919278069e-101.89619459639035e-10
940.9999999998570132.85973054334954e-101.42986527167477e-10
950.9999999999340751.31849606555294e-106.59248032776472e-11
960.9999999999727295.45427742535976e-112.72713871267988e-11
970.999999999990311.93794030067456e-119.6897015033728e-12
980.99999999999351.29993616604464e-116.49968083022318e-12
990.9999999999954829.03624919794547e-124.51812459897274e-12
1000.9999999999967246.5527347112379e-123.27636735561895e-12
1010.9999999999974955.00977681897016e-122.50488840948508e-12
1020.999999999997954.10182113185773e-122.05091056592887e-12
1030.9999999999994071.18643618807864e-125.93218094039322e-13
1040.9999999999998852.30382232842056e-131.15191116421028e-13
1050.9999999999999892.28232027145019e-141.14116013572510e-14
1060.9999999999999959.0564647095737e-154.52823235478685e-15
1070.9999999999999983.83648551667369e-151.91824275833685e-15
1080.9999999999999941.13393936899691e-145.66969684498457e-15
1090.9999999999999735.38863143946469e-142.69431571973235e-14
1100.9999999999998373.26872910639725e-131.63436455319863e-13
1110.9999999999990551.88905227790934e-129.4452613895467e-13
1120.9999999999954179.16641854840985e-124.58320927420493e-12
1130.9999999999713255.73495398482354e-112.86747699241177e-11
1140.9999999998381213.23758614541506e-101.61879307270753e-10
1150.999999999274251.45149886592726e-097.25749432963632e-10
1160.999999997952034.09594220726671e-092.04797110363336e-09
1170.9999999864551482.70897036738809e-081.35448518369405e-08
1180.9999999145862371.7082752485275e-078.5413762426375e-08
1190.999999512406879.75186259400643e-074.87593129700321e-07
1200.9999976813697864.63726042742004e-062.31863021371002e-06
1210.9999922259171611.55481656773885e-057.77408283869425e-06
1220.9999891823201452.16353597095569e-051.08176798547784e-05
1230.9999875403746982.49192506034947e-051.24596253017474e-05
1240.9999153787669730.0001692424660547908.46212330273948e-05
1250.9997486103042280.0005027793915443050.000251389695772152
1260.999043498622940.001913002754120440.000956501377060222


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level820.677685950413223NOK
5% type I error level860.710743801652893NOK
10% type I error level870.71900826446281NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/101vui1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/101vui1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/1xesm1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/1xesm1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/2jasb1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/2jasb1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/3bj6p1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/3bj6p1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/43i181229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/43i181229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/5mw6l1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/5mw6l1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/6u6mt1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/6u6mt1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/7dmro1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/7dmro1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/8v91x1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/8v91x1229951896.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/9r4js1229951896.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229951992jivrkdjv5rqa1e7/9r4js1229951896.ps (open in new window)


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