Home » date » 2010 » Dec » 15 »

Multiple Linear Regression - 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:55:34 +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/t1292435668pvlb75la6nwa3yz.htm/, Retrieved Wed, 15 Dec 2010 18:54:38 +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/t1292435668pvlb75la6nwa3yz.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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 15330.8046235123 -0.0240997112467816NWWZ[t] + 1.31718649571725ONTVANGJOB[t] + 138.518556033151Producentenvertrouwen[t] -238.329374483006consumentenvertrouwen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)15330.80462351233895.2834673.93570.0001567.8e-05
NWWZ-0.02409971124678160.015172-1.58840.115450.057725
ONTVANGJOB1.317186495717250.08120716.2200
Producentenvertrouwen138.51855603315168.0494482.03560.0445220.022261
consumentenvertrouwen-238.32937448300692.617326-2.57330.0115890.005794


Multiple Linear Regression - Regression Statistics
Multiple R0.92485962236526
R-squared0.85536532108161
Adjusted R-squared0.849401004425181
F-TEST (value)143.413800834951
F-TEST (DF numerator)4
F-TEST (DF denominator)97
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3295.81532670078
Sum Squared Residuals1053652670.76843


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14416445795.634406502-1631.63440650202
24039941613.8144666592-1214.81446665921
33676338477.2831441577-1714.28314415773
43790346786.4424246534-8883.44242465337
53553237963.1648832197-2431.16488321968
63553338200.6677204323-2667.66772043231
73211032841.7858354475-731.785835447474
83337431561.71572702821812.28427297177
93546235326.1976992218135.802300778181
103350834383.5168327868-875.516832786751
113608031572.95128957574507.0487104243
123456031487.9741376073072.025862393
133873737536.73988424031200.26011575967
143814436344.05083761121799.94916238883
153759437624.9416229956-30.9416229955946
163642439792.8635004112-3368.86350041118
173684337557.36561264-714.365612640035
183724638105.7526109204-859.752610920367
193866135364.35348590263296.64651409741
204045435847.64024574874606.35975425133
214492843836.67566464231091.32433535773
224844144951.0897623453489.91023765496
234814040772.50514559077367.4948544093
244599840929.45706175875068.54293824129
254736945447.87786953381921.12213046624
264955443645.38447420475908.61552579529
274751046414.35256590451095.64743409553
284487341304.01469030413568.98530969594
294534445553.1992277576-209.199227757620
304241347457.6790813323-5044.67908133234
313691235136.22947893361775.77052106636
324345241559.38234105391892.61765894613
334214245477.0325458237-3335.0325458237
344438243034.87532120341347.12467879664
354363643091.4663620112544.533637988771
364416744116.275981281650.7240187184041
374442346695.893540059-2272.89354005897
384286842505.9577881075362.042211892463
394390842662.38302932421245.6169706758
404201346694.7916205058-4681.79162050578
413884640878.2487076894-2032.2487076894
423508742234.7420759862-7147.74207598616
433302634802.4158819743-1776.41588197429
443464635173.2136862997-527.213686299735
453713537860.6962398456-725.696239845623
463798537846.1273021295138.872697870462
474312135957.51146016827163.48853983182
484372235117.08482344028604.9151765598
494363039162.01129520854467.98870479149
504223441497.8917245258736.108275474193
513935133880.19864408285470.80135591722
523932740758.7463981821-1431.74639818209
533570436187.9330116257-483.933011625743
543046631965.6397188304-1499.6397188304
552815528935.4141891399-780.414189139894
562925730788.6235758032-1531.62357580315
572999830703.9810441188-705.981044118816
583252933318.4629076466-789.462907646628
593478729727.85475877365059.14524122644
603385527527.90065403946327.09934596063
613455635705.6122547508-1149.61225475076
623134831284.717295044363.2827049556657
633080530905.4428387911-100.442838791059
642835331344.5720480388-2991.57204803882
652451427231.0463571610-2717.04635716104
662110625898.9179292679-4792.91792926789
672134622895.2790393013-1549.27903930126
682333525574.9397873113-2239.93978731130
692437926396.4882549267-2017.48825492674
702629027334.4953048007-1044.49530480067
713008425124.44478986484959.55521013518
722942925431.13513470443997.86486529561
733063232491.8869788746-1859.88697887465
742734927059.062333314289.937666686021
752726427858.2518935449-594.251893544895
762747430690.9973020239-3216.99730202385
772448226181.0535969657-1699.05359696573
782145325956.8440632864-4503.84406328642
791878822043.6069029253-3255.60690292527
801928222743.5180583278-3461.51805832778
811971325622.2881523186-5909.28815231857
822191724849.2847204037-2932.28472040374
832381222923.7683216576888.231678342392
842378522801.813827183983.186172817004
852469625218.5979234613-522.597923461317
862456224255.3386828485306.66131715145
872358024227.4332020364-647.433202036437
882493927692.5676993234-2753.56769932343
892389927957.2684589690-4058.26845896896
902145425307.5826567359-3853.58265673588
911976121846.3129309042-2085.31293090419
921981521742.9949124308-1927.99491243084
932078025220.807155982-4440.80715598202
942346223774.7741293678-312.774129367844
952500520480.76226747894524.23773252114
962472519667.53234106155057.46765893849
972619823113.61191596293084.38808403709
982754324098.33735991523444.6626400848
992647124655.1910363961815.80896360401
1002655824822.2206467421735.779353258
1012531724351.9843872297965.01561277028
1022289623403.1370894171-507.137089417064


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.1560078190749390.3120156381498780.843992180925061
90.1207862813131530.2415725626263050.879213718686847
100.06782521541718580.1356504308343720.932174784582814
110.1408854698473990.2817709396947990.8591145301526
120.08782147989285830.1756429597857170.912178520107142
130.04738497942153330.09476995884306660.952615020578467
140.02612680035402990.05225360070805980.97387319964597
150.01412408573164790.02824817146329580.985875914268352
160.01317705293997340.02635410587994680.986822947060027
170.006483986065487180.01296797213097440.993516013934513
180.003391908560346050.00678381712069210.996608091439654
190.003979994412886180.007959988825772360.996020005587114
200.003733346391223250.00746669278244650.996266653608777
210.003526876322657990.007053752645315990.996473123677342
220.005738983893381750.01147796778676350.994261016106618
230.07021144542625020.1404228908525000.92978855457375
240.1072259578276470.2144519156552940.892774042172353
250.09616632553592920.1923326510718580.903833674464071
260.1013964426622060.2027928853244110.898603557337794
270.0973796090589990.1947592181179980.902620390941001
280.1181209942506510.2362419885013010.88187900574935
290.1190972577898620.2381945155797230.880902742210138
300.1791394215335790.3582788430671590.82086057846642
310.2604001848908930.5208003697817860.739599815109107
320.245026785047250.49005357009450.75497321495275
330.2414885565525810.4829771131051610.75851144344742
340.2106683762459250.421336752491850.789331623754075
350.1940544590914020.3881089181828040.805945540908598
360.1690450885010600.3380901770021210.83095491149894
370.1520573195513660.3041146391027310.847942680448635
380.1298345145413260.2596690290826520.870165485458674
390.1060801950863690.2121603901727380.893919804913631
400.1072616438030380.2145232876060760.892738356196962
410.09736970560046650.1947394112009330.902630294399534
420.2381973271355190.4763946542710380.761802672864481
430.2700201615073180.5400403230146360.729979838492682
440.2371211065574190.4742422131148390.76287889344258
450.2057342512917140.4114685025834280.794265748708286
460.1991152546484850.3982305092969690.800884745351515
470.4879408007511180.9758816015022350.512059199248882
480.7844107068786570.4311785862426860.215589293121343
490.8245054958059220.3509890083881550.175494504194078
500.8000851182433860.3998297635132290.199914881756614
510.8854547145010390.2290905709979220.114545285498961
520.8611895834077270.2776208331845450.138810416592273
530.833945434693740.3321091306125190.166054565306259
540.827168301684590.3456633966308180.172831698315409
550.817030484344080.3659390313118390.182969515655920
560.8060797688876790.3878404622246420.193920231112321
570.7719290797060370.4561418405879260.228070920293963
580.736586433320210.526827133359580.26341356667979
590.813412308939270.3731753821214610.186587691060731
600.9380611842408020.1238776315183960.061938815759198
610.9397316810375760.1205366379248470.0602683189624237
620.9528890587343050.09422188253139030.0471109412656951
630.9516776041782930.0966447916434150.0483223958217075
640.944166431921510.1116671361569780.055833568078489
650.9431305285184650.1137389429630700.0568694714815349
660.9673774170090540.06524516598189170.0326225829909458
670.9632645123000390.07347097539992250.0367354876999613
680.9563812277888690.08723754442226180.0436187722111309
690.9455670305227590.1088659389544820.0544329694772411
700.9275674817024640.1448650365950710.0724325182975357
710.9528253376919840.09434932461603280.0471746623080164
720.9802624254228280.03947514915434350.0197375745771717
730.9752523451332180.04949530973356340.0247476548667817
740.9800010821439180.03999783571216490.0199989178560825
750.983629366760690.03274126647861840.0163706332393092
760.985597471760540.02880505647892180.0144025282394609
770.9811444892947750.03771102141045020.0188555107052251
780.9745744509818330.05085109803633470.0254255490181674
790.9725027569338330.05499448613233420.0274972430661671
800.9744048247265370.05119035054692620.0255951752734631
810.9760685730230960.04786285395380830.0239314269769041
820.9670327113784560.0659345772430870.0329672886215435
830.9553120401357140.08937591972857210.0446879598642861
840.9544862485245860.09102750295082760.0455137514754138
850.9367095374102350.126580925179530.063290462589765
860.9106099495546720.1787801008906570.0893900504453283
870.8881481593813220.2237036812373570.111851840618678
880.9597907349410480.08041853011790390.0402092650589519
890.9775964490808540.04480710183829210.0224035509191461
900.9895413460938360.02091730781232690.0104586539061635
910.989122000439310.02175599912137870.0108779995606893
920.9856987775497260.02860244490054830.0143012224502742
930.988536799160370.02292640167925890.0114632008396294
940.9839629786892770.03207404262144600.0160370213107230


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.0459770114942529NOK
5% type I error level210.241379310344828NOK
10% type I error level360.413793103448276NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/10vtub1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/10vtub1292435725.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/17sfh1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/17sfh1292435725.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/20jwk1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/20jwk1292435725.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/30jwk1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/30jwk1292435725.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/40jwk1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/40jwk1292435725.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/5asen1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/5asen1292435725.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/6asen1292435725.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292435668pvlb75la6nwa3yz/6asen1292435725.ps (open in new window)


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


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


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


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