Home » date » 2008 » Dec » 17 »

Met dummy variabele (kredietcrisis)

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 17 Dec 2008 15:49: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/17/t1229554304ctyaasva74iz3fg.htm/, Retrieved Wed, 17 Dec 2008 23:51:44 +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/17/t1229554304ctyaasva74iz3fg.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 0 21,74 9220,75 0 19,2 9721,84 0 19,32 9978,53 0 19,82 9923,81 0 20,36 9892,56 0 24,31 10500,98 0 25,97 10179,35 0 25,61 10080,48 0 24,67 9492,44 0 25,59 8616,49 0 26,09 8685,4 0 28,37 8160,67 0 27,34 8048,1 0 24,46 8641,21 0 27,46 8526,63 0 30,23 8474,21 0 32,33 7916,13 0 29,87 7977,64 0 24,87 8334,59 0 25,48 8623,36 0 27,28 9098,03 0 28,24 9154,34 0 29,58 9284,73 0 26,95 9492,49 0 29,08 9682,35 0 28,76 9762,12 0 29,59 10124,63 0 30,7 10540,05 0 30,52 10601,61 0 32,67 10323,73 0 33,19 10418,4 0 37,13 10092,96 0 35,54 10364,91 0 37,75 10152,09 0 41,84 10032,8 0 42,94 10204,59 0 49,14 10001,6 0 44,61 10411,75 0 40,22 10673,38 0 44,23 10539,51 0 45,85 10723,78 0 53,38 10682,06 0 53,26 10283,19 0 51,8 10377,18 0 55,3 10486,64 0 57,81 10545,38 0 63,96 10554,27 0 63,77 10532,54 0 59,15 10324,31 0 56,12 10695,25 0 57,42 10827,81 0 63,52 10872,48 0 61,71 10971,19 0 63,01 11145,65 0 68,18 11234,68 0 72,03 11333,88 0 69,75 10997,97 0 74,41 11036,89 0 74,33 11257,35 0 64,24 11533,59 0 60,03 11963,12 0 59,44 12185,15 0 62,5 12377,62 0 55,04 12512,89 0 58,34 12631,48 0 61,92 12268,53 0 67,65 12754,8 0 67,68 13407,75 0 70,3 13480,21 0 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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Olieprijs[t] = -11.4540263502318 + 0.00304979511034247DowJones[t] + 21.8149201426431`Dummy(kredietcrisis)`[t] -1.03364000649433M1[t] -4.0207911782665M2[t] -7.44361487608893M3[t] -5.44688097308302M4[t] -4.81218934617965M5[t] -4.15899005145394M6[t] -1.55249335180066M7[t] -0.647575188726108M8[t] + 1.36863510761649M9[t] + 2.37191696798508M10[t] + 1.91168058858591M11[t] + 0.551587294178185t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-11.454026350231810.479944-1.09290.2775420.138771
DowJones0.003049795110342470.0010512.9010.0047480.002374
`Dummy(kredietcrisis)`21.81492014264313.9525475.519200
M1-1.033640006494335.316734-0.19440.8463220.423161
M2-4.02079117826655.318398-0.7560.4517550.225877
M3-7.443614876088935.314612-1.40060.1650190.082509
M4-5.446880973083025.505062-0.98940.3252940.162647
M5-4.812189346179655.496302-0.87550.3837810.191891
M6-4.158990051453945.492622-0.75720.4510510.225526
M7-1.552493351800665.485305-0.2830.7778520.388926
M8-0.6475751887261085.491312-0.11790.9064070.453203
M91.368635107616495.5023560.24870.8041720.402086
M102.371916967985085.4965060.43150.6671870.333594
M111.911680588585915.4670130.34970.7274570.363729
t0.5515872941781850.0582649.46700


Multiple Linear Regression - Regression Statistics
Multiple R0.929260072014314
R-squared0.863524281440048
Adjusted R-squared0.840778328346723
F-TEST (value)37.9638645123842
F-TEST (DF numerator)14
F-TEST (DF denominator)84
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.9333368282186
Sum Squared Residuals10041.1797527396


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
132.6821.513677234324011.1663227656760
231.5417.448577331323014.0914226686770
332.4315.285564348202417.1444356517976
426.5417.83672185483918.70327814516086
525.8519.07188899153956.77811100846052
627.620.56482022246857.03517977753148
725.7121.51296168344364.19703831655636
825.3823.46161257765231.91838742234766
928.5727.04453447065061.52546552934938
1027.6429.2715174716147-1.63151747161467
1125.3628.3786995042862-3.01869950428617
1225.926.6226818086538-0.722681808653778
1326.2922.26092374056884.02907625943124
1421.7420.36880285368671.37119714631329
1519.219.02578828188400.174211718116041
1619.3222.3569613859419-3.03696138594187
1719.8223.3763555185855-3.55635551858548
1820.3624.4858360102912-4.12583601029118
1924.3129.4994763451572-5.18947634515721
2025.9729.9750762010705-4.00507620107051
2125.6132.2413405490317-6.63134054903173
2224.6732.0028081868927-7.33280818689271
2325.5929.4226910747672-3.83269107476724
2426.0928.2727591614132-2.18275916141322
2528.3726.19038746084712.17961253915294
2627.3423.41150814768183.92849185231817
2724.4622.34913572193282.11086427806719
2827.4624.54801139537392.91198860462614
2930.2325.57442005677134.65557994322874
3032.3325.07717699049527.25282300950477
3129.8728.42285388156391.44714611843613
3224.8730.9679837034533-6.09798370345335
3325.4834.4164706279877-8.93647062798773
3427.2837.4189860275608-10.1389860275608
3528.2437.6820709050032-9.44207090500317
3629.5836.719640395033-7.139640395033
3726.9536.8712131148416-9.9212131148416
3829.0835.0146833368972-5.93468333689724
3928.7632.386729089205-3.62672908920501
4029.5936.0406315118394-6.45063151183936
4130.738.4938563176594-7.79385631765938
4230.5239.886388293556-9.36638829355597
4332.6742.1969952221255-9.52699522212546
4433.1943.9422247824743-10.7522247824743
4537.1345.5174970522852-8.38749705228524
4635.5447.9017579870897-12.3617579870897
4737.7547.3440515064856-9.59405150648559
4841.8445.6201481533651-3.78014815336511
4942.9445.6620197430547-2.7220197430547
5049.1442.60737795601236.53262204398771
5144.6140.9870150168753.62298498312499
5240.2244.333254108778-4.11325410877801
5344.2345.111256958438-0.881256958438021
5445.8546.8780292923247-1.02802929232472
5553.3849.90887583415273.47112416584731
5653.2650.14890951574313.11109048425686
5751.853.003357348685-1.20335734868501
5855.354.89205707600990.407942923990133
5957.8155.16255295557042.64744704442961
6063.9653.829572339693610.1304276603064
6163.7753.281247579629710.4887524203703
6259.1550.21062486620918.93937513379087
6356.1248.47067946079537.64932053920467
6457.4251.42328149780645.99671850219359
6563.5252.74579476646710.7742052335330
6661.7154.25162663071287.45837336928723
6763.0157.94177787949465.06822212050542
6868.1859.66980659542118.5101934045789
6972.0362.54014386088799.48985613911214
7069.7563.07055633991956.6794436600805
7174.4163.28060528039311.1293947196069
7274.3362.592869816011411.7371301839886
7364.2462.95329250497631.28670749502371
7460.0361.8277071211277-1.7977071211277
7559.4459.6336167258328-0.193616725832796
7662.562.7689319879045-0.268931987904513
7755.0464.3677566935621-9.32775669356209
7858.3465.9342184846015-7.59421848460149
7961.9267.9853793431342-6.06537934313416
8067.6570.9249086686931-3.27490866869313
8167.6875.484069976512-7.80406997651203
8270.377.2599272847542-6.95992728475423
8375.2699.7550222841301-24.4950222841301
8471.4497.0726293237312-25.6326293237312
8576.3697.5603504606018-21.2003504606018
8681.7196.1726656849704-14.4626656849704
8792.691.16443784750921.43556215249083
8890.694.3422062575168-3.74220625751684
8992.2392.8786706969773-0.648670696977324
9094.0993.72190407555010.368095924449881
91102.7996.19167981092846.59832018907161
92109.6599.059477955492110.5905220445079
93124.05102.10258611396021.9474138860402
94132.69101.35238962615931.3376103738414
95135.8199.204306489364336.6056935106357
96116.0798.479699002098617.5903009979014
97101.4296.7268881611564.69311183884396
9875.7388.3980527020918-12.6680527020918
9955.4883.7970335077635-28.3170335077635


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.01528240711448780.03056481422897570.984717592885512
190.006146415281414790.01229283056282960.993853584718585
200.002875303118536860.005750606237073720.997124696881463
210.0007338861440153510.001467772288030700.999266113855985
220.0003393310420660480.0006786620841320960.999660668957934
230.0004356374027956240.0008712748055912490.999564362597204
240.0002433710720832350.0004867421441664690.999756628927917
250.0001511190766605280.0003022381533210570.99984888092334
260.0001086021164858870.0002172042329717740.999891397883514
274.34460513516119e-058.68921027032238e-050.999956553948648
285.62373954537575e-050.0001124747909075150.999943762604546
290.0001025251021142430.0002050502042284850.999897474897886
300.0001122699618757880.0002245399237515760.999887730038124
315.1896920522034e-050.0001037938410440680.999948103079478
321.85294265222706e-053.70588530445412e-050.999981470573478
336.63630788487907e-061.32726157697581e-050.999993363692115
342.84476207348011e-065.68952414696022e-060.999997155237927
351.67465045610087e-063.34930091220174e-060.999998325349544
368.56571297798906e-071.71314259559781e-060.999999143428702
372.81396972670017e-075.62793945340033e-070.999999718603027
381.11307069938271e-072.22614139876543e-070.99999988869293
394.53523722519101e-089.07047445038201e-080.999999954647628
401.99235505956415e-083.98471011912831e-080.99999998007645
417.57731853433721e-091.51546370686744e-080.999999992422681
422.28723664517801e-094.57447329035603e-090.999999997712763
438.60543708999863e-101.72108741799973e-090.999999999139456
444.38129325712713e-108.76258651425426e-100.99999999956187
454.58419927493946e-109.16839854987893e-100.99999999954158
463.59941965750454e-107.19883931500908e-100.999999999640058
473.80681276184541e-107.61362552369082e-100.999999999619319
486.51356979660159e-101.30271395932032e-090.999999999348643
494.58214840751148e-109.16429681502295e-100.999999999541785
502.95458805640223e-095.90917611280445e-090.999999997045412
513.2887939419003e-096.5775878838006e-090.999999996711206
521.43907328943934e-092.87814657887867e-090.999999998560927
539.52652656630983e-101.90530531326197e-090.999999999047347
545.3234835451317e-101.06469670902634e-090.999999999467652
551.27985036728396e-092.55970073456793e-090.99999999872015
564.08411586283552e-098.16823172567103e-090.999999995915884
576.29433837353785e-091.25886767470757e-080.999999993705662
582.20669692225926e-084.41339384451852e-080.99999997793303
594.72651081291084e-089.45302162582168e-080.999999952734892
601.30178216693333e-072.60356433386666e-070.999999869821783
611.49538930490327e-072.99077860980654e-070.99999985046107
621.03692733236119e-072.07385466472237e-070.999999896307267
637.37318553500722e-081.47463710700144e-070.999999926268145
644.08803426816741e-088.17606853633482e-080.999999959119657
654.69083025183769e-089.38166050367539e-080.999999953091698
662.81387185745947e-085.62774371491895e-080.999999971861281
671.25518356050962e-082.51036712101923e-080.999999987448164
688.62726381537213e-091.72545276307443e-080.999999991372736
696.98953029873835e-091.39790605974767e-080.99999999301047
705.20094103532561e-091.04018820706512e-080.999999994799059
714.26242170289475e-098.5248434057895e-090.999999995737578
724.87552740283677e-099.75105480567354e-090.999999995124473
737.92860099444131e-091.58572019888826e-080.9999999920714
741.16154522714019e-072.32309045428039e-070.999999883845477
755.53235491770459e-061.10647098354092e-050.999994467645082
768.08321813107744e-050.0001616643626215490.99991916781869
770.0001500856978962940.0003001713957925870.999849914302104
780.0002371973906228560.0004743947812457120.999762802609377
790.0004654229539968190.0009308459079936370.999534577046003
800.004563979994868080.009127959989736150.995436020005132
810.006943132239764110.01388626447952820.993056867760236


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level610.953125NOK
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/17/t1229554304ctyaasva74iz3fg/102v4i1229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/102v4i1229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/12zfm1229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/12zfm1229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/2ybah1229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/2ybah1229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/3vvd91229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/3vvd91229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/4plah1229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/4plah1229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/5spw71229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/5spw71229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/644281229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/644281229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/73hqv1229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/73hqv1229554134.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/80w911229554134.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229554304ctyaasva74iz3fg/80w911229554134.ps (open in new window)


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