Home » date » 2008 » Dec » 13 »

Met dummy variabele 9/11 aanslagen

*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: Sat, 13 Dec 2008 08:45: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/13/t1229183164ollhd3n8uyul2al.htm/, Retrieved Sat, 13 Dec 2008 16:46:14 +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/13/t1229183164ollhd3n8uyul2al.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 «
32,68 10967,87 0 31,54 10433,56 0 32,43 10665,78 0 26,54 10666,71 0 25,85 10682,74 0 27,6 10777,22 0 25,71 10052,6 0 25,38 10213,97 0 28,57 10546,82 0 27,64 10767,2 0 25,36 10444,5 0 25,9 10314,68 0 26,29 9042,56 1 21,74 9220,75 1 19,2 9721,84 1 19,32 9978,53 1 19,82 9923,81 1 20,36 9892,56 1 24,31 10500,98 1 25,97 10179,35 1 25,61 10080,48 1 24,67 9492,44 1 25,59 8616,49 1 26,09 8685,4 1 28,37 8160,67 1 27,34 8048,1 1 24,46 8641,21 1 27,46 8526,63 1 30,23 8474,21 1 32,33 7916,13 1 29,87 7977,64 1 24,87 8334,59 1 25,48 8623,36 1 27,28 9098,03 1 28,24 9154,34 1 29,58 9284,73 1 26,95 9492,49 1 29,08 9682,35 1 28,76 9762,12 1 29,59 10124,63 1 30,7 10540,05 1 30,52 10601,61 1 32,67 10323,73 1 33,19 10418,4 1 37,13 10092,96 1 35,54 10364,91 1 37,75 10152,09 1 41,84 10032,8 1 42,94 10204,59 1 49,14 10001,6 1 44,61 10411,75 1 40,22 10673,38 1 44,23 10539,51 1 45,85 10723,78 1 53,38 10682,06 1 53,26 10283,19 1 51,8 10377,18 1 55,3 10486,64 1 57,81 10545,38 1 63,96 10554,27 1 63,77 10532,54 1 59,15 10324,31 1 56,12 10695,25 1 57,42 10827,81 1 63,52 10872,48 1 61,71 10971,19 1 63,01 11145,65 1 68,18 11234,68 1 72,03 11333,88 1 69,75 10997,97 1 74,41 11036,89 1 74,33 11257,35 1 64,24 11533,59 1 60,03 11963,12 1 59,44 12185,15 1 62,5 12377,62 1 55,04 12512,89 1 58,34 12631,48 1 61,92 12268,53 1 67,65 12754,8 1 67,68 13407,75 1 70,3 13480,21 1 75,26 13673,28 1 71,44 13239,71 1 76,36 13557,69 1 81,71 13901,28 1 92,6 13200,58 1 90,6 13406,97 1 92,23 12538,12 1 94,09 12419,57 1 102,79 12193,88 1 109,65 12656,63 1 124,05 12812,48 1 132,69 12056,67 1 135,81 11322,38 1 116,07 11530,75 1 101,42 11114,08 1 75,73 9181,73 1 55,48 8614,55 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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Olieprijs[t] = + 11.9170891434106 + 0.00113014834823295DowJones[t] -20.9453283476568`Dummy(9/11)`[t] + 0.382292664115397M1[t] -3.38414998743818M2[t] -6.94836441305219M3[t] -4.69119072629883M4[t] -4.5609608844506M5[t] -4.32867074945922M6[t] -2.29622302998753M7[t] -1.55286734952785M8[t] + 0.366270997172950M9[t] + 0.85732370177522M10[t] + 2.30748796734719M11[t] + 0.936438289044728t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)11.917089143410614.1857460.84010.4032510.201626
DowJones0.001130148348232950.0013180.85720.3937810.196891
`Dummy(9/11)`-20.94532834765685.199131-4.02860.0001236.1e-05
M10.3822926641153975.6884990.06720.9465790.473289
M2-3.384149987438185.683693-0.59540.5531680.276584
M3-6.948364413052195.680549-1.22320.224680.11234
M4-4.691190726298835.904899-0.79450.4291680.214584
M5-4.56096088445065.885013-0.7750.4405080.220254
M6-4.328670749459225.873888-0.73690.4632160.231608
M7-2.296223029987535.857311-0.3920.6960310.348016
M8-1.552867349527855.861558-0.26490.7917170.395859
M90.3662709971729505.8718550.06240.950410.475205
M100.857323701775225.8581960.14630.8839990.441999
M112.307487967347195.8425130.39490.6938820.346941
t0.9364382890447280.07852611.925300


Multiple Linear Regression - Regression Statistics
Multiple R0.918774071288138
R-squared0.84414579407138
Adjusted R-squared0.818170093083276
F-TEST (value)32.4975173704837
F-TEST (DF numerator)14
F-TEST (DF denominator)84
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.6838049009502
Sum Squared Residuals11466.9489449312


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
132.6825.63114026070477.04885973929528
231.5422.19728633425139.34271366574865
332.4319.831953247108812.5980467528912
426.5423.02661626087073.51338373912933
525.8524.11140066978581.73859933021419
627.625.38690550976302.21309449023703
725.7127.5368634221828-1.82686342218283
825.3829.3990294306416-4.01902943064159
928.5732.6307759440964-4.06077594409645
1027.6434.3073290307270-6.66732903072703
1125.3636.3292327133689-10.9692327133689
1225.934.8114671764989-8.91146717649888
1326.2913.747185465248112.5428145347519
1421.7411.118562236910910.6214377630891
1519.29.057092136157610.1429078638424
1619.3212.54080189146376.77919810853635
1719.8213.54562830474136.2743716952587
1820.3614.67903959289515.68096040710485
1924.3118.33553045944345.97446954055657
2025.9719.65183481570576.3181651842943
2125.6122.39567368426143.21432631573858
2224.6723.15859224321351.51140775678648
2325.5924.55524135219561.03475864780443
2426.0923.26207019656982.82792980343017
2528.3723.98777840696174.38222159303832
2627.3421.03055324489236.30944675510774
2724.4619.07307939514345.38692060485659
2827.4622.13719897320105.32280102679904
2930.2323.14462472767967.08537527232044
3032.3323.68263996153388.64736003846617
3129.8726.72104139495003.14895860504996
3224.8728.8042418173562-3.93424181735621
3325.4831.986171391621-6.50617139162097
3427.2833.9501099017237-6.6701099017237
3528.2436.4003511098294-8.1603511098294
3629.5835.176661474653-5.59666147465302
3726.9536.7301920486420-9.78019204864203
3829.0834.1147576515287-5.03475765152869
3928.7631.5771334486979-2.81713344869795
4029.5935.1804355022140-5.59043550221396
4130.736.7165898599299-6.01658985992985
4230.5237.9548902162832-7.43489021628319
4332.6740.6097306017926-7.93973060179262
4433.1942.3965157154243-9.20651571542426
4537.1344.8842968727209-7.75429687272085
4635.5446.6191317096698-11.0791317096698
4737.7548.7652160928156-11.0152160928156
4841.8447.2593510180524-5.41935101805237
4942.9448.7722301559554-5.83223015595545
5049.1445.71281698023883.42718301976121
5144.6143.54857118869731.06142881130275
5240.2247.0378638768435-6.81786387684352
5344.2347.9532390483585-3.72323904835854
5445.8549.3302199085235-3.48021990852354
5553.3852.25195612795171.12804387204833
5653.2653.4809678257964-0.220967825796409
5751.856.4427671047924-4.64276710479236
5855.357.9939641366369-2.69396413663693
5957.8160.4469516052288-2.63695160522883
6063.9659.08594894574224.87405105425785
6163.7760.38012177529523.38987822470482
6259.1557.31478662223381.83521337776622
6356.1255.1062277139581.01377228604197
6457.4258.4496521547979-1.02965215479787
6563.5259.56680401240643.9531959875936
6661.7160.84708937989660.862910620103401
6763.0164.0131410692457-1.00314106924572
6868.1865.79355214619332.38644785380669
6972.0368.76123949808363.26876050191645
7069.7569.8091023600756-0.059102360075612
7174.4172.23969028840562.17030971159445
7274.3371.11779311495453.21220688504548
7364.2472.7487162478305-8.50871624783051
7460.0370.4041445053382-10.3741445053382
7559.4468.027295206527-8.58729520652704
7662.571.4384268349095-8.93842683490952
7755.0472.6579701328679-17.6179701328680
7858.3473.960722849521-15.6207228495210
7961.9276.5194215150463-14.5994215150463
8067.6578.748772721846-11.0987727218459
8167.6882.3422797215702-14.6622797215701
8270.383.8516612645301-13.5516612645301
8375.2686.4564615607402-11.1964615607401
8471.4484.5954134630943-13.1554134630943
8576.3686.2735089880256-9.91350898802556
8681.7183.831812296486-2.12181229648608
8792.680.4121412123112.1878587876900
8890.683.83900450569986.76099549430015
8992.2383.92374324423068.3062567557694
9094.0984.95849258158379.1315074184163
91102.7987.672315409387415.1176845906126
92109.6589.875085527036619.7749144729634
93124.0592.906795782854331.1432042171457
94132.6993.480109353423339.2098906465767
95135.8195.03685527741640.773144722584
96116.0793.901294610434922.1687053895651
97101.4294.74912665133686.67087334866323
9875.7389.73528012812-14.0052801281200
9955.4886.4665064514-30.9865064514000


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.01142765504776760.02285531009553510.988572344952232
190.004266922271862260.008533844543724510.995733077728138
200.001875572739051650.003751145478103290.998124427260948
210.0004476331281751940.0008952662563503880.999552366871825
220.0001931982496549350.0003863964993098690.999806801750345
230.0002327826647769630.0004655653295539260.999767217335223
240.0001222394208957570.0002444788417915130.999877760579104
253.1839030224961e-056.3678060449922e-050.999968160969775
268.74401954600158e-061.74880390920032e-050.999991255980454
272.38108182625823e-064.76216365251645e-060.999997618918174
281.18566223171301e-062.37132446342603e-060.999998814337768
291.03541328556437e-062.07082657112873e-060.999998964586714
308.26034213330657e-071.65206842666131e-060.999999173965787
312.3875244462465e-074.775048892493e-070.999999761247555
329.1410893672212e-081.82821787344424e-070.999999908589106
333.63434932830915e-087.26869865661831e-080.999999963656507
348.80726799078906e-091.76145359815781e-080.999999991192732
352.20921519828054e-094.41843039656109e-090.999999997790785
365.48702950925532e-101.09740590185106e-090.999999999451297
374.3610654574529e-108.7221309149058e-100.999999999563894
381.04623100666037e-102.09246201332074e-100.999999999895377
392.71752608236910e-115.43505216473821e-110.999999999972825
407.77176894438044e-121.55435378887609e-110.999999999992228
412.21454518330377e-124.42909036660754e-120.999999999997785
424.72685124263918e-139.45370248527837e-130.999999999999527
431.25811082516961e-132.51622165033921e-130.999999999999874
444.79367543190413e-149.58735086380826e-140.999999999999952
453.98948652170828e-147.97897304341656e-140.99999999999996
461.68623386924318e-143.37246773848636e-140.999999999999983
471.51962118454042e-143.03924236908084e-140.999999999999985
483.70824468770053e-147.41648937540105e-140.999999999999963
491.52487132347448e-143.04974264694896e-140.999999999999985
501.61478506034973e-133.22957012069946e-130.999999999999839
511.74952980036520e-133.49905960073039e-130.999999999999825
524.65956434504152e-149.31912869008304e-140.999999999999953
532.10664472161413e-144.21328944322826e-140.999999999999979
549.4496318999254e-151.88992637998508e-140.99999999999999
554.96267064433184e-149.92534128866368e-140.99999999999995
561.74945608561176e-133.49891217122351e-130.999999999999825
571.31732976425342e-132.63465952850685e-130.999999999999868
582.6271460542334e-135.2542921084668e-130.999999999999737
596.56779337128046e-131.31355867425609e-120.999999999999343
604.66649932884429e-129.33299865768858e-120.999999999995334
615.54372410410396e-121.10874482082079e-110.999999999994456
624.16214168968755e-128.3242833793751e-120.999999999995838
633.71848152287745e-127.43696304575489e-120.999999999996282
641.66456695203688e-123.32913390407375e-120.999999999998335
652.67517903859014e-125.35035807718028e-120.999999999997325
661.9977766087946e-123.9955532175892e-120.999999999998002
671.01899532140061e-122.03799064280123e-120.999999999998981
681.25240936053068e-122.50481872106135e-120.999999999998748
692.22244407568672e-124.44488815137345e-120.999999999997778
701.62147283821378e-123.24294567642757e-120.999999999998379
712.14945478500169e-124.29890957000337e-120.99999999999785
726.24750861711635e-121.24950172342327e-110.999999999993753
732.12683666382060e-114.25367332764120e-110.999999999978732
744.44022691880933e-108.88045383761867e-100.999999999555977
753.76812550044232e-087.53625100088463e-080.999999962318745
764.5712439170467e-079.1424878340934e-070.999999542875608
771.30333639608615e-062.6066727921723e-060.999998696663604
783.27635965240004e-066.55271930480008e-060.999996723640348
791.15111969440051e-052.30223938880102e-050.999988488803056
800.0003864108472620920.0007728216945241840.999613589152738
810.0009783256714979210.001956651342995840.999021674328502


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level630.984375NOK
5% type I error level641NOK
10% type I error level641NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/104oc11229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/104oc11229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/1gg6v1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/1gg6v1229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/27igi1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/27igi1229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/3rmoj1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/3rmoj1229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/45xe51229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/45xe51229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/5kg5n1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/5kg5n1229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/626no1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/626no1229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/76to61229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/76to61229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/84wgv1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/84wgv1229183101.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/9ypcd1229183101.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229183164ollhd3n8uyul2al/9ypcd1229183101.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