Home » date » 2010 » Dec » 09 »

Multiple Regression Paper Dma

*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: Thu, 09 Dec 2010 15:50:37 +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/09/t129190976304t19qqniylek9o.htm/, Retrieved Thu, 09 Dec 2010 16:49:34 +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/09/t129190976304t19qqniylek9o.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:
Paper Dma
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3030,29 25,64 2803,47 27,97 2767,63 27,62 2882,6 23,31 2863,36 29,07 2897,06 29,58 3012,61 28,63 3142,95 29,92 3032,93 32,68 3045,78 31,54 3110,52 32,43 3013,24 26,54 2987,1 25,85 2995,55 27,6 2833,18 25,71 2848,96 25,38 2794,83 28,57 2845,26 27,64 2915,03 25,36 2892,63 25,9 2604,42 26,29 2641,65 21,74 2659,81 19,2 2638,53 19,32 2720,25 19,82 2745,88 20,36 2735,7 24,31 2811,7 25,97 2799,43 25,61 2555,28 24,67 2304,98 25,59 2214,95 26,09 2065,81 28,37 1940,49 27,34 2042 24,46 1995,37 27,46 1946,81 30,23 1765,9 32,33 1635,25 29,87 1833,42 24,87 1910,43 25,48 1959,67 27,28 1969,6 28,24 2061,41 29,58 2093,48 26,95 2120,88 29,08 2174,56 28,76 2196,72 29,59 2350,44 30,7 2440,25 30,52 2408,64 32,67 2472,81 33,19 2407,6 37,13 2454,62 35,54 2448,05 37,75 2497,84 41,84 2645,64 42,94 2756,76 49,14 2849,27 44,61 2921,44 40,22 2981,85 44,23 3080,58 45,85 3106,22 53,38 3119,31 53,26 3061,26 51,8 3097,31 55,3 3161,69 57,81 3257,16 63,96 3277,01 63,77 3295, 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 time18 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Aandelenkoers[t] = + 2162.31450281125 + 17.8087322021762Olieprijs[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2162.31450281125122.06237117.714800
Olieprijs17.80873220217622.2028288.084500


Multiple Linear Regression - Regression Statistics
Multiple R0.615794096477654
R-squared0.379202369256731
Adjusted R-squared0.373400522240438
F-TEST (value)65.3589052230932
F-TEST (DF numerator)1
F-TEST (DF denominator)107
p-value1.03117514527185e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation612.982636516373
Sum Squared Residuals40205005.2557504


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13030.292618.93039647503411.359603524969
22803.472660.42474250612143.045257493879
32767.632654.19168623536113.438313764641
42882.62577.43605044398305.163949556021
52863.362680.01434792851183.345652071486
62897.062689.09680135162207.963198648376
73012.612672.17850575956340.431494240443
83142.952695.15177030036447.798229699636
93032.932744.30387117837288.626128821630
103045.782724.00191646789321.778083532111
113110.522739.85168812783370.668311872174
123013.242634.95825545701378.281744542991
132987.12622.67023023751364.429769762493
142995.552653.83551159132341.714488408685
152833.182620.1770077292213.002992270798
162848.962614.30012610248234.659873897516
172794.832671.10998182743123.720018172574
182845.262654.5478608794190.712139120598
192915.032613.94395145844301.086048541560
202892.632623.56066684762269.069333152385
212604.422630.50607240646-26.0860724064642
222641.652549.4763408865692.1736591134375
232659.812504.24216109304155.567838906965
242638.532506.37920895730132.150791042704
252720.252515.28357505838204.966424941616
262745.882524.90029044756220.979709552441
272735.72595.24478264616140.455217353844
282811.72624.80727810177186.892721898232
292799.432618.39613450898181.033865491015
302555.282601.65592623894-46.3759262389387
312304.982618.03995986494-313.059959864941
322214.952626.94432596603-411.994325966029
332065.812667.54823538699-601.738235386991
341940.492649.20524121875-708.71524121875
3520422597.91609247648-555.916092476482
361995.372651.34228908301-655.972289083011
371946.812700.67247728304-753.862477283039
381765.92738.07081490761-972.170814907609
391635.252694.26133369026-1059.01133369026
401833.422605.21767267937-771.797672679374
411910.432616.0809993227-705.650999322702
421959.672648.13671728662-688.466717286619
431969.62665.23310020071-695.633100200708
442061.412689.09680135162-627.686801351624
452093.482642.2598356599-548.779835659901
462120.882680.19243525054-559.312435250536
472174.562674.49364094584-499.93364094584
482196.722689.27488867365-492.554888673646
492350.442709.04258141806-358.602581418061
502440.252705.83700962167-265.587009621670
512408.642744.12578385635-335.485783856349
522472.812753.38632460148-280.57632460148
532407.62823.55272947805-415.952729478055
542454.622795.23684527659-340.616845276594
552448.052834.59414344340-386.544143443404
562497.842907.43185815030-409.591858150304
572645.642927.0214635727-281.381463572698
582756.763037.43560322619-280.675603226190
592849.272956.76204635033-107.492046350332
602921.442878.5817119827842.8582880172212
612981.852949.9947281135131.8552718864944
623080.582978.84487428103101.735125718969
633106.223112.94462776342-6.72462776341806
643119.313110.807579899168.50242010084331
653061.263084.80683088398-23.5468308839791
663097.313147.13739359160-49.8273935915961
673161.693191.83731141906-30.1473114190584
683257.163301.36101446244-44.2010144624423
693277.013297.97735534403-20.9673553440284
703295.323215.7010125699779.6189874300257
713363.993161.74055399738202.249446002619
723494.173184.89190586021309.278094139790
733667.033293.52517229348373.504827706516
743813.063261.29136700755551.768632992454
753917.963284.44271887037633.517281129625
763895.513376.51386435563518.996135644374
773801.063445.077483334355.982516665996
783570.123404.47357391304165.646426086958
793701.613487.46226597518214.147734024817
803862.273486.03756739901376.232432600991
813970.13306.34745947905663.752540520949
824138.523231.37269690789907.147303092111
834199.753220.86554490861978.884455091394
844290.893275.360265447261015.52973455274
854443.913142.507123219031301.40287678097
864502.643201.275939486211301.36406051379
874356.983265.031200771091.94879923000
884591.273367.075236288471224.19476371153
894696.963367.609498254541329.35050174546
904621.43414.268376624241207.13162337576
914562.843502.599688347031060.24031165297
924202.523434.57033133472767.94966866528
934296.493522.18929376943774.300706230573
944435.233617.46601105107817.76398894893
954105.183811.40310473277293.776895267232
964116.683775.78564032842340.894359671584
973844.493804.8138738179639.6761261820362
983720.983837.93811571401-116.958115714011
993674.43992.87408587294-318.474085872944
1003857.624115.04198877987-257.421988779873
1013801.064371.48773249121-570.42773249121
1023504.374525.35517871801-1020.98517871801
1033032.64580.9184231888-1548.31842318880
1043047.034229.37404951784-1182.34404951784
1052962.343968.47612275596-1006.13612275596
1062197.823510.96979248206-1313.14979248206
1072014.453150.34296538799-1135.89296538799
1081862.832942.33697326657-1079.50697326657
1091905.412968.87198424781-1063.46198424781


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.006348663500632850.01269732700126570.993651336499367
60.001099444154586330.002198888309172660.998900555845414
70.0004074058813428410.0008148117626856820.999592594118657
80.0003966873602542490.0007933747205084970.999603312639746
97.89989492083425e-050.0001579978984166850.999921001050792
101.56000342593247e-053.12000685186494e-050.99998439996574
113.47934867552619e-066.95869735105238e-060.999996520651324
128.43522122863114e-071.68704424572623e-060.999999156477877
131.72563395771515e-073.4512679154303e-070.999999827436604
143.03703810351365e-086.0740762070273e-080.999999969629619
156.61432919038221e-091.32286583807644e-080.99999999338567
161.17242631018082e-092.34485262036164e-090.999999998827574
176.04693341791086e-101.20938668358217e-090.999999999395307
181.33824094530015e-102.67648189060030e-100.999999999866176
192.20790651931684e-114.41581303863368e-110.99999999997792
203.40437459334908e-126.80874918669816e-120.999999999996596
211.71527742004615e-113.43055484009230e-110.999999999982847
224.90422684527615e-129.8084536905523e-120.999999999995096
238.54286203555252e-131.70857240711050e-120.999999999999146
241.4883271850137e-132.9766543700274e-130.999999999999851
252.6316848782319e-145.2633697564638e-140.999999999999974
264.65056854065379e-159.30113708130758e-150.999999999999995
279.73093895442232e-161.94618779088446e-150.999999999999999
281.71652245029617e-163.43304490059234e-161
292.99415835069793e-175.98831670139587e-171
307.34969047059646e-171.46993809411929e-161
312.89328572553853e-145.78657145107706e-140.999999999999971
323.73049417117161e-127.46098834234322e-120.99999999999627
339.0905888230635e-101.8181177646127e-090.999999999090941
345.02344651377052e-081.00468930275410e-070.999999949765535
351.94017699726980e-073.88035399453959e-070.9999998059823
361.02220485424182e-062.04440970848364e-060.999998977795146
375.64856331123564e-061.12971266224713e-050.999994351436689
384.30029463775195e-058.6005892755039e-050.999956997053622
390.0002650157329402710.0005300314658805410.99973498426706
400.0005516496046945350.001103299209389070.999448350395305
410.0008220862135739650.001644172427147930.999177913786426
420.001042626033745160.002085252067490320.998957373966255
430.001262019687918280.002524039375836560.998737980312082
440.001260535992170660.002521071984341320.99873946400783
450.001199869390248640.002399738780497280.998800130609751
460.001094302895023020.002188605790046040.998905697104977
470.0009331783708194590.001866356741638920.99906682162918
480.0007812381087529780.001562476217505960.999218761891247
490.000561707326748780.001123414653497560.999438292673251
500.0003826450786377380.0007652901572754760.999617354921362
510.0002714343154462470.0005428686308924940.999728565684554
520.0001894550881913930.0003789101763827860.999810544911809
530.0001448963013785530.0002897926027571070.999855103698621
540.0001096452734962440.0002192905469924870.999890354726504
558.84008046486952e-050.0001768016092973900.999911599195351
567.5624237519692e-050.0001512484750393840.99992437576248
576.42798129489181e-050.0001285596258978360.99993572018705
585.71274500332933e-050.0001142549000665870.999942872549967
594.75653519455404e-059.51307038910807e-050.999952434648054
603.91729220157931e-057.83458440315861e-050.999960827077984
613.25083773007257e-056.50167546014514e-050.9999674916227
622.71416714692925e-055.42833429385849e-050.99997285832853
632.05287267317932e-054.10574534635865e-050.999979471273268
641.48842479126919e-052.97684958253839e-050.999985115752087
651.07317147370203e-052.14634294740407e-050.999989268285263
667.5217681730469e-061.50435363460938e-050.999992478231827
675.09539505072553e-061.01907901014511e-050.99999490460495
683.20368402622022e-066.40736805244044e-060.999996796315974
691.98616297407777e-063.97232594815554e-060.999998013837026
701.27296806399650e-062.54593612799299e-060.999998727031936
718.54012664289732e-071.70802532857946e-060.999999145987336
725.84354147943654e-071.16870829588731e-060.999999415645852
733.82073442567538e-077.64146885135077e-070.999999617926557
743.05395294236347e-076.10790588472693e-070.999999694604706
752.56888852601365e-075.1377770520273e-070.999999743111147
761.57167275306546e-073.14334550613093e-070.999999842832725
777.62525425968029e-081.52505085193606e-070.999999923747457
783.56924241270577e-087.13848482541155e-080.999999964307576
791.58048020824701e-083.16096041649402e-080.999999984195198
807.18329003099816e-091.43665800619963e-080.99999999281671
814.95902083927676e-099.9180416785535e-090.99999999504098
826.44265686878811e-091.28853137375762e-080.999999993557343
839.69797526709203e-091.93959505341841e-080.999999990302025
841.49188768875025e-082.98377537750050e-080.999999985081123
857.13154348932393e-081.42630869786479e-070.999999928684565
862.98083847520212e-075.96167695040423e-070.999999701916153
875.52721106925748e-071.10544221385150e-060.999999447278893
881.88402810369839e-063.76805620739678e-060.999998115971896
891.22485388094627e-052.44970776189253e-050.99998775146119
906.61369893028782e-050.0001322739786057560.999933863010697
910.0003101204268247150.000620240853649430.999689879573175
920.000815257160710610.001630514321421220.99918474283929
930.003379316810147670.006758633620295350.996620683189852
940.02632719765190800.05265439530381600.973672802348092
950.06521545151597490.1304309030319500.934784548484025
960.2045285439636340.4090570879272670.795471456036366
970.3849290716505880.7698581433011760.615070928349412
980.5906363601571630.8187272796856740.409363639842837
990.7341195359372130.5317609281255730.265880464062787
1000.9361891619987940.1276216760024120.063810838001206
1010.991468156758530.01706368648294070.00853184324147033
1020.9929580634423160.01408387311536720.0070419365576836
1030.9959771030900490.008045793819902610.00402289690995131
1040.9823809790162440.03523804196751180.0176190209837559


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level890.89NOK
5% type I error level930.93NOK
10% type I error level940.94NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/105mo01291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/105mo01291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/1y3r61291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/1y3r61291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/2y3r61291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/2y3r61291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/39uqr1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/39uqr1291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/49uqr1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/49uqr1291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/59uqr1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/59uqr1291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/61m8u1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/61m8u1291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/7cv7f1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/7cv7f1291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/8cv7f1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/8cv7f1291909817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/9cv7f1291909817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t129190976304t19qqniylek9o/9cv7f1291909817.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No 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