Home » date » 2010 » Dec » 22 »

BEL20-MR2

*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 17:26:34 +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/t1293038692ma9prxkfdytuen3.htm/, Retrieved Wed, 22 Dec 2010 18:24:55 +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/t1293038692ma9prxkfdytuen3.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 time7 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
BEL20[t] = + 33.6449842417089 + 0.464260281041345Eonia[t] + 0.00349273190392421Werkloosheid[t] + 0.0201133517056931Consumentenvertrouwen[t] -0.000543752892766527Goudprijs[t] + 0.0181403452647249Olieprijs[t] -0.33406999136402CPI[t] + 0.071913678995696t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)33.64498424170895.7394125.862100
Eonia0.4642602810413450.0546828.490200
Werkloosheid0.003492731903924210.0011742.97410.0035380.001769
Consumentenvertrouwen0.02011335170569310.0060963.29920.0012680.000634
Goudprijs-0.0005437528927665270.018628-0.02920.9767610.48838
Olieprijs0.01814034526472490.0035245.14771e-061e-06
CPI-0.334069991364020.054304-6.151800
t0.0719136789956960.0096397.460600


Multiple Linear Regression - Regression Statistics
Multiple R0.88067962642104
R-squared0.775596604393103
Adjusted R-squared0.762825679439865
F-TEST (value)60.7314354467686
F-TEST (DF numerator)7
F-TEST (DF denominator)123
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.369739069066535
Sum Squared Residuals16.8149584408851


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13.032.480861613084350.549138386915652
22.8032.570736892064090.232263107935912
32.7682.583454597523940.184545402476058
42.8832.556384242151060.326615757848936
52.8632.706933787037090.156066212962913
62.8972.856018694878590.0409813051214084
73.0132.980772269574040.0322277304259561
83.1433.31272029475665-0.169720294756646
93.0333.07904736278463-0.0460473627846305
103.0463.32059675862638-0.27459675862638
113.1113.25096489181336-0.139964891813355
123.0133.91925153577151-0.906251535771515
132.9873.36406174522654-0.377061745226538
142.9963.29578454004121-0.299784540041206
152.8333.09363218079515-0.260632180795145
162.8492.87756280357171-0.0285628035717093
172.7952.565079512177330.229920487822671
182.8452.508105913576750.336894086423252
192.9152.736667343910970.178332656089031
202.8932.822938914614310.0700610853856927
212.6042.496111291016110.107888708983892
222.6422.296899086945730.345100913054268
232.661.876891801858150.78310819814185
242.6392.150059227247020.488940772752978
252.722.145450916183830.57454908381617
262.7462.198761906223450.547238093776547
272.7362.23888863223080.497111367769197
282.8122.286987460408530.525012539591471
292.7992.290062080133890.508937919866113
302.5552.450527761335240.104472238664756
312.3052.58895506212718-0.283955062127175
322.2152.66302268744789-0.448022687447893
332.0662.67952964391377-0.613529643913767
341.942.75298012693505-0.81298012693505
352.0422.74774266540487-0.705742665404869
361.9952.68641812856085-0.691418128560847
371.9472.50978028586011-0.562780285860113
381.7662.26122835521364-0.495228355213641
391.6352.05226421084548-0.417264210845476
401.8332.17635172653929-0.343351726539289
411.912.37842256105382-0.468422561053817
421.962.21113522467887-0.251135224678874
431.972.32277152314176-0.352771523141764
442.0612.4064611698153-0.345461169815299
452.0932.39671818493358-0.303718184933581
462.1212.37993050653204-0.258930506532038
472.1752.47530420583926-0.300304205839265
482.1972.65541010771124-0.458410107711241
492.352.70348526526969-0.353485265269685
502.442.67334930460244-0.233349304602443
512.4092.6568207384519-0.247820738451901
522.4732.50822064984165-0.0352206498416507
532.4082.41239825104509-0.00439825104509185
542.4552.61840407860452-0.163404078604522
552.4482.71634085538346-0.268340855383456
562.4982.90127632840411-0.403276328404106
572.6462.97800389802161-0.332003898021611
582.7572.91564261828691-0.158642618286909
592.8492.86333890088732-0.0143389008873174
602.9212.98773304022167-0.066733040221674
612.9823.0255625254386-0.0435625254385994
623.0812.910327906025620.170672093974376
633.1062.870885014508730.235114985491272
643.1192.76089911620460.3581008837954
653.0612.603226437951810.457773562048193
663.0972.620355006347240.476644993652763
673.1622.686879726173660.475120273826342
683.2572.87696433957030.380035660429696
693.2772.828364278645290.448635721354707
703.2952.9451444655040.349855534495999
713.3642.901661914564930.462338085435071
723.4943.179063095251270.314936904748728
733.6673.444248946676150.22275105332385
743.8133.288095431067260.524904568932735
753.9183.380635701062540.537364298937457
763.8963.402191501795430.493808498204573
773.8013.326105730265690.474894269734314
783.573.500536417917510.0694635820824871
793.7023.73476284973515-0.0327628497351461
803.8623.850467570655590.0115324293444066
813.973.864852505774050.105147494225947
824.1394.024120789172760.11487921082724
834.23.910992863005520.28900713699448
844.2913.851620802425720.439379197574276
854.4443.950634324390140.493365675609858
864.5033.864463325859350.63853667414065
874.3573.954315205150950.40268479484905
884.5914.046039935539270.544960064460728
894.6974.102416774784320.594583225215682
904.6214.242218772159460.37878122784054
914.5634.432249186065640.130750813934359
924.2034.49510021537037-0.292100215370371
934.2964.52948812117335-0.233488121173351
944.4354.410263811497160.024736188502843
954.1054.13215522661303-0.0271552266130301
964.1174.080264969302810.0367350306971933
973.8444.049063698524-0.205063698523998
983.7213.88719350859549-0.166193508595492
993.6743.78507018775872-0.111070187758724
1003.8583.748017386544770.109982613455234
1013.8013.596101136088210.204898863911789
1023.5043.57879277567125-0.0747927756712535
1033.0333.69768554661102-0.664685546611017
1043.0473.79161411335089-0.74461411335089
1052.9623.4978125443806-0.535812544380601
1062.1982.76816883146949-0.570168831469492
1072.0142.3046264828118-0.290626482811797
1081.8631.94009952518179-0.0770995251817943
1091.9051.821754141598580.0832458584014193
1101.8111.403621003830870.407378996169125
1111.671.70367740341148-0.0336774034114783
1121.8641.692708832224040.171291167775957
1132.0521.907856583472140.144143416527859
1142.032.2880863461164-0.258086346116403
1152.0712.36511266205473-0.294112662054733
1162.2932.58935710226036-0.296357102260359
1172.4432.63904873543087-0.196048735430866
1182.5132.69888621513693-0.185886215136926
1192.4672.75476199743275-0.28776199743275
1202.5032.67132907130013-0.168329071300131
1212.542.59936748789993-0.059367487899927
1222.4832.418344961542340.0646550384576649
1232.6262.426919420860760.199080579139238
1242.6562.518065569013040.137934430986956
1252.4472.121067629898850.325932370101146
1262.4672.266871809230240.200128190769759
1272.4622.60726362771483-0.145263627714833
1282.5052.73647771294044-0.231477712940444
1292.5792.62887380098885-0.0498738009888447
1302.6492.81992046513924-0.170920465139243
1312.6372.81915051673211-0.182150516732106


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.002268652936278940.004537305872557890.99773134706372
120.0003238139335717110.0006476278671434220.999676186066428
130.002252715578495770.004505431156991550.997747284421504
140.000543854230958810.001087708461917620.999456145769041
150.0001124368965837010.0002248737931674020.999887563103416
162.1966615653425e-054.39332313068499e-050.999978033384347
176.81983318514308e-061.36396663702862e-050.999993180166815
183.62037029353353e-067.24074058706706e-060.999996379629706
196.91785781221209e-071.38357156244242e-060.999999308214219
202.25953748836903e-074.51907497673806e-070.999999774046251
215.77994829872174e-071.15598965974435e-060.99999942200517
221.47710783286933e-072.95421566573866e-070.999999852289217
233.25921265994698e-076.51842531989395e-070.999999674078734
241.60948143545646e-073.21896287091291e-070.999999839051856
251.18796103685547e-072.37592207371093e-070.999999881203896
266.1672891316429e-081.23345782632858e-070.999999938327109
272.42707384809939e-084.85414769619877e-080.999999975729261
281.47681781329152e-082.95363562658304e-080.999999985231822
298.95388918508898e-091.7907778370178e-080.99999999104611
302.64549157268988e-085.29098314537976e-080.999999973545084
314.94583212609509e-079.89166425219018e-070.999999505416787
321.01494639595963e-062.02989279191925e-060.999998985053604
333.24974790478932e-066.49949580957863e-060.999996750252095
341.08639834225282e-052.17279668450564e-050.999989136016577
358.89219326593396e-061.77843865318679e-050.999991107806734
364.8973188656034e-069.7946377312068e-060.999995102681134
372.29694857715806e-064.59389715431612e-060.999997703051423
381.06249077876106e-062.12498155752212e-060.999998937509221
394.50841964984938e-079.01683929969876e-070.999999549158035
403.66368559036476e-077.32737118072951e-070.99999963363144
414.32588324388048e-078.65176648776096e-070.999999567411676
421.87419460036724e-063.74838920073448e-060.9999981258054
436.47114869296222e-061.29422973859244e-050.999993528851307
441.47716984243331e-052.95433968486661e-050.999985228301576
451.09539063384154e-052.19078126768307e-050.999989046093662
465.15315630583993e-050.0001030631261167990.999948468436942
470.0001200639338117440.0002401278676234870.999879936066188
480.0004383290990001690.0008766581980003380.999561670901
490.002261765590455430.004523531180910860.997738234409545
500.007869992392891160.01573998478578230.99213000760711
510.02095749382049850.04191498764099710.979042506179502
520.03618867957850840.07237735915701680.963811320421492
530.04938853039397580.09877706078795160.950611469606024
540.07113148840704670.1422629768140930.928868511592953
550.1049862052440260.2099724104880510.895013794755974
560.1886267536566380.3772535073132770.811373246343362
570.3497442749002690.6994885498005370.650255725099731
580.4774185468970520.9548370937941050.522581453102948
590.6710386464282540.6579227071434920.328961353571746
600.9150731527361430.1698536945277140.084926847263857
610.9856068052248380.0287863895503250.0143931947751625
620.9936971769334170.01260564613316650.00630282306658327
630.995425603340170.009148793319661520.00457439665983076
640.9963345898017910.007330820396417480.00366541019820874
650.9963358117841650.007328376431670040.00366418821583502
660.9960581278612180.007883744277564540.00394187213878227
670.9947425036769820.01051499264603510.00525749632301754
680.9932760995048670.01344780099026590.00672390049513294
690.99417291803410.01165416393180040.0058270819659002
700.992141564968630.01571687006274050.00785843503137027
710.9911013415941140.01779731681177270.00889865840588633
720.9899746599986040.02005068000279170.0100253400013959
730.9920987297690370.01580254046192660.0079012702309633
740.989323140301110.02135371939778110.0106768596988905
750.986624601475490.02675079704902210.0133753985245111
760.98211460866020.03577078267960160.0178853913398008
770.9812116180977090.03757676380458250.0187883819022913
780.9944617737710570.01107645245788680.00553822622894342
790.996822665913660.006354668172681570.00317733408634079
800.9966713490455930.006657301908813530.00332865095440676
810.9966343963349470.006731207330106230.00336560366505311
820.9989424012652290.00211519746954160.0010575987347708
830.9997092024830230.000581595033953670.000290797516976835
840.9997264285150310.0005471429699372930.000273571484968647
850.9997779487827050.0004441024345905650.000222051217295282
860.9997095814754450.0005808370491093590.000290418524554679
870.9995216562842520.0009566874314967160.000478343715748358
880.9992512856235420.001497428752916720.000748714376458362
890.99918615185760.001627696284801710.000813848142400854
900.9988386135894640.002322772821071550.00116138641053578
910.9994036425143160.001192714971368860.000596357485684429
920.9991320298030160.00173594039396770.00086797019698385
930.9987328218841830.002534356231633680.00126717811581684
940.9988265526011060.002346894797787770.00117344739889388
950.99934101746520.001317965069599690.000658982534799843
960.9997078560190720.0005842879618567720.000292143980928386
970.999848530614990.0003029387700189140.000151469385009457
980.9999172043810370.0001655912379252858.27956189626427e-05
990.9999362075694610.0001275848610774846.3792430538742e-05
1000.9999779108589544.41782820916607e-052.20891410458303e-05
1010.9999992918829421.41623411536778e-067.08117057683889e-07
1020.9999998632495752.73500850653814e-071.36750425326907e-07
1030.9999999267497261.4650054837389e-077.32502741869448e-08
1040.9999998555000152.88999970725167e-071.44499985362584e-07
1050.9999999489804351.02039129323568e-075.10195646617842e-08
1060.999999882469642.35060720305119e-071.17530360152559e-07
1070.9999995977313128.04537376012204e-074.02268688006102e-07
1080.999998538312042.92337591999203e-061.46168795999602e-06
1090.9999985188734662.96225306718417e-061.48112653359208e-06
1100.9999999395617341.20876531664664e-076.0438265832332e-08
1110.999999783081734.33836539636767e-072.16918269818384e-07
1120.9999990387377131.92252457422294e-069.6126228711147e-07
1130.9999994098102341.18037953194212e-065.90189765971062e-07
1140.999996969009656.06198069992919e-063.0309903499646e-06
1150.9999991228413161.75431736705341e-068.77158683526707e-07
1160.999998377189713.24562058169918e-061.62281029084959e-06
1170.9999859843063242.80313873513958e-051.40156936756979e-05
1180.9999179455606160.0001641088787679848.2054439383992e-05
1190.9995449855482850.0009100289034305710.000455014451715286
1200.996119364139170.007761271721659280.00388063586082964


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level850.772727272727273NOK
5% type I error level1010.918181818181818NOK
10% type I error level1030.936363636363636NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/10dcvy1293038783.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/10dcvy1293038783.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/1hkf71293038783.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/1hkf71293038783.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/2hkf71293038783.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/2hkf71293038783.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/6abws1293038783.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/6abws1293038783.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/732ev1293038783.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293038692ma9prxkfdytuen3/732ev1293038783.ps (open in new window)


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


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


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