Home » date » 2010 » Dec » 22 »

BEL20-MR3

*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:35:13 +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/t1293039231whoyx4fqio7lv52.htm/, Retrieved Wed, 22 Dec 2010 18:34:03 +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/t1293039231whoyx4fqio7lv52.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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
BEL20[t] = + 25.3407584564391 + 0.65103168012121Eonia[t] + 0.0100078349950887Werkloosheid[t] + 0.0146904140268424Consumentenvertrouwen[t] + 0.0478695342530798Goudprijs[t] + 0.0140088218724249Olieprijs[t] -0.29522836259052CPI[t] + 0.12041578914747M1[t] + 0.214991787111754M2[t] + 0.253853974474647M3[t] + 0.41279744206612M4[t] + 0.508351332683476M5[t] + 0.353285138780970M6[t] -0.176219873416028M7[t] -0.354323152567325M8[t] -0.237604300450137M9[t] -0.150983928680366M10[t] + 0.0612238802489834M11[t] + 0.0582577172040336t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)25.34075845643915.4427974.65589e-064e-06
Eonia0.651031680121210.05670111.481800
Werkloosheid0.01000783499508870.0014796.768300
Consumentenvertrouwen0.01469041402684240.0055042.66920.0087330.004366
Goudprijs0.04786953425307980.0182462.62360.0099140.004957
Olieprijs0.01400882187242490.003224.35073e-051.5e-05
CPI-0.295228362590520.050216-5.879200
M10.120415789147470.1433890.83980.4028180.201409
M20.2149917871117540.1443541.48930.1392080.069604
M30.2538539744746470.1447021.75430.082110.041055
M40.412797442066120.1463442.82070.0056690.002835
M50.5083513326834760.1496413.39710.0009430.000472
M60.3532851387809700.1498062.35830.0200930.010047
M7-0.1762198734160280.152243-1.15750.2495350.124767
M8-0.3543231525673250.15561-2.2770.0246860.012343
M9-0.2376043004501370.151766-1.56560.1202650.060133
M10-0.1509839286803660.146112-1.03330.3036690.151834
M110.06122388024898340.143710.4260.6709080.335454
t0.05825771720403360.0092566.29400


Multiple Linear Regression - Regression Statistics
Multiple R0.91674609555928
R-squared0.840423403723184
Adjusted R-squared0.814777165035838
F-TEST (value)32.769850346042
F-TEST (DF numerator)18
F-TEST (DF denominator)112
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.32674486748741
Sum Squared Residuals11.9573673440889


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13.032.415968858670010.614031141329988
22.8032.585314910673280.217685089326717
32.7682.536394379026010.231605620973994
42.8832.684425983877160.198574016122839
52.8632.856445977861200.0065540221387964
62.8972.886919179556100.0100808204439044
73.0132.812139399838510.200860600161486
83.1433.17023952134700-0.0272395213470044
93.0333.005914578261050.0270854217389537
103.0463.22410092517533-0.178100925175330
113.1113.23178801983939-0.120788019839391
123.0133.63228220971119-0.619282209711191
132.9873.35804419030867-0.371044190308667
142.9963.40830788407130-0.412307884071296
152.8333.14391926022497-0.310919260224972
162.8493.15658769226438-0.307587692264380
172.7952.84387404345814-0.0488740434581386
182.8452.581943851108130.263056148891867
192.9152.604881847095060.310118152904940
202.8932.670858500361980.222141499638018
212.6042.418639979013020.185360020986977
222.6422.292883667875380.349116332124615
232.661.811698305094590.848301694905411
242.6391.911768045731290.727231954268709
252.722.036127724320400.683872275679604
262.7462.187698058295180.558301941704816
272.7362.199609063363240.536390936636757
282.8122.359626593689620.452373406310384
292.7992.409067854704070.389932145295934
302.5552.403832745198650.151167254801353
312.3052.37078553032195-0.0657855303219517
322.2152.31193015597949-0.0969301559794918
332.0662.43981397096282-0.373813970962824
341.942.55133029841349-0.611330298413494
352.0422.68731638396233-0.645316383962329
361.9952.55598934647724-0.560989346477236
371.9472.50326904845860-0.556269048458596
381.7662.35634482832840-0.590344828328395
391.6352.14737069723765-0.512370697237647
401.8332.32477946775227-0.491779467752267
411.912.53935271906632-0.629352719066317
421.962.18452727212114-0.224527272121142
431.972.15815409084331-0.188154090843305
442.0612.14239716984115-0.0813971698411475
452.0932.22188748651441-0.128887486514414
462.1212.20159503989760-0.0805950398976033
472.1752.34578059815185-0.170780598151848
482.1972.51151340570407-0.314513405704073
492.352.69199216736911-0.341992167369114
502.442.73112330932109-0.291123309321093
512.4092.72190479022424-0.312904790224244
522.4732.69844195946684-0.225441959466841
532.4082.61147742036940-0.203477420369403
542.4552.66602079543612-0.211020795436117
552.4482.59057086886206-0.142570868862062
562.4982.67351783357509-0.175517833575091
572.6462.87059351794612-0.224593517946122
582.7572.90455916339446-0.147559163394463
592.8492.95825971345761-0.109259713457614
602.9212.99281480703369-0.0718148070336882
612.9823.10225466502076-0.120254665020761
623.0813.06122018120790.0197798187921011
633.1063.011508348268230.094491651731769
643.1193.01048828119830.108511718801699
653.0612.941639070430940.119360929569062
663.0972.832247679741090.264752320258914
673.1622.713133040014690.448866959985308
683.2572.74023569098080.516764309019201
693.2772.846537143756590.430462856243405
703.2952.93584162198130.359158378018701
713.3643.022790670531680.341209329468319
723.4943.283799994744930.210200005255074
733.6673.628345146472740.0386548535272572
743.8133.589136369851160.223863630148842
753.9183.680648541903660.237351458096342
763.8963.878865783175940.0171342168240591
773.8013.93251218175961-0.131512181759608
783.573.8557929792219-0.285792979221896
793.7023.91298582428604-0.210985824286041
803.8623.90184690926293-0.0398469092629297
813.973.98777290376445-0.0177729037644518
824.1394.033479358028280.105520641971716
834.24.038021427338680.161978572661320
844.2913.902657615383290.388342384616713
854.4444.154154000171940.289845999828062
864.5034.110974904963960.392025095036035
874.3574.113798682466330.243201317533671
884.5914.329185464515290.261814535484708
894.6974.346851645036240.350148354963755
904.6214.254866741249440.366133258750559
914.5634.290049079303920.272950920696079
924.2034.24411207986393-0.0411120798639304
934.2964.248477592784140.0475224072158632
944.4354.113771267953410.321228732046587
954.1054.008182059347740.0968179406522602
964.1173.883862493700420.233137506299584
973.8444.10848017254059-0.264480172540592
983.7214.01826944281291-0.297269442812913
993.6743.85268559859748-0.178685598597476
1003.8583.853529576980120.00447042301988056
1013.8013.639137813664920.161862186335084
1023.5043.51204963069439-0.0080496306943907
1033.0333.50962452096158-0.476624520961581
1043.0473.45786021001849-0.410860210018485
1052.9623.23467339233154-0.272673392331541
1062.1982.61256231185604-0.414562311856042
1072.0142.25550697759211-0.241506977592114
1081.8631.859719893658450.00328010634154698
1091.9051.828217455474590.0767825445254115
1101.8111.598788756117550.212211243882449
1111.671.83130727632127-0.161307276321270
1121.8641.861492680195240.00250731980475932
1132.0522.020031461593950.0319685384060461
1142.032.22645019677436-0.19645019677436
1152.0712.015649542805660.0553504571943378
1162.2932.068100524429890.22489947557011
1172.4432.152411742272810.290588257727189
1182.5132.192617285921300.320382714078697
1192.4672.47205418208476-0.00505418208475503
1202.5032.498592187855440.00440781214455776
1212.542.58914657119259-0.0491465711925924
1222.4832.51582135435726-0.0328213543572620
1232.6262.492853362366920.133146637633076
1242.6562.67657651688484-0.0205765168848406
1252.4472.49360981205521-0.046609812055209
1262.4672.59634892889869-0.129348928898690
1272.4622.66602625566721-0.204026255667208
1282.5052.59590140433925-0.0909014043392488
1292.5792.542277692393030.0367223076069659
1302.6492.67225905950338-0.0232590595033843
1312.6372.79260166259926-0.155601662599259


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
220.03655396441969850.0731079288393970.963446035580302
230.01226470742815650.02452941485631300.987735292571843
240.004873144702585160.009746289405170310.995126855297415
250.002310073403712280.004620146807424570.997689926596288
260.001963048084235060.003926096168470110.998036951915765
270.001137762828895210.002275525657790420.998862237171105
280.0006163124235121850.001232624847024370.999383687576488
290.0004239719192275700.0008479438384551390.999576028080772
300.001084577538170570.002169155076341140.99891542246183
310.004280772013005730.008561544026011470.995719227986994
320.007229267020222380.01445853404044480.992770732979778
330.005919487837446810.01183897567489360.994080512162553
340.003951391881685830.007902783763371660.996048608118314
350.005632724563838470.01126544912767690.994367275436162
360.01344671861211620.02689343722423230.986553281387884
370.02580773692659300.05161547385318610.974192263073407
380.01625704973083450.03251409946166900.983742950269165
390.01062394202987700.02124788405975400.989376057970123
400.02349460375588910.04698920751177820.97650539624411
410.03693147724739470.07386295449478930.963068522752605
420.1164332152888600.2328664305777190.88356678471114
430.1772522377479050.3545044754958100.822747762252095
440.2210864912979390.4421729825958780.778913508702061
450.2229498616073420.4458997232146830.777050138392658
460.4467793931031340.8935587862062680.553220606896866
470.4937787869903560.9875575739807130.506221213009644
480.5850715677910860.8298568644178270.414928432208914
490.6237084752737280.7525830494525440.376291524726272
500.7264439635443810.5471120729112380.273556036455619
510.7720095143898820.4559809712202360.227990485610118
520.7854973293966330.4290053412067350.214502670603367
530.8231180273816920.3537639452366170.176881972618308
540.8082515546210780.3834968907578450.191748445378922
550.7887294542070950.4225410915858090.211270545792905
560.7786857483914310.4426285032171380.221314251608569
570.859847219490270.280305561019460.14015278050973
580.8688679519530380.2622640960939240.131132048046962
590.876806861476040.2463862770479210.123193138523960
600.947344135748220.1053117285035600.0526558642517802
610.9788599363305590.04228012733888260.0211400636694413
620.9910696887174170.01786062256516550.00893031128258276
630.9927801807344610.01443963853107830.00721981926553913
640.9952876204103570.009424759179285440.00471237958964272
650.9966928865333920.006614226933216480.00330711346660824
660.995096049144980.009807901710040450.00490395085502023
670.994089793260410.01182041347917900.00591020673958952
680.9947632077436840.01047358451263160.00523679225631578
690.9974314369922870.005137126015425010.00256856300771250
700.9974358122392290.005128375521542220.00256418776077111
710.9982687065270560.003462586945888770.00173129347294439
720.9972910440074290.00541791198514250.00270895599257125
730.9966897675979890.006620464804022850.00331023240201143
740.9953076895438560.00938462091228710.00469231045614355
750.9956599735974850.008680052805030840.00434002640251542
760.9934604887026330.01307902259473350.00653951129736676
770.9934941960649060.01301160787018740.00650580393509368
780.9974372411167480.005125517766503590.00256275888325179
790.998209213505340.003581572989321790.00179078649466090
800.9971259937526680.005748012494663470.00287400624733173
810.9977509516002820.004498096799436970.00224904839971848
820.9993112524826750.001377495034649890.000688747517324943
830.9995078821091640.0009842357816725340.000492117890836267
840.9995394738802440.0009210522395123490.000460526119756174
850.99944164507750.001116709845000340.000558354922500168
860.9991475671599880.001704865680024860.000852432840012428
870.9986064375794120.002787124841176070.00139356242058803
880.9977639277330390.004472144533921910.00223607226696096
890.9974791168684160.005041766263167560.00252088313158378
900.9962043924147570.007591215170485240.00379560758524262
910.9967265555695830.006546888860834290.00327344443041714
920.9944624304508180.01107513909836470.00553756954918235
930.9908828904346340.01823421913073140.00911710956536568
940.992018409220190.01596318155961910.00798159077980953
950.9986663060502970.002667387899406650.00133369394970333
960.999246791359160.001506417281680030.000753208640840016
970.9994199792660560.001160041467888340.000580020733944168
980.9995924929595440.0008150140809112180.000407507040455609
990.9996619151320470.0006761697359056860.000338084867952843
1000.9992553558812370.001489288237526410.000744644118763206
1010.9993369095152340.001326180969532150.000663090484766076
1020.9997625636817940.0004748726364115510.000237436318205775
1030.999460796364050.001078407271897170.000539203635948587
1040.9984987103360580.003002579327884520.00150128966394226
1050.9965445984520750.006910803095849220.00345540154792461
1060.9957861968205140.008427606358971670.00421380317948584
1070.9873479899896340.02530402002073260.0126520100103663
1080.9898663579255450.02026728414890990.0101336420744550
1090.9774811555987160.04503768880256890.0225188444012844


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level450.511363636363636NOK
5% type I error level660.75NOK
10% type I error level690.784090909090909NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/10x7ic1293039302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/10x7ic1293039302.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/21fkl1293039302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/21fkl1293039302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/31fkl1293039302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/31fkl1293039302.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/74gj91293039302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/74gj91293039302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/84gj91293039302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293039231whoyx4fqio7lv52/84gj91293039302.ps (open in new window)


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


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