Home » date » 2010 » Dec » 24 »

*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: Fri, 24 Dec 2010 10:52:02 +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/24/t1293187830erjtqmqx7w62udr.htm/, Retrieved Fri, 24 Dec 2010 11:50:45 +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/24/t1293187830erjtqmqx7w62udr.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 «
9,1 4,5 1,0 -1,0 1989,3 9,0 4,3 1,0 3,0 2097,8 9,0 4,3 1,3 2,0 2154,9 8,9 4,2 1,1 3,0 2152,2 8,8 4,0 0,8 5,0 2250,3 8,7 3,8 0,7 5,0 2346,9 8,5 4,1 0,7 3,0 2525,6 8,3 4,2 0,9 2,0 2409,4 8,1 4,0 1,3 1,0 2394,4 7,9 4,3 1,4 -4,0 2401,3 7,8 4,7 1,6 1,0 2354,3 7,6 5,0 2,1 1,0 2450,4 7,4 5,1 0,3 6,0 2504,7 7,2 5,4 2,1 3,0 2661,4 7,0 5,4 2,5 2,0 2880,4 7,0 5,4 2,3 2,0 3064,4 6,8 5,5 2,4 2,0 3141,1 6,8 5,8 3,0 -8,0 3327,7 6,7 5,7 1,7 0,0 3565,0 6,8 5,5 3,5 -2,0 3403,1 6,7 5,6 4,0 3,0 3149,9 6,7 5,6 3,7 5,0 3006,8 6,7 5,5 3,7 8,0 3230,7 6,5 5,5 3,0 8,0 3361,1 6,3 5,7 2,7 9,0 3484,7 6,3 5,6 2,5 11,0 3411,1 6,3 5,6 2,2 13,0 3288,2 6,5 5,4 2,9 12,0 3280,4 6,6 5,2 3,1 13,0 3174,0 6,5 5,1 3,0 15,0 3165,3 6,3 5,1 2,8 13,0 3092,7 6,3 5,0 2,5 16,0 3053,1 6,5 5,3 1,9 10,0 3182,0 7,0 5,4 1,9 14,0 2999,9 7,1 5,3 1,8 14,0 3249,6 7,3 5,1 2,0 15,0 3210,5 7,3 5,0 2,6 13,0 3030,3 7,4 5,0 2,5 8,0 2803,5 7,4 4,6 2,5 7,0 2767,6 7,3 4,8 1,6 3,0 2882,6 7,4 5,1 1,4 3,0 2863,4 7,5 5,1 0,8 4,0 2897,1 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 11.6359824396043 -0.559320335978252rente[t] -0.143899561563292inflatie[t] -0.0296059693049306consumer[t] -0.000333689284785689Bel20[t] -0.00268120125236932t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)11.63598243960430.26736943.520400
rente-0.5593203359782520.075582-7.400200
inflatie-0.1438995615632920.024294-5.923200
consumer-0.02960596930493060.004442-6.664700
Bel20-0.0003336892847856897e-05-4.79384e-062e-06
t-0.002681201252369320.001503-1.78390.0766660.038333


Multiple Linear Regression - Regression Statistics
Multiple R0.906296630636011
R-squared0.821373582702186
Adjusted R-squared0.814806435007414
F-TEST (value)125.073109495618
F-TEST (DF numerator)5
F-TEST (DF denominator)136
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.307203185474167
Sum Squared Residuals12.8348364145047


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.18.338258039967320.761741960032681
298.292811741291610.70718825870839
398.257512982713920.74248701728608
48.98.310838719136020.589161280863977
58.88.371244596100960.428755403899044
68.78.462583033290270.237416966709730
78.58.291687394663080.208312605336917
88.38.272674911697260.0273250883027432
98.18.35890926159194-0.258909261591938
107.98.3197693938494-0.419769393849395
117.87.93223369575334-0.132233695753342
127.67.65773907265795-0.0577390726579463
137.47.69199587393316-0.291995873933161
147.27.29902815806226-0.0990281580622647
1577.19531514812144-0.195315148121443
1677.16001503078117-0.160015030781166
176.87.06141787163158-0.26141787163158
186.87.03839410515606-0.238394105156057
196.76.9626821458147-0.262682145814703
206.86.92608203476072-0.126082034760723
216.76.73197929951197-0.0319792995119653
226.76.76100696477155-0.0610069647715545
236.76.65072685833870.0492731416612976
246.56.70526226744458-0.205262267444584
256.36.56303690256111-0.263036902561110
266.36.61041523996959-0.31041523996959
276.36.63270238167651-0.332702381676508
286.56.67336430025174-0.173364300251743
296.66.75966582447863-0.159665824478633
306.56.77099777114819-0.270997771148192
316.36.88053426289378-0.580534262893784
326.36.90135115147095-0.601351151470949
336.56.95183685338379-0.451836853383787
3476.835564560073340.164435439926656
357.16.819883134164140.280116865835857
367.36.883727369524960.416272630475044
377.36.969981212660680.330018787339322
387.47.205400543878690.194599456121315
397.47.46803289164635-0.0680328916463535
407.37.56304683807467-0.263046838074666
417.47.42775628260936-0.0277562826093639
427.57.470563520092760.0294364799072381
437.77.386171337978660.313828662021342
447.77.261824918103820.438175081896177
457.77.484628774080240.215371225919765
467.77.75931271794711-0.0593127179471072
477.77.99410967669714-0.294109676697135
487.87.8109209046881-0.0109209046880991
4987.73596123198610.264038768013899
508.17.781468009371350.318531990628649
518.17.677117955311270.422882044688732
528.27.813088347879630.38691165212037
538.28.053022974289160.146977025710835
548.28.088620763717720.111379236282276
558.18.16260937837488-0.0626093783748768
568.18.085970776203260.0140292237967404
578.28.16506887066980.0349311293302029
588.38.41683906195521-0.116839061955208
598.38.32423219573-0.0242321957300066
608.48.293676308826150.106323691173851
618.58.336475161852230.163524838147771
628.58.52838733803955-0.028387338039552
638.48.53812342553583-0.138123425535833
6488.1461783268131-0.146178326813107
657.98.09952393925509-0.199523939255086
668.18.26546208634915-0.165462086349151
678.58.53259533203275-0.032595332032753
688.88.515124183957560.284875816042437
698.88.245577419684820.554422580315182
708.68.395325539860610.204674460139386
718.38.149880977083440.150119022916562
728.38.276241554725220.0237584452747763
738.38.298433855837970.00156614416203172
748.48.253735239124480.146264760875518
758.48.393760083488990.00623991651101146
768.58.468072862448650.0319271375513528
778.68.56923151463180.0307684853682044
788.68.426767858380240.173232141619758
798.68.427342943232570.172657056767434
808.68.306037214714350.293962785285649
818.68.390118698459680.209881301540318
828.58.72370200447019-0.223702004470191
838.48.77424973537126-0.374249735371256
848.48.60670621724072-0.206706217240722
858.48.66460104011244-0.264601040112442
868.58.487171230645220.0128287693547775
878.58.439937680157950.060062319842046
888.68.3911596765140.208840323486006
898.68.67095498734223-0.070954987342227
908.48.58389619097827-0.183896190978267
918.28.59777392623333-0.397773926233335
9288.39549625358504-0.395496253585039
9388.40761541069073-0.407615410690734
9488.21897205745327-0.218972057453271
9588.11592866459634-0.115928664596343
967.98.0123066661327-0.112306666132699
977.98.04043727775204-0.140437277752040
987.88.07596899083775-0.275968990837750
997.88.09763121821183-0.297631218211834
10088.11690475162167-0.116904751621666
1017.88.0969431474849-0.296943147484899
1027.47.85196118756487-0.451961187564871
1037.27.93965446356795-0.739654463567954
10477.86356385817706-0.863563858177056
10577.76956366317545-0.769563663175446
1067.27.35943632074767-0.159436320747667
1077.27.20677490824332-0.00677490824332195
1087.27.4542532071414-0.254253207141398
10977.12910888771823-0.129108887718231
1106.97.00407378719248-0.104073787192481
1116.86.96641290292315-0.166412902923146
1126.86.98152370473048-0.181523704730476
1136.86.754579143202930.0454208567970666
1146.96.98158457733799-0.0815845773379848
1157.26.979845217589830.220154782410171
1167.26.913231831163330.286768168836674
1177.26.80425693525690.395743064743095
1187.16.648710081442520.451289918557476
1197.26.89525870987510.304741290124902
1207.36.983500419134150.316499580865848
1217.57.187180500053060.312819499946941
1227.67.104873742181640.495126257818364
1237.77.337847130826340.362152869173657
1247.76.801696115233830.898303884766172
1257.77.511785836574690.188214163425313
1267.87.764595166710440.0354048332895637
12788.05327385644632-0.0532738564463242
1288.18.13550550512256-0.0355055051225612
1298.18.085415440959460.0145845590405365
13088.09111323339696-0.0911132333969588
1318.18.3289338044372-0.228933804437208
1328.28.47992728305126-0.279927283051258
1338.38.40402871140908-0.104028711409078
1348.48.56098201404746-0.160982014047464
1358.48.41556121574649-0.0155612157464867
1368.48.263756286598860.136243713401140
1378.58.133550797396770.366449202603227
1388.58.11555729172490.384442708275096
1398.68.33980662779630.260193372203695
1408.68.266548552209090.333451447790911
1418.58.220181052596420.279818947403579
1428.58.69715950094628-0.197159500946283


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.03154002496774090.06308004993548180.96845997503226
100.008811648907539350.01762329781507870.99118835109246
110.001945980481690210.003891960963380430.99805401951831
120.0004380719929687150.000876143985937430.999561928007031
130.0001232592052267880.0002465184104535760.999876740794773
144.75379913333986e-059.50759826667972e-050.999952462008667
151.69271248550467e-053.38542497100934e-050.999983072875145
167.9031314218711e-061.58062628437422e-050.999992096868578
171.69267735581695e-063.38535471163391e-060.999998307322644
181.18167725473103e-052.36335450946206e-050.999988183227453
193.6173365798665e-067.234673159733e-060.99999638266342
204.04591394702583e-058.09182789405167e-050.99995954086053
219.91331545541987e-050.0001982663091083970.999900866845446
220.0003394398207998790.0006788796415997580.9996605601792
230.0003004866589644470.0006009733179288940.999699513341036
240.0002070559058520200.0004141118117040390.999792944094148
250.0001228633854902160.0002457267709804320.99987713661451
269.85592687716826e-050.0001971185375433650.999901440731228
270.0001422925536136910.0002845851072273820.999857707446386
280.0004625667282249320.0009251334564498640.999537433271775
290.0008955482711961130.001791096542392230.999104451728804
300.0006426894745196760.001285378949039350.99935731052548
310.000562017135538560.001124034271077120.999437982864462
320.0005247806774414090.001049561354882820.999475219322559
330.01467237822863120.02934475645726240.985327621771369
340.2168783792535010.4337567585070020.783121620746499
350.5708045752598940.8583908494802130.429195424740106
360.8114731022605940.3770537954788110.188526897739406
370.8653629530558650.2692740938882700.134637046944135
380.8502557308458160.2994885383083680.149744269154184
390.8181955382077160.3636089235845690.181804461792284
400.7999442045559290.4001115908881430.200055795444071
410.7702302040169250.459539591966150.229769795983075
420.7380655937553210.5238688124893580.261934406244679
430.7645643917384340.4708712165231310.235435608261566
440.8176975558693430.3646048882613150.182302444130657
450.7881644554934940.4236710890130110.211835544506506
460.7615699231650520.4768601536698950.238430076834948
470.7824079064768110.4351841870463770.217592093523188
480.7502223114612130.4995553770775740.249777688538787
490.7314583269890380.5370833460219240.268541673010962
500.7301495933245940.5397008133508120.269850406675406
510.7334871470595150.533025705880970.266512852940485
520.7302841512113440.5394316975773120.269715848788656
530.7049050755159710.5901898489680570.295094924484029
540.6770641665820680.6458716668358630.322935833417931
550.6481016962445380.7037966075109250.351898303755462
560.6084540780112280.7830918439775440.391545921988772
570.5835887673167070.8328224653665860.416411232683293
580.5729700444534310.8540599110931380.427029955546569
590.5396117057909190.9207765884181620.460388294209081
600.5011105658755970.9977788682488060.498889434124403
610.4750777160326160.9501554320652310.524922283967384
620.4352704551832380.8705409103664770.564729544816762
630.4072865439293640.8145730878587270.592713456070636
640.3757332717599780.7514665435199570.624266728240022
650.3465929078338990.6931858156677980.653407092166101
660.3300869600438860.6601739200877730.669913039956114
670.2938880801334880.5877761602669770.706111919866512
680.2776442312370660.5552884624741310.722355768762935
690.3280498643906620.6560997287813230.671950135609338
700.2903828978412110.5807657956824220.709617102158789
710.2648997858997240.5297995717994470.735100214100276
720.2543528809373990.5087057618747980.7456471190626
730.2438451662853090.4876903325706180.756154833714691
740.2299286764516270.4598573529032540.770071323548373
750.2124994103828300.4249988207656590.78750058961717
760.1953415059725030.3906830119450050.804658494027497
770.1804149699695730.3608299399391470.819585030030427
780.1912642637398970.3825285274797930.808735736260103
790.2048814891818160.4097629783636320.795118510818184
800.2770801742476690.5541603484953390.722919825752331
810.3420397991132150.684079598226430.657960200886785
820.3433766697867560.6867533395735120.656623330213244
830.3489066754275140.6978133508550280.651093324572486
840.3210959078070480.6421918156140960.678904092192952
850.2868243273572480.5736486547144960.713175672642752
860.3057684283790460.6115368567580910.694231571620954
870.3740788162807090.7481576325614190.62592118371929
880.5678820240361870.8642359519276250.432117975963813
890.6361632463864830.7276735072270340.363836753613517
900.6674532898502280.6650934202995450.332546710149772
910.6690645398223760.6618709203552480.330935460177624
920.6562187484522740.6875625030954520.343781251547726
930.6329679785745630.7340640428508730.367032021425437
940.6299721935386850.740055612922630.370027806461315
950.6630862049656540.6738275900686930.336913795034346
960.7228347524490570.5543304951018870.277165247550943
970.8039505431749340.3920989136501330.196049456825066
980.8535386291306380.2929227417387240.146461370869362
990.9061892365693530.1876215268612930.0938107634306467
1000.9961249445183730.007750110963254270.00387505548162713
1010.9999435260821750.0001129478356495885.64739178247939e-05
1020.999989787870942.04242581215696e-051.02121290607848e-05
1030.9999934432241751.31135516509342e-056.55677582546711e-06
1040.9999933052301071.33895397863576e-056.69476989317878e-06
1050.9999920367743781.59264512433291e-057.96322562166453e-06
1060.9999927936397451.44127205095094e-057.20636025475472e-06
1070.999998539160782.9216784410777e-061.46083922053885e-06
1080.9999998321548253.35690349142549e-071.67845174571275e-07
1090.999999976824964.63500801424569e-082.31750400712285e-08
1100.999999987779832.44403394219493e-081.22201697109747e-08
1110.999999969784786.04304412126695e-083.02152206063347e-08
1120.9999999387767481.22446504004248e-076.1223252002124e-08
1130.9999999176728571.64654285255342e-078.2327142627671e-08
1140.9999998741311522.51737695795819e-071.25868847897910e-07
1150.9999998805072522.38985495621698e-071.19492747810849e-07
1160.9999998769691132.46061774139566e-071.23030887069783e-07
1170.9999998583701982.83259604450322e-071.41629802225161e-07
1180.9999997416342745.16731451300734e-072.58365725650367e-07
1190.999999554960238.90079540227023e-074.45039770113512e-07
1200.9999995108741589.78251683741077e-074.89125841870538e-07
1210.999998877340032.24531994183964e-061.12265997091982e-06
1220.9999971870730185.62585396374125e-062.81292698187063e-06
1230.9999916632367511.66735264973201e-058.33676324866005e-06
1240.9999919581748691.60836502626534e-058.04182513132669e-06
1250.9999792620983944.14758032111096e-052.07379016055548e-05
1260.999976581112364.68377752782574e-052.34188876391287e-05
1270.9999082650979570.0001834698040851189.1734902042559e-05
1280.9996673683363060.0006652633273882170.000332631663694109
1290.999603565502230.000792868995539350.000396434497769675
1300.9987188886615920.002562222676815350.00128111133840768
1310.998218307705310.003563384589381570.00178169229469078
1320.9975956686394630.004808662721074470.00240433136053724
1330.9898617816643160.02027643667136840.0101382183356842


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level550.44NOK
5% type I error level580.464NOK
10% type I error level590.472NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/10eeek1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/10eeek1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/17dzq1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/17dzq1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/27dzq1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/27dzq1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/3inyt1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/3inyt1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/4inyt1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/4inyt1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/5inyt1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/5inyt1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/6awxe1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/6awxe1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/7lnwz1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/7lnwz1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/8lnwz1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/8lnwz1293187912.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/9lnwz1293187912.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293187830erjtqmqx7w62udr/9lnwz1293187912.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal 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