Home » date » 2008 » Dec » 15 »

paper invoer

*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: Mon, 15 Dec 2008 06:37:07 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a.htm/, Retrieved Mon, 15 Dec 2008 14:38:35 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6340,5 0 7901,5 0 8191,1 0 7181,7 0 7594,4 0 7384,7 0 7876,7 0 8463,4 0 8317,2 0 7778,7 0 8532,8 0 7272,2 0 6680,1 0 8427,6 0 8752,8 0 7952,7 0 8694,3 0 7787 0 8474,2 0 9154,7 0 8557,2 0 7951,1 0 9156,7 0 7865,7 0 7337,4 0 9131,7 0 8814,6 0 8598,8 0 8439,6 0 7451,8 0 8016,2 0 9544,1 0 8270,7 0 8102,2 0 9369 0 7657,7 0 7816,6 0 9391,3 0 9445,4 0 9533,1 0 10068,7 0 8955,5 0 10423,9 0 11617,2 0 9391,1 0 10872 0 10230,4 0 9221 0 9428,6 0 10934,5 0 10986 0 11724,6 0 11180,9 0 11163,2 0 11240,9 0 12107,1 0 10762,3 0 11340,4 0 11266,8 0 9542,7 0 9227,7 0 10571,9 1 10774,4 1 10392,8 1 9920,2 1 9884,9 1 10174,5 1 11395,4 1 10760,2 1 10570,1 1 10536 1 9902,6 1 8889 1 10837,3 1 11624,1 1 10509 1 10984,9 1 10649,1 1 10855,7 1 11677,4 1 10760,2 1 10046,2 1 10772,8 1 9987,7 1 8638,7 1 11063,7 1 11855,7 1 10684,5 1 11337,4 1 10478 1 11123,9 1 12909,3 1 11339,9 1 10462,2 1 12733,5 1 10519,2 1 10414,9 1 12476,8 1 12384,6 1 12266,7 1 12919,9 1 11497,3 1 12142 1 13919,4 1 12656,8 1 12034,1 1 13199,7 1 10881,3 1 11301,2 1 13643,9 1 12517 1 13981,1 1 14275,7 1 13435 1 13565,7 1 16216,3 1 12970 1 14079,9 1 14235 1 12213,4 1 12581 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 5824.1816 -1487.68506666667x[t] -269.96818989899M1[t] + 1602.27771717172M2[t] + 1631.76694545455M3[t] + 1312.63617373737M4[t] + 1504.67540202020M5[t] + 764.66463030303M6[t] + 1218.32385858586M7[t] + 2462.32308686869M8[t] + 1073.39231515152M9[t] + 951.461543434344M10[t] + 1563.98077171717M11[t] + 67.0607717171717t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)5824.1816213.35064327.298600
x-1487.68506666667207.085308-7.183900
M1-269.96818989899245.790179-1.09840.2745090.137255
M21602.27771717172253.1893446.328400
M31631.76694545455252.8571726.453300
M41312.63617373737252.5595945.19731e-060
M51504.67540202020252.2967355.963900
M6764.66463030303252.0687013.03360.0030340.001517
M71218.32385858586251.8755884.8374e-062e-06
M82462.32308686869251.7174779.782100
M91073.39231515152251.5944334.26644.3e-052.2e-05
M10951.461543434344251.5065073.7830.0002560.000128
M111563.98077171717251.4537376.219800
t67.06077171717172.97440622.545900


Multiple Linear Regression - Regression Statistics
Multiple R0.96152441237668
R-squared0.92452919559632
Adjusted R-squared0.915359845528582
F-TEST (value)100.828214515372
F-TEST (DF numerator)13
F-TEST (DF denominator)107
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation562.228310907063
Sum Squared Residuals33822772.0736388


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16340.55621.27418181818719.22581818182
27901.57560.58086060606340.919139393937
38191.17657.13086060606533.969139393939
47181.77405.06086060606-223.360860606060
57594.47664.16086060606-69.7608606060595
67384.76991.21086060606393.489139393940
77876.77511.93086060606364.769139393939
88463.48822.99086060606-359.590860606061
98317.27501.12086060606816.079139393939
107778.77446.25086060606332.44913939394
118532.88125.83086060606406.969139393939
127272.26628.91086060606643.289139393939
136680.16426.00344242424254.096557575758
148427.68365.3101212121262.2898787878808
158752.88461.86012121212290.939878787878
167952.78209.79012121212-257.090121212121
178694.38468.89012121212225.409878787878
1877877795.94012121212-8.94012121212112
198474.28316.66012121212157.53987878788
209154.79627.72012121212-473.020121212121
218557.28305.85012121212251.349878787880
227951.18250.98012121212-299.880121212121
239156.78930.56012121212226.139878787879
247865.77433.64012121212432.059878787878
257337.47230.7327030303106.667296969696
269131.79170.03938181818-38.3393818181808
278814.69266.58938181818-451.989381818182
288598.89014.51938181818-415.719381818183
298439.69273.61938181818-834.019381818182
307451.88600.66938181818-1148.86938181818
318016.29121.38938181818-1105.18938181818
329544.110432.4493818182-888.349381818182
338270.79110.57938181818-839.879381818181
348102.29055.70938181818-953.509381818182
3593699735.28938181818-366.289381818182
367657.78238.36938181818-580.669381818182
377816.68035.46196363636-218.861963636364
389391.39974.76864242424-583.468642424243
399445.410071.3186424242-625.918642424243
409533.19819.24864242424-286.148642424242
4110068.710078.3486424242-9.64864242424192
428955.59405.39864242424-449.898642424243
4310423.99926.11864242424497.781357575757
4411617.211237.1786424242380.021357575758
459391.19915.30864242424-524.208642424242
46108729860.438642424241011.56135757576
4710230.410540.0186424242-309.618642424243
4892219043.09864242424177.901357575757
499428.68840.19122424242588.408775757575
5010934.510779.4979030303155.002096969697
511098610876.0479030303109.952096969696
5211724.610623.97790303031100.62209696970
5311180.910883.0779030303297.822096969697
5411163.210210.1279030303953.072096969697
5511240.910730.8479030303510.052096969696
5612107.112041.907903030365.1920969696974
5710762.310720.037903030342.2620969696963
5811340.410665.1679030303675.232096969696
5911266.811344.7479030303-77.9479030303037
609542.79847.8279030303-305.127903030303
619227.79644.92048484849-417.220484848485
6210571.910096.5420969697475.357903030303
6310774.410193.0920969697581.307903030303
6410392.89941.0220969697451.777903030302
659920.210200.1220969697-279.922096969697
669884.99527.1720969697357.727903030303
6710174.510047.8920969697126.607903030303
6811395.411358.952096969736.4479030303027
6910760.210037.0820969697723.117903030303
7010570.19982.2120969697587.887903030303
711053610661.7920969697-125.792096969697
729902.69164.8720969697737.727903030304
7388898961.96467878788-72.9646787878792
7410837.310901.2713575758-63.9713575757584
7511624.110997.8213575758626.278642424242
761050910745.7513575758-236.751357575758
7710984.911004.8513575758-19.9513575757583
7810649.110331.9013575758317.198642424243
7910855.710852.62135757583.07864242424267
8011677.412163.6813575758-486.281357575758
8110760.210841.8113575758-81.6113575757573
8210046.210786.9413575758-740.741357575757
8310772.811466.5213575758-693.721357575758
849987.79969.6013575757618.0986424242433
858638.79766.69393939394-1127.99393939394
8611063.711706.0006181818-642.300618181818
8711855.711802.550618181853.1493818181822
8810684.511550.4806181818-865.980618181818
8911337.411809.5806181818-472.180618181819
901047811136.6306181818-658.630618181818
9111123.911657.3506181818-533.450618181819
9212909.312968.4106181818-59.1106181818184
9311339.911646.5406181818-306.640618181819
9410462.211591.6706181818-1129.47061818182
9512733.512271.2506181818462.249381818183
9610519.210774.3306181818-255.130618181817
9710414.910571.4232-156.523200000001
9812476.812510.7298787879-33.9298787878791
9912384.612607.2798787879-222.679878787878
10012266.712355.2098787879-88.5098787878782
10112919.912614.3098787879305.590121212121
10211497.311941.3598787879-444.059878787879
1031214212462.0798787879-320.079878787879
10413919.413773.1398787879146.260121212121
10512656.812451.2698787879205.530121212120
10612034.112396.3998787879-362.299878787879
10713199.713075.9798787879123.720121212122
10810881.311579.0598787879-697.75987878788
10911301.211376.1524606061-74.9524606060604
11013643.913315.4591393939328.440860606061
1111251713412.0091393939-895.009139393939
11213981.113159.9391393939821.16086060606
11314275.713419.0391393939856.66086060606
1141343512746.0891393939688.910860606061
11513565.713266.8091393939298.890860606062
11616216.314577.86913939391638.43086060606
1171297013255.9991393939-285.999139393939
11814079.913201.1291393939878.77086060606
1191423513880.7091393939354.290860606061
12012213.412383.7891393939-170.389139393939
1211258112180.8817212121400.118278787879


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.08520930287293460.1704186057458690.914790697127065
180.03705839307673750.0741167861534750.962941606923262
190.01206765277661710.02413530555323430.987932347223383
200.003745820933730570.007491641867461130.99625417906627
210.002687170850741310.005374341701482620.997312829149259
220.001995950761607140.003991901523214290.998004049238393
230.0006859275105734510.001371855021146900.999314072489426
240.0002333583062724530.0004667166125449060.999766641693728
257.15700204451277e-050.0001431400408902550.999928429979555
262.41349627778659e-054.82699255557319e-050.999975865037222
275.1781805424263e-050.0001035636108485260.999948218194576
282.59425307891369e-055.18850615782738e-050.99997405746921
294.90459237865506e-059.80918475731012e-050.999950954076213
300.0006814088651126080.001362817730225220.999318591134887
310.002638903722790010.005277807445580030.99736109627721
320.001780589428821930.003561178857643860.998219410571178
330.003938399181391570.007876798362783130.996061600818608
340.003390380572077030.006780761144154060.996609619427923
350.001867347722450090.003734695444900180.99813265227755
360.001604987639496270.003209975278992540.998395012360504
370.001174632613920680.002349265227841370.99882536738608
380.0007966435184570570.001593287036914110.999203356481543
390.0005334022775994230.001066804555198850.9994665977224
400.001934775295866340.003869550591732680.998065224704134
410.006784957566862260.01356991513372450.993215042433138
420.007811695483936060.01562339096787210.992188304516064
430.04231840671787420.08463681343574850.957681593282126
440.1495209275390970.2990418550781930.850479072460903
450.1328296996509400.2656593993018790.86717030034906
460.4025125694447370.8050251388894740.597487430555263
470.3586960467609250.717392093521850.641303953239075
480.3178917003433910.6357834006867810.68210829965661
490.349155289467780.698310578935560.65084471053222
500.3284100377129440.6568200754258870.671589962287056
510.3012825678324350.602565135664870.698717432167565
520.5354882715633090.9290234568733820.464511728436691
530.5136879998247260.9726240003505480.486312000175274
540.6410893458969060.7178213082061890.358910654103094
550.6294718596469690.7410562807060620.370528140353031
560.5903093821423780.8193812357152450.409690617857622
570.533980397539790.932039204920420.46601960246021
580.5590502005817310.8818995988365370.440949799418269
590.5010908477991390.9978183044017230.498909152200861
600.4566783976303790.9133567952607570.543321602369621
610.428695417617360.857390835234720.57130458238264
620.4003355023096690.8006710046193380.599664497690331
630.3879195729175160.7758391458350320.612080427082484
640.3652199371200550.730439874240110.634780062879945
650.3412071939797080.6824143879594160.658792806020292
660.308279537630720.616559075261440.69172046236928
670.2758167696442670.5516335392885350.724183230355733
680.2285332803816520.4570665607633040.771466719618348
690.2627829643979130.5255659287958270.737217035602087
700.3208452676706250.6416905353412490.679154732329375
710.2823156055735520.5646312111471050.717684394426448
720.4071365496963440.8142730993926870.592863450303656
730.4114573973706610.8229147947413220.588542602629339
740.3817094914697440.7634189829394880.618290508530256
750.5487319983716070.9025360032567860.451268001628393
760.5159129493163890.9681741013672210.484087050683611
770.4641105033390990.9282210066781980.535889496660901
780.5322627958394870.9354744083210250.467737204160513
790.564162573180420.8716748536391590.435837426819579
800.5311101114092720.9377797771814570.468889888590728
810.5450522372470950.909895525505810.454947762752905
820.5506118495878310.8987763008243390.449388150412169
830.5234447388712130.9531105222575750.476555261128787
840.6527255020468940.6945489959062130.347274497953106
850.6825529356001040.6348941287997910.317447064399896
860.639640741040990.720718517918020.36035925895901
870.773044761697830.4539104766043380.226955238302169
880.7804941325032320.4390117349935370.219505867496768
890.7503759687929380.4992480624141240.249624031207062
900.7032773135896820.5934453728206360.296722686410318
910.6395570443456880.7208859113086230.360442955654312
920.5917832253725080.8164335492549830.408216774627492
930.5245977431131880.9508045137736230.475402256886812
940.6168873355349610.7662253289300770.383112664465039
950.6451515434769070.7096969130461870.354848456523093
960.6866701081478530.6266597837042940.313329891852147
970.6348237185962810.7303525628074380.365176281403719
980.5421662465723550.915667506855290.457833753427645
990.7395132148667170.5209735702665660.260486785133283
1000.6505880546918390.6988238906163230.349411945308161
1010.5419324522341950.916135095531610.458067547765805
1020.4697705420903160.9395410841806330.530229457909684
1030.33122782839690.66245565679380.6687721716031
1040.4221286495515630.8442572991031270.577871350448437


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level210.238636363636364NOK
5% type I error level240.272727272727273NOK
10% type I error level260.295454545454545NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/10mgp91229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/10mgp91229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/1hczr1229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/1hczr1229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/2utjy1229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/2utjy1229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/3f4qg1229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/3f4qg1229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/4g08y1229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/4g08y1229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/57g0y1229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/57g0y1229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/64mo01229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/64mo01229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/7get61229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/7get61229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/8fs321229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/8fs321229348214.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/92ury1229348214.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293483159ssqg3mi9zww53a/92ury1229348214.ps (open in new window)


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