Home » date » 2010 » Dec » 12 »

*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: Sun, 12 Dec 2010 19:30:14 +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/12/t1292182139mkmu2absc8nxzf7.htm/, Retrieved Sun, 12 Dec 2010 20:29:02 +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/12/t1292182139mkmu2absc8nxzf7.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 «
29462 27071 31514 26105 29462 27071 22397 26105 29462 23843 22397 26105 21705 23843 22397 18089 21705 23843 20764 18089 21705 25316 20764 18089 17704 25316 20764 15548 17704 25316 28029 15548 17704 29383 28029 15548 36438 29383 28029 32034 36438 29383 22679 32034 36438 24319 22679 32034 18004 24319 22679 17537 18004 24319 20366 17537 18004 22782 20366 17537 19169 22782 20366 13807 19169 22782 29743 13807 19169 25591 29743 13807 29096 25591 29743 26482 29096 25591 22405 26482 29096 27044 22405 26482 17970 27044 22405 18730 17970 27044 19684 18730 17970 19785 19684 18730 18479 19785 19684 10698 18479 19785 31956 10698 18479 29506 31956 10698 34506 29506 31956 27165 34506 29506 26736 27165 34506 23691 26736 27165 18157 23691 26736 17328 18157 23691 18205 17328 18157 20995 18205 17328 17382 20995 18205 9367 17382 20995 31124 9367 17382 26551 31124 9367 30651 26551 31124 25859 30651 26551 25100 25859 30651 25778 25100 25859 20418 25778 25100 18688 20418 25778 2 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
X[t] = + 15346.807084182 + 0.289096682910106Y_1[t] + 0.27664390031443Y_2[t] + 149.900108370174M1[t] -3544.55214943836M2[t] -8210.6550195411M3[t] -4712.60659211193M4[t] -9776.45674052903M5[t] -9728.54466247162M6[t] -6124.88659935529M7[t] -3321.58788455124M8[t] -9310.67591569469M9[t] -14255.1507298011M10[t] + 5343.75696282205M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)15346.8070841823027.533765.06913e-061e-06
Y_10.2890966829101060.1090672.65060.0097250.004863
Y_20.276643900314430.1084962.54980.0127380.006369
M1149.9001083701742189.4949490.06850.9455920.472796
M2-3544.552149438361814.798347-1.95310.054390.027195
M3-8210.65501954112325.469822-3.53080.0006990.00035
M4-4712.606592111932254.619156-2.09020.0398580.019929
M5-9776.456740529031777.365147-5.500500
M6-9728.544662471622295.267893-4.23856.1e-053.1e-05
M7-6124.886599355291936.716249-3.16250.0022290.001114
M8-3321.587884551241717.701493-1.93370.0567730.028386
M9-9310.675915694691646.975538-5.653200
M10-14255.15072980112197.023644-6.488400
M115343.756962822052374.2024532.25080.0272170.013608


Multiple Linear Regression - Regression Statistics
Multiple R0.948917019856188
R-squared0.900443510572749
Adjusted R-squared0.883850762334874
F-TEST (value)54.2672918110916
F-TEST (DF numerator)13
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1936.43101832706
Sum Squared Residuals292481676.921655


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12946232040.9993701206-2578.99937012064
22610527808.6484320532-1703.64843205316
32239722833.503563073-436.503563073006
42384324330.8879169159-487.887916915945
52170518659.2759896213045.72401037905
61808918489.1264394712-400.126439471226
72076420455.9462383124308.053761687636
82531623032.2342363642283.76576363604
91770419099.1367391684-1395.13673916842
101554813213.34100898162334.65899101844
112802930083.1428840571-2054.14288405709
122938327751.15737155821631.84262844184
133643831745.2869084134692.71309158698
143203430464.9875895611569.01241043898
152267926477.4256446405-3798.42564464049
162431926052.6348664609-1733.63486646085
171800418874.8995905748-870.899590574837
181753717550.8621125706-13.8621125705934
192036619272.50579428231093.49420571772
202278222764.466323592217.5336764078221
211916918256.4614723491912.538527650936
221380712935.8520060481871.1479939519
232974329985.1088730712-242.108873071237
242559127765.0320556187-2174.03205561866
252909631123.1999319568-2027.19993195683
262648227293.4060736427-811.406073642702
272240522841.241345015-436.241345015035
282704424437.49544079782606.50455920223
291797019586.8876228187-1616.88762281872
301873018294.8874537085435.112546291524
311968419607.992244383376.0077556166566
321978522897.3385589226-3112.3385589226
331847917201.3675736531277.63242634697
341069811907.2735255978-1209.27352559778
353195628895.42299468683060.57700531324
362950627544.71712882121961.28287117885
373450632867.22639694571638.77360305427
382716529940.4799979174-2775.47999791737
392673624535.33788014372200.66211985629
402369125878.5209583962-2187.52095839619
411815719815.6911772829-1658.69117728294
421732817421.3615356584-93.3615356583782
431820519254.4111043022-1049.41110430218
442099522081.9098166577-1086.90981665772
451738217142.0182314092239.981768590783
46936711924.8735838259-2557.87358382585
473112428207.15695108852916.84304891152
482655126935.9756573214-384.975657321442
493065131782.7779738848-1131.77797388476
502585928008.5295598698-2149.52955986977
512510023091.3153765512008.68462344902
522577825044.2618513446733.738148655385
532041819966.4465336019451.553466398084
541868818652.364955674335.6350443256525
552042420273.0744516708150.925548329155
562477623099.65106046291676.34893953713
571981418848.96560429965.03439570995
581273813673.9473037521-935.947303752092
593156629854.49983474311711.50016525686
603011127996.32297912772114.67702087235
613001932934.2387689837-2915.23876898372
623193428810.672741393123.32725861004
632582624672.73878023111153.26121976885
642683526934.7577375475-99.7577375475158
652020520472.8651990662-267.865199066176
661778918883.1999648468-1094.19996484684
672052019954.2513829677565.748617032315
682251822878.7014756396-360.701475639571
691557218222.7431087092-2650.74310870922
701150911822.9372479374-313.937247937439
712544728325.6765863128-2878.67658631281
722409025887.3450229143-1797.34502291428
732778629500.803615158-1714.80361515797
742619526499.4469246585-304.446924658505
752051622395.8670876079-1879.86708760793
762275923811.9950073903-1052.99500739034
771902817825.5280088551202.47199114504
781697117415.33263138-444.332631380031
792003619392.1604256771643.839574322866
802248522512.4839706539-27.4839706538754
811873018079.307270421650.692729579
821453812726.77532385721811.22467614282
832756130074.9918760405-2513.99187604049
842598527336.4497846387-1351.44978463865
853467030633.46703453734036.53296546267
863206629013.82868090753052.17131909248
872718625997.57032273771188.4296772623
882958627364.44622114682221.55377885323
892135921644.4058781795-285.405878179502
902155319977.86490669011575.1350933099
911957321361.6583584042-1788.65835840418
922425623646.2145577072609.785442292785


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.8727795882066980.2544408235866030.127220411793302
180.8546674029320530.2906651941358930.145332597067947
190.7903197921960510.4193604156078980.209680207803949
200.7539952885759880.4920094228480250.246004711424012
210.7586261618475820.4827476763048360.241373838152418
220.777851724522240.4442965509555190.22214827547776
230.768278632399110.4634427352017790.23172136760089
240.8548243267128670.2903513465742660.145175673287133
250.8546658752570140.2906682494859720.145334124742986
260.8045565072758480.3908869854483030.195443492724152
270.7481330471058610.5037339057882790.251866952894139
280.7643478605306910.4713042789386170.235652139469309
290.7862903295058860.4274193409882290.213709670494114
300.7510180555740370.4979638888519260.248981944425963
310.6980587607781410.6038824784437180.301941239221859
320.7805906617848160.4388186764303690.219409338215184
330.7440283253955680.5119433492088650.255971674604432
340.7799354317275070.4401291365449860.220064568272493
350.8426342915805080.3147314168389850.157365708419492
360.828801654551730.342396690896540.17119834544827
370.8151929663121050.369614067375790.184807033687895
380.8468701730792040.3062596538415910.153129826920796
390.876721789865370.2465564202692620.123278210134631
400.8739408634023430.2521182731953140.126059136597657
410.8572764110207670.2854471779584660.142723588979233
420.8138963084708070.3722073830583860.186103691529193
430.7796407239103720.4407185521792550.220359276089628
440.7409801903851940.5180396192296120.259019809614806
450.6854689758544040.6290620482911930.314531024145596
460.7241068968824150.5517862062351710.275893103117585
470.7988971953909730.4022056092180530.201102804609027
480.7500356845541440.4999286308917120.249964315445856
490.7117099498567260.5765801002865480.288290050143274
500.7768499434980160.4463001130039680.223150056501984
510.780373883125360.4392522337492810.219626116874641
520.729993312650020.5400133746999610.270006687349981
530.671798015617850.65640396876430.32820198438215
540.6029745097528460.7940509804943090.397025490247154
550.5312213962351420.9375572075297160.468778603764858
560.5059951001471010.9880097997057990.494004899852899
570.4587845983774080.9175691967548150.541215401622592
580.4236197349485480.8472394698970960.576380265051452
590.5279783187700180.9440433624599650.472021681229982
600.5595573709705120.8808852580589750.440442629029488
610.7991859338080270.4016281323839470.200814066191973
620.8129532986871260.3740934026257480.187046701312874
630.7689291069727220.4621417860545570.231070893027278
640.7185815668753180.5628368662493640.281418433124682
650.6529594216245930.6940811567508130.347040578375407
660.6096833759572440.7806332480855130.390316624042756
670.5448627376276280.9102745247447440.455137262372372
680.4527511122613410.9055022245226820.547248887738659
690.5121329830489840.9757340339020330.487867016951016
700.4376915155784090.8753830311568180.562308484421591
710.3807506825877490.7615013651754990.619249317412251
720.2936381300298980.5872762600597960.706361869970102
730.5383018673428460.9233962653143070.461698132657154
740.5701320042969370.8597359914061270.429867995703063
750.4991607504514480.9983215009028960.500839249548552


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/104qr91292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/104qr91292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/1c6ds1292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/1c6ds1292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/2ngvd1292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/2ngvd1292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/3qyt01292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/3qyt01292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/4qyt01292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/4qyt01292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/5qyt01292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/5qyt01292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/6jpa31292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/6jpa31292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/7ch961292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/7ch961292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/84qr91292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/84qr91292182204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/94qr91292182204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182139mkmu2absc8nxzf7/94qr91292182204.ps (open in new window)


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