Home » date » 2010 » Dec » 15 »

Multiple Linear Regression en Trend - Paper

*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, 15 Dec 2010 17:58:44 +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/15/t1292435844mfbb8g9q3toi140.htm/, Retrieved Wed, 15 Dec 2010 18:57: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/15/t1292435844mfbb8g9q3toi140.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
198563 44164 25943 -7.7 -9 195722 40399 21698 -4.9 -13 202196 36763 20077 -2.4 -8 205816 37903 25673 -3.6 -13 212588 35532 19094 -7 -15 214320 35533 19306 -7 -15 220375 32110 15443 -7.9 -15 204442 33374 15179 -8.8 -10 206903 35462 18288 -14.2 -12 214126 33508 18264 -17.8 -11 226899 36080 16406 -18.2 -11 223532 34560 15678 -22.8 -17 195309 38737 19657 -23.6 -18 186005 38144 18821 -27.6 -19 188906 37594 19493 -29.4 -22 191563 36424 21078 -31.8 -24 189226 36843 19296 -31.4 -24 186413 37246 19985 -27.6 -20 178037 38661 16972 -28.8 -25 166827 40454 16951 -21.9 -22 169362 44928 23126 -13.9 -17 174330 48441 24890 -8 -9 187069 48140 21042 -2.8 -11 186530 45998 20842 -3.3 -13 158114 47369 23904 -1.3 -11 151001 49554 22578 0.5 -9 159612 47510 25452 -1.9 -7 161914 44873 21928 2 -3 164182 45344 25227 1.7 -3 169701 42413 26210 1.9 -6 171297 36912 17436 0.1 -4 166444 43452 21258 2.4 -8 173476 42142 25638 2.3 -1 182516 44382 23516 4.7 -2 202388 43636 23891 5 -2 202300 44167 24617 7.2 -1 1 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 23528.0020280154 -0.0317774202545951NWWZ[t] + 1.10395761931889ONTVANGJOB[t] + 140.222922862401Producentenvertrouwen[t] -150.700900200537consumentenvertrouwen[t] -47.4908001085652t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)23528.00202801545710.7109094.128e-054e-05
NWWZ-0.03177742025459510.015476-2.05340.0427540.021377
ONTVANGJOB1.103957619318890.1360018.117300
Producentenvertrouwen140.22292286240167.1064342.08960.0393020.019651
consumentenvertrouwen-150.700900200537101.88884-1.47910.1423950.071198
t-47.490800108565224.483546-1.93970.0553510.027676


Multiple Linear Regression - Regression Statistics
Multiple R0.927803902499586
R-squared0.86082008149346
Adjusted R-squared0.853571127404578
F-TEST (value)118.750935781715
F-TEST (DF numerator)5
F-TEST (DF denominator)96
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3249.86402713710
Sum Squared Residuals1013915154.70846


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14416446087.2554436479-1923.25544364793
24039942439.1719852908-2040.17198529084
33676339993.4916716914-3230.4916716914
43790346593.9504415375-8690.95044153753
53553238892.9696366348-3360.96963663479
63553339024.4793599409-3491.47935994087
73211034393.7873661857-2283.7873661857
83337433681.4562599146-307.456259914567
93546236532.163483966-1070.16348396598
103350835573.1459719896-2065.14597198964
113608033012.51975712973067.48024287033
123456032527.52234019042032.47765980964
133873737808.0556011077928.944398892288
143814436723.12255804821420.87744195176
153759437525.006421412768.9935785873161
163642439107.7226278394-2683.72262783941
173684337223.3323503845-380.332350384535
183724637955.9017392378-709.901739237833
193866135433.59129774183227.40870225825
204045436234.57773583054219.42226416955
214492843291.74835656711636.25164343286
224844144655.47661639613785.52338360387
234814040985.70533981087154.29466018925
244599840965.84138432555032.15861567449
254736945180.70003384972188.29996615032
264955443846.39368154655707.60631845355
274751046060.10489827721449.89510172278
284487341993.1816246242879.81837537597
294534445473.5089446523-129.508944652331
304241346815.9761871232-4402.97618712321
313691236477.841410831434.158589169004
324345241729.20877564041722.79122435956
334214245224.6649352283-3082.66493522829
344438243034.54410289381347.45589710620
354363642811.6233915892824.376608410775
364416743726.1917661853440.808233814679
374442346366.7322901354-1943.73229013543
384286842824.306612802443.693387197598
394390842822.35229376191085.64770623808
404201345893.0234385498-3880.02343854980
413884641007.4500441845-2161.45004418453
423508741927.1372788408-6840.13727884085
433302635326.2788252252-2300.27882522516
443464635963.5198438218-1317.51984382180
453713538120.5585392369-985.558539236895
463798537578.6401576255406.359842374506
474312135855.9559681227265.04403187797
484372235139.85064358598582.1493564141
494363038779.76175803354850.23824196649
504223440478.17030240911755.82969759092
513935134097.40291777615253.59708222391
523932739742.6652892035-415.665289203483
533570435907.2804870296-203.280487029623
543046632331.8691788758-1865.86917887578
552815529393.7899634899-1238.78996348994
562925730711.2453491812-1454.24534918123
572999830480.3019198889-482.301919888932
583252932194.5574004374334.442599562567
593478729040.40076628885746.59923371125
603385527194.39615177126660.6038482288
613455634446.0359688073109.964031192695
623134830707.9973538147640.002646185345
633080530610.9315681556194.068431844388
642835331080.0161134401-2727.01611344010
652451427513.6297827162-2999.62978271625
662110626189.3372343835-5083.33723438346
672134623567.8065869733-2221.80658697325
682333525805.1543469301-2470.1543469301
692437926415.0709065207-2036.07090652067
702629027377.5601100558-1087.56011005576
713008425261.83741788734822.16258211265
722942925654.07227680523774.92772319483
733063232076.2805090721-1444.28050907215
742734927230.5143066849118.485693315118
752726427875.4736928243-611.473692824317
762747430145.0160761985-2671.01607619847
772448226346.3226611733-1864.32266117326
782145325960.4469081404-4507.44690814039
791878822528.5683204203-3740.56832042035
801928223100.5929810468-3818.5929810468
811971324852.9849109702-5139.98491097016
822191724508.0280029622-2591.02800296218
832381222287.30683678871524.69316321128
842378522090.99322236781694.00677763219
852469624652.792299003843.2077009962149
862456223980.7029571676581.297042832432
872358023725.4104716506-145.410471650557
882493926262.1921329074-1323.19213290739
892389926732.5469681062-2833.54696810618
902145424595.0873108153-3141.08731081530
911976121782.8950455014-2021.89504550135
921981521888.4682938557-2073.46829385568
932078024756.4945343301-3976.49453433011
942346223450.879277815011.1207221849578
952500520485.16655837844519.83344162164
962472520001.14894969634723.85105030368
972619823383.05400509872814.94599490130
982754324225.19636124493317.80363875514
992647124524.28053472401946.71946527598
1002655824629.0044727791928.99552722100
1012531724021.07835735121295.92164264883
1022289623040.0404548957-144.040454895722


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.007738192711768820.01547638542353760.992261807288231
100.009024817515370630.01804963503074130.99097518248463
110.05416126735542610.1083225347108520.945838732644574
120.02245778370481290.04491556740962580.977542216295187
130.01692015250654990.03384030501309980.98307984749345
140.007825067885637710.01565013577127540.992174932114362
150.003490145531792590.006980291063585170.996509854468207
160.003122728985087410.006245457970174820.996877271014913
170.001396625520348290.002793251040696580.998603374479652
180.001517011842268280.003034023684536560.998482988157732
190.004926485712514750.00985297142502950.995073514287485
200.008929348391827260.01785869678365450.991070651608173
210.008187842400968120.01637568480193620.991812157599032
220.005633367470988990.01126673494197800.99436663252901
230.01044031855644050.02088063711288100.98955968144356
240.006907691360523840.01381538272104770.993092308639476
250.009610519138316070.01922103827663210.990389480861684
260.008747194164057230.01749438832811450.991252805835943
270.01606081738200260.03212163476400520.983939182617997
280.02879022965176860.05758045930353710.971209770348231
290.04967441509943340.09934883019886680.950325584900567
300.1585466605973630.3170933211947260.841453339402637
310.2565426605817890.5130853211635770.743457339418211
320.2520398745454870.5040797490909740.747960125454513
330.2626071608106490.5252143216212990.73739283918935
340.2273320051337130.4546640102674270.772667994866287
350.1907984193776130.3815968387552260.809201580622387
360.1520050459290410.3040100918580810.84799495407096
370.1413813689926670.2827627379853350.858618631007333
380.1236827137379050.2473654274758100.876317286262095
390.1042991501238650.2085983002477300.895700849876135
400.1152051958674140.2304103917348280.884794804132586
410.1086400799033570.2172801598067140.891359920096643
420.2586024361258320.5172048722516640.741397563874168
430.2657576804634780.5315153609269560.734242319536522
440.2233434298790650.4466868597581300.776656570120935
450.194009263375340.388018526750680.80599073662466
460.2046039021448940.4092078042897880.795396097855106
470.4818411430964860.9636822861929720.518158856903514
480.744148237087940.5117035258241190.255851762912059
490.7718339280538390.4563321438923220.228166071946161
500.7400604657590560.5198790684818880.259939534240944
510.8409257385618130.3181485228763740.159074261438187
520.8205669318321310.3588661363357380.179433068167869
530.7982976684538410.4034046630923180.201702331546159
540.8020147152045660.3959705695908690.197985284795434
550.8023395946253270.3953208107493470.197660405374673
560.8008737969369430.3982524061261140.199126203063057
570.7693824662016940.4612350675966120.230617533798306
580.7315932696790030.5368134606419940.268406730320997
590.801529056480420.396941887039160.19847094351958
600.9343292585998080.1313414828003850.0656707414001924
610.9368949433734170.1262101132531670.0631050566265833
620.9577412710077520.08451745798449520.0422587289922476
630.965441825610290.06911634877942030.0345581743897101
640.959992550027690.08001489994461770.0400074499723088
650.9553302111977950.08933957760441080.0446697888022054
660.9702290834144020.05954183317119640.0297709165855982
670.9627690637090110.0744618725819770.0372309362909885
680.9538583742339380.09228325153212370.0461416257660618
690.9421070025134270.1157859949731460.0578929974865729
700.922828911588320.1543421768233580.0771710884116791
710.9471029148223570.1057941703552860.052897085177643
720.9751636749097020.04967265018059660.0248363250902983
730.9688571285627150.06228574287457050.0311428714372853
740.9760846240835850.04783075183283090.0239153759164155
750.9828121022305370.03437579553892530.0171878977694627
760.9855370264388040.02892594712239280.0144629735611964
770.9860801707882050.02783965842359110.0139198292117955
780.9802652332554560.03946953348908830.0197347667445442
790.9719340770634680.05613184587306480.0280659229365324
800.963625214026950.07274957194609950.0363747859730497
810.9614611606801560.0770776786396880.038538839319844
820.9454349785366960.1091300429266090.0545650214633045
830.9280734094626410.1438531810747180.071926590537359
840.927014389462350.1459712210753010.0729856105376506
850.907273852229370.1854522955412610.0927261477706303
860.8997230223873970.2005539552252060.100276977612603
870.9845111022896320.03097779542073580.0154888977103679
880.9958891323711530.008221735257693520.00411086762884676
890.9905864375295620.01882712494087660.00941356247043832
900.994649702771860.01070059445627910.00535029722813956
910.9899741132793280.02005177344134320.0100258867206716
920.9700484676277540.0599030647444920.029951532372246
930.9551390438422740.08972191231545250.0448609561577263


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.0705882352941176NOK
5% type I error level290.341176470588235NOK
10% type I error level440.517647058823529NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/10lijy1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/10lijy1292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/1fzmm1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/1fzmm1292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/2fzmm1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/2fzmm1292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/379l71292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/379l71292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/479l71292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/479l71292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/579l71292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/579l71292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/60i3a1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/60i3a1292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/7trkv1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/7trkv1292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/8trkv1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/8trkv1292435915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/9trkv1292435915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435844mfbb8g9q3toi140/9trkv1292435915.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by