Home » date » 2010 » Dec » 12 »

Paper - Multiple Regression Model 4

*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: Sun, 12 Dec 2010 20:11:12 +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/12/t12921854793cybi4ez96hzge8.htm/, Retrieved Sun, 12 Dec 2010 21:24:49 +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/12/t12921854793cybi4ez96hzge8.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 «
25.94 23688100 39.18 3940.35 144.7 28.66 13741000 35.78 4696.69 140.8 33.95 14143500 42.54 4572.83 137.1 31.01 16763800 27.92 3860.66 137.7 21.00 16634600 25.05 3400.91 144.7 26.19 13693300 32.03 3966.11 139.2 25.41 10545800 27.95 3766.99 143.0 30.47 9409900 27.95 4206.35 140.8 12.88 39182200 24.15 3672.82 142.5 9.78 37005800 27.57 3369.63 135.8 8.25 15818500 22.97 2597.93 132.6 7.44 16952000 17.37 2470.52 128.6 10.81 24563400 24.45 2772.73 115.7 9.12 14163200 23.62 2151.83 109.2 11.03 18184800 21.90 1840.26 116.9 12.74 20810300 27.12 2116.24 109.9 9.98 12843000 27.70 2110.49 116.1 11.62 13866700 29.23 2160.54 118.9 9.40 15119200 26.50 2027.13 116.3 9.27 8301600 22.84 1805.43 114.0 7.76 14039600 20.49 1498.80 97.0 8.78 12139700 23.28 1690.20 85.3 10.65 9649000 25.71 1930.58 84.9 10.95 8513600 26.52 1950.40 94.6 12.36 15278600 25.51 1934.03 97.8 10.85 15590900 23.36 1731.49 95.0 11.84 9691100 24.15 1845.35 110.7 12.14 10882700 20.92 1688.23 108.5 11.65 10 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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Apple[t] = -135.264627706655 -6.77815767354195e-07Volume[t] + 4.10342145389171Microsoft[t] + 0.027348992500557NASDAQ[t] -0.488752826704873Consumentenvertrouwen[t] + 1.68515979988809t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-135.26462770665519.178931-7.052800
Volume-6.77815767354195e-070-2.77910.00630.00315
Microsoft4.103421453891710.9055614.53141.4e-057e-06
NASDAQ0.0273489925005570.0065664.16545.8e-052.9e-05
Consumentenvertrouwen-0.4887528267048730.162837-3.00150.0032490.001625
t1.685159799888090.12438913.547500


Multiple Linear Regression - Regression Statistics
Multiple R0.940892489712407
R-squared0.885278677197211
Adjusted R-squared0.880652817406776
F-TEST (value)191.376028955248
F-TEST (DF numerator)5
F-TEST (DF denominator)124
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26.4769156006578
Sum Squared Residuals86927.35540582


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
125.9448.178485553421-22.2384855534210
228.6665.2455866415472-36.5855866415473
333.9592.8179938710718-58.8679938710718
431.0112.964667674720418.0453323252796
521-13.034387389983934.0343873899839
626.1937.4321047827792-11.2421047827792
725.4117.20573805034688.20426194965317
830.4732.752138344168-2.28213834416801
912.88-16.758225525352229.6382255253522
109.78-4.5814632144060414.3614632144060
118.25-26.952164561980535.2021645619805
127.44-50.543992903858457.9839929038584
1310.81-10.395685653970521.2056856539705
149.12-18.871042187189627.9910421871896
1511.03-39.25419353701350.284193537013
1612.74-6.9597343077607919.6997343077608
179.98-0.68175273382284710.6617527338228
1811.626.588071049358295.03192895064171
199.4-6.1559457085557415.5559457085557
209.27-19.807371790349629.0773717903496
217.76-31.731782796648439.4917827966484
228.78-6.3572897269524915.1372897269525
2310.6513.7570718856074-3.10707188560737
2410.9515.3367496977254-4.38674969772545
2512.366.280318110342056.07968188965795
2610.85-5.2393171060709116.0893171060709
2711.84-0.8729399865252112.7129399865252
2812.14-16.471334234023428.6113342340234
2911.65-19.466091173968531.1160911739685
308.86-17.648684632418226.5086846324182
317.63-24.750860157297732.3808601572977
327.38-16.816144852003624.1961448520036
337.25-28.237745033180635.4877450331806
348.030.07774357651135417.95225642348865
357.7511.7533176503373-4.00331765033733
367.161.970607816924365.18939218307564
377.18-4.6995107570184611.8795107570185
387.516.318719389760051.19128061023995
397.0711.9987940748728-4.92879407487285
407.117.39334991482251-0.283349914822512
418.984.834171743919284.14582825608072
429.5316.3104560719259-6.78045607192589
4310.5427.9742580726626-17.4342580726626
4411.3130.5992926827847-19.2892926827847
4510.3636.9407336498574-26.5807336498574
4611.4434.1904168829836-22.7504168829836
4710.4531.1330765380166-20.6830765380166
4810.6940.1281408273606-29.4381408273606
4911.2838.550062417357-27.270062417357
5011.9642.320148104994-30.360148104994
5113.5231.9588739559964-18.4388739559964
5212.8935.2150934122132-22.3250934122132
5314.0343.2362206602436-29.2062206602436
5416.2746.2472004379849-29.9772004379849
5516.1740.3373119130283-24.1673119130283
5617.2542.6726688073329-25.4226688073329
5719.3847.9848972643424-28.6048972643424
5826.244.5803588710128-18.3803588710128
5933.5354.3017221318908-20.7717221318908
6032.256.3061317155998-24.1061317155998
6138.4536.78959445034961.66040554965040
6244.8639.6608408721175.19915912788298
6341.6748.2111183459934-6.5411183459934
6436.0648.4285626169065-12.3685626169065
6539.7661.340004805694-21.5800048056940
6636.8159.9961225741562-23.1861225741562
6742.6569.3475785377138-26.6975785377138
6846.8978.6821490239058-31.7921490239058
6953.6178.4706396928341-24.8606396928341
7057.5972.569278062371-14.9792780623710
7167.8285.0207464490563-17.2007464490563
7271.8977.9401074249624-6.0501074249624
7375.5176.6091575212-1.09915752120007
7468.4977.2272524293938-8.73725242939383
7562.7279.6857544919912-16.9657544919912
7670.3966.95109157016743.43890842983263
7759.7769.8821421863585-10.1121421863585
7857.2771.3890333027405-14.1190333027405
7967.9671.41897909899-3.45897909899003
8067.8588.322986969919-20.4729869699190
8176.9892.9925372751243-16.0125372751243
8281.08108.757906315931-27.6779063159307
8391.66114.387992192707-22.7279921927065
8484.84110.458228276817-25.6182282768172
8585.73104.92785294832-19.1978529483201
8684.61110.284764178585-25.6747641785849
8792.91112.915501662618-20.0055016626176
8899.8127.417353473631-27.6173534736308
89121.19129.944100025998-8.75410002599787
90122.04120.8678782383081.17212176169202
91131.76114.35107635036717.4089236496335
92138.48123.02582255071915.4541774492809
93153.47132.51296435238520.9570356476149
94189.95170.91480972438619.0351902756140
95182.22152.71884780753029.5011521924698
96198.08170.53221878881627.5477812111839
97135.36134.2257465193431.13425348065748
98125.02128.339813119608-3.31981311960778
99143.5142.8976102000190.602389799981412
100173.95152.88525491716821.064745082832
101188.75163.89493506050924.8550649394914
102167.44158.3570810115649.08291898843592
103158.95154.0682299027994.88177009720097
104169.53166.8166417520922.71335824790794
105113.66143.363418163676-29.7034181636756
106107.59113.233153703027-5.64315370302663
10792.67114.027267493110-21.3572674931099
10885.35124.450843499766-39.1008434997655
10990.13131.315761246626-41.1857612466257
11089.31120.700582249832-31.3905822498319
111105.12135.478213328747-30.3582133287469
112125.83146.395363505359-20.5653635053587
113135.81148.036926548736-12.2269265487360
114142.43163.093091892054-20.6630918920535
115163.39170.565799446791-7.17579944679118
116168.21177.397709892225-9.18770989222488
117185.35184.6223541858720.727645814127707
118188.5191.624364689813-3.12436468981265
119199.91206.662931137023-6.75293113702316
120210.73212.419462191432-1.68946219143215
121192.06192.134425475708-0.0744254757083966
122204.62210.283651493891-5.66365149389066
123235217.08608081591917.9139191840807
124261.09221.27261996276539.8173800372346
125256.88188.28164957898468.5983504210164
126251.53182.45513124121769.0748687587832
127257.25201.65079934865055.5992006513505
128243.1196.98392737936646.1160726206341
129283.75208.60107397349175.1489260265087
130300.98222.23005620828878.7499437917124


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.002270654357296630.004541308714593260.997729345642703
100.0007836685614002590.001567337122800520.9992163314386
110.0002622331709771360.0005244663419542710.999737766829023
124.54089428549818e-059.08178857099635e-050.999954591057145
137.84540046768715e-061.56908009353743e-050.999992154599532
141.12921531753865e-062.25843063507730e-060.999998870784683
151.18892874298638e-062.37785748597277e-060.999998811071257
163.37602263715364e-076.75204527430727e-070.999999662397736
175.35765536330916e-081.07153107266183e-070.999999946423446
187.90976768039436e-091.58195353607887e-080.999999992090232
191.1202588850449e-092.2405177700898e-090.999999998879741
201.70308949751608e-103.40617899503216e-100.999999999829691
213.54943522992144e-117.09887045984289e-110.999999999964506
224.88324897661246e-129.76649795322493e-120.999999999995117
236.47237807003038e-131.29447561400608e-120.999999999999353
247.88800772346634e-141.57760154469327e-130.99999999999992
252.41924680798591e-144.83849361597182e-140.999999999999976
266.45610225334389e-151.29122045066878e-140.999999999999994
279.79422379477627e-161.95884475895525e-150.999999999999999
283.11140778748183e-166.22281557496367e-161
298.21383320983268e-171.64276664196654e-161
301.70527951000045e-173.41055902000091e-171
314.40047318458629e-188.80094636917258e-181
321.01098881447753e-182.02197762895506e-181
335.18862923003446e-191.03772584600689e-181
349.67472902857229e-201.93494580571446e-191
352.60499498487988e-205.20998996975975e-201
366.96000222125746e-211.39200044425149e-201
372.57922389884548e-215.15844779769096e-211
386.66907861830183e-221.33381572366037e-211
391.80271097390945e-223.6054219478189e-221
408.29864029079795e-231.65972805815959e-221
415.75110656464839e-231.15022131292968e-221
422.63740100989436e-235.27480201978871e-231
436.46709755248152e-241.29341951049630e-231
441.49012390153578e-242.98024780307156e-241
453.36250086907328e-256.72500173814657e-251
465.16653603550891e-261.03330720710178e-251
471.29005361019737e-262.58010722039473e-261
482.88024098481495e-275.76048196962991e-271
493.86270370455062e-287.72540740910124e-281
505.1658044062612e-291.03316088125224e-281
512.78882917668439e-295.57765835336878e-291
526.45605459224193e-301.29121091844839e-291
538.66558766648855e-311.73311753329771e-301
542.16591986304775e-314.33183972609549e-311
551.34029399104026e-312.68058798208052e-311
561.02572369387912e-312.05144738775824e-311
571.27699197340272e-312.55398394680545e-311
581.70020616053307e-273.40041232106614e-271
597.37590853004726e-241.47518170600945e-231
603.88795743629668e-237.77591487259337e-231
612.91270842056247e-215.82541684112493e-211
621.61786901565852e-183.23573803131703e-181
631.28848215709782e-162.57696431419565e-161
641.00382595309837e-152.00765190619675e-150.999999999999999
653.74199454501944e-157.48398909003887e-150.999999999999996
665.48047793527659e-151.09609558705532e-140.999999999999994
679.19165264595268e-151.83833052919054e-140.99999999999999
683.64622072127117e-147.29244144254234e-140.999999999999964
692.08540147123569e-124.17080294247139e-120.999999999997915
701.23889246662059e-102.47778493324118e-100.99999999987611
712.09618494802648e-084.19236989605296e-080.99999997903815
724.51088677832015e-069.02177355664029e-060.999995489113222
737.07393671053924e-050.0001414787342107850.999929260632895
740.0002058253965292110.0004116507930584230.999794174603471
750.0001578684999772190.0003157369999544370.999842131500023
760.0002004713300164040.0004009426600328080.999799528669984
770.0002206153704671090.0004412307409342190.999779384629533
780.0001857580739858880.0003715161479717770.999814241926014
790.001517035953911360.003034071907822720.998482964046089
800.003356931869737020.006713863739474050.996643068130263
810.009001953863296360.01800390772659270.990998046136704
820.01367166784434680.02734333568869360.986328332155653
830.02844412860975020.05688825721950030.97155587139025
840.02552148511790510.05104297023581030.974478514882095
850.02002965140520980.04005930281041960.97997034859479
860.01636574604662440.03273149209324880.983634253953376
870.01768749434400830.03537498868801670.982312505655992
880.02569353504081760.05138707008163510.974306464959182
890.06818204767561250.1363640953512250.931817952324387
900.1642046499012710.3284092998025430.835795350098729
910.2699825196460020.5399650392920040.730017480353998
920.4757242472246130.9514484944492250.524275752775387
930.8249460837408230.3501078325183530.175053916259177
940.9460226723066750.1079546553866500.0539773276933249
950.9750739807065780.04985203858684440.0249260192934222
960.9996694468764870.0006611062470253610.000330553123512681
970.9993989391414640.001202121717072680.000601060858536341
980.9993059454230680.001388109153863850.000694054576931923
990.9990126233052960.001974753389408890.000987376694704446
1000.9994725471366670.001054905726666140.000527452863333069
1010.999691432327110.0006171353457793610.000308567672889680
1020.9999435879094880.0001128241810246625.64120905123308e-05
1030.9998929311186580.0002141377626831550.000107068881341577
1040.9999859302716782.81394566438669e-051.40697283219335e-05
1050.9999831429402733.37141194534049e-051.68570597267025e-05
1060.9999653466378426.93067243169453e-053.46533621584727e-05
1070.9999444838513230.0001110322973534335.55161486767166e-05
1080.9999163783758240.0001672432483522078.36216241761036e-05
1090.9998022636846070.0003954726307854080.000197736315392704
1100.999534112002840.0009317759943192260.000465887997159613
1110.9990028849847670.001994230030467000.000997115015233502
1120.9978122363181940.00437552736361290.00218776368180645
1130.99543631665320.009127366693598670.00456368334679933
1140.990159690422320.01968061915536030.00984030957768015
1150.9806656025665020.03866879486699650.0193343974334983
1160.9661981622605530.06760367547889370.0338018377394469
1170.9709557249209360.05808855015812850.0290442750790643
1180.9559821792279450.08803564154411070.0440178207720554
1190.96843136567180.06313726865640090.0315686343282005
1200.9658414923805310.0683170152389380.034158507619469
1210.9575493737275070.08490125254498520.0424506262724926


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level900.79646017699115NOK
5% type I error level980.867256637168142NOK
10% type I error level1070.946902654867257NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/10vsub1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/10vsub1292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/17ry01292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/17ry01292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/27ry01292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/27ry01292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/37ry01292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/37ry01292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/4z0fk1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/4z0fk1292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/5z0fk1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/5z0fk1292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/6z0fk1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/6z0fk1292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/7sawn1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/7sawn1292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/831vq1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/831vq1292184662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/931vq1292184662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921854793cybi4ez96hzge8/931vq1292184662.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