Home » date » 2010 » Dec » 18 »

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: Sat, 18 Dec 2010 16:45:33 +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/18/t12926905932ecuaz6sy2sozw9.htm/, Retrieved Sat, 18 Dec 2010 17:43:24 +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/18/t12926905932ecuaz6sy2sozw9.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 «
31514 -9 0 8.3 1.2 27071 -13 4 8.2 1.7 29462 -18 5 8 1.8 26105 -11 -7 7.9 1.5 22397 -9 -2 7.6 1 23843 -10 1 7.6 1.6 21705 -13 3 8.3 1.5 18089 -11 -2 8.4 1.8 20764 -5 -6 8.4 1.8 25316 -15 10 8.4 1.6 17704 -6 -9 8.4 1.9 15548 -6 0 8.6 1.7 28029 -3 -3 8.9 1.6 29383 -1 -2 8.8 1.3 36438 -3 2 8.3 1.1 32034 -4 1 7.5 1.9 22679 -6 2 7.2 2.6 24319 0 -6 7.4 2.3 18004 -4 4 8.8 2.4 17537 -2 -2 9.3 2.2 20366 -2 0 9.3 2 22782 -6 4 8.7 2.9 19169 -7 1 8.2 2.6 13807 -6 -1 8.3 2.3 29743 -6 0 8.5 2.3 25591 -3 -3 8.6 2.6 29096 -2 -1 8.5 3.1 26482 -5 3 8.2 2.8 22405 -11 6 8.1 2.5 27044 -11 0 7.9 2.9 17970 -11 0 8.6 3.1 18730 -10 -1 8.7 3.1 19684 -14 4 8.7 3.2 19785 -8 -6 8.5 2.5 18479 -9 1 8.4 2.6 10698 -5 -4 8.5 2.9 31956 -1 -4 8.7 2.6 29506 -2 1 8.7 2.4 34506 -5 3 8.6 1.7 27165 -4 -1 8.5 2 26736 -6 2 8.3 2.2 23691 -2 -4 8 1.9 18157 -2 0 8.2 1.6 17328 -2 0 8.1 1.6 18205 -2 0 8.1 1.2 20995 2 -4 8 1.2 17382 1 1 7.9 1.5 9367 -8 9 7.9 1.6 31124 -1 -7 8 1.7 26551 1 -2 8 1.8 30651 -1 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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Inschrijvingen[t] = + 15316.8874709035 + 114.501933947428Consumentenvertrouwen[t] + 165.694377258375Evolutie_consumentenvertrouwen[t] -244.267372838728Totaal_Werkloosheid[t] + 80.5212962136629Algemene_index[t] + 17577.3863681636M1[t] + 14741.720068206M2[t] + 18266.4426680063M3[t] + 15324.4906635976M4[t] + 10791.1023094009M5[t] + 12224.0696155823M6[t] + 6632.16474600372M7[t] + 5502.95942190991M8[t] + 7345.2172974919M9[t] + 9767.73251289017M10[t] + 5439.17349325196M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)15316.88747090353262.832324.69441.3e-057e-06
Consumentenvertrouwen114.50193394742833.6072923.40710.0011070.000553
Evolutie_consumentenvertrouwen165.69437725837564.8264692.5560.0128290.006414
Totaal_Werkloosheid-244.267372838728375.124661-0.65120.5171360.258568
Algemene_index80.5212962136629152.7716440.52710.5998610.29993
M117577.38636816361032.41424617.025500
M214741.7200682061014.77999814.52700
M318266.44266800631007.97050918.12200
M415324.49066359761018.30403715.04900
M510791.10230940091024.90015110.528900
M612224.06961558231039.11256411.76400
M76632.164746003721008.9108486.573600
M85502.959421909911025.5699365.36581e-061e-06
M97345.21729749191014.881817.237500
M109767.732512890171008.5795259.684600
M115439.173493251961009.3015745.3891e-060


Multiple Linear Regression - Regression Statistics
Multiple R0.954492285384403
R-squared0.91105552285834
Adjusted R-squared0.891435417606504
F-TEST (value)46.434792839506
F-TEST (DF numerator)15
F-TEST (DF denominator)68
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1880.51879878566
Sum Squared Residuals240471864.775866


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13151429932.96279443511581.03720556490
22707127366.7536531121-295.753653112104
32946230541.5665646227-1079.56656462269
42610526413.0659191653-308.065919165302
52239722970.1728829001-573.172882900148
62384324834.0341646374-991.034164637401
72170519050.97295712482654.02704287516
81808917322.0292662142766.970733785765
92076419188.52123644731575.47876355271
102531623101.02288926262214.97711073745
111770416678.94449610621025.05550389382
121554812666.06266436912881.93733563089
132802930008.5393611268-1979.53936112684
142938327567.84165474231815.15834525771
153643831632.36732285784805.63267714218
163203428670.04994248523363.95005751476
172267924202.9972168533-1523.99721685328
182431924924.4112452204-605.41124522037
191800420197.520220083-2193.52022008300
201753718164.9145546717-627.914554671699
212036620322.456925527743.5430744722944
222278223168.7715044653-386.771504465301
231916918326.6047166598842.3952833402
241380712621.96127669061185.03872330945
252974330316.1885475447-573.18854754473
262559127326.6745692346-1735.67456923456
272909631361.9752428897-2265.97524288971
282648228788.4187686597-2306.41876865974
292240524065.3722909734-1660.37229097342
302704424585.23532665772458.76467334226
311797018838.4475553348-868.447555334813
321873017633.62305064621096.37694935381
331968419854.3972063517-170.397206351699
341978521299.468820069-1514.46882006898
351847918048.7473741972430.252625802799
361069812238.8393820233-1540.83938202331
373195630201.22362254471754.77637745528
382950628063.42301568891442.57698431112
393450631544.09039809792961.90960190208
402716528102.4459447511-937.445944751122
412673623902.09458824522833.90541175479
422369124848.0271896536-1157.02718965356
431815719845.8899656767-1688.88996567666
441732818741.1113788667-1413.11137886673
451820520551.1607359633-2346.16073596325
462099522793.3329154016-1798.33291540161
471738219227.3269742558-1845.32697425582
48936714091.2432231654-4724.24322316537
493112429802.65848516441321.34151483559
502655128032.5200690150-1481.52006901496
513065132015.4430472377-1364.44304723773
522585928564.0982210956-2705.09822109558
532510024560.8125624188539.187437581172
542577826167.1059983305-389.105998330505
552041820446.6635558852-28.6635558852177
561868819061.9590062893-373.959006289256
572042420844.0112349500-420.011234949954
582477623271.69891438681504.30108561315
591981419523.5462825332290.453717466804
601273812686.993159903851.0068400961842
613156631037.3237049244528.676295075651
623011127773.59692470632337.40307529368
633001931933.0999051043-1914.09990510426
643193429277.52036383212656.47963616789
652582624337.54089528911488.45910471088
662683525492.11016216831342.88983783166
672020519386.1327069098818.86729309018
681778917734.039619002854.9603809972047
692052019911.0604412365608.939558763509
702251823156.6473443714-638.647344371401
711557217702.9416611307-2130.94166113068
721150911475.332751561233.6672484387615
732544728080.1034842598-2633.10348425985
742409026172.1901135009-2082.19011350088
752778628929.4575191899-1143.45751918987
762619525958.4008400109236.599159989097
772051621620.0095633200-1104.00956331999
782275923418.0759133321-659.075913332085
791902817721.37303898571306.62696101435
801697116474.3231243091496.676875690905
812003619327.3922195236708.607780476394
822248521866.0576120433618.94238795669
831873017341.88849511711388.11150488288
841453812424.56754228662113.43245771338


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1638510605480990.3277021210961980.836148939451901
200.1933437650899430.3866875301798850.806656234910057
210.1286482863524510.2572965727049020.871351713647549
220.0927533831058610.1855067662117220.907246616894139
230.04750500124189440.09501000248378870.952494998758106
240.02736300307013830.05472600614027670.972636996929862
250.03343231351159810.06686462702319620.966567686488402
260.01948698733771680.03897397467543370.980513012662283
270.01028417015206010.02056834030412010.98971582984794
280.005357645019325620.01071529003865120.994642354980674
290.05291234745435080.1058246949087020.947087652545649
300.5962514496398130.8074971007203730.403748550360187
310.5478058385668380.9043883228663230.452194161433162
320.5506652862136160.8986694275727680.449334713786384
330.4677218790449140.9354437580898270.532278120955086
340.4048412536629330.8096825073258660.595158746337067
350.3317278063468350.6634556126936690.668272193653165
360.2947052792555070.5894105585110150.705294720744493
370.3815622462203530.7631244924407050.618437753779647
380.3727219433916180.7454438867832370.627278056608382
390.5292296681401940.9415406637196110.470770331859806
400.4532184267001070.9064368534002140.546781573299893
410.706007247609380.5879855047812420.293992752390621
420.6590643419010780.6818713161978440.340935658098922
430.6720320638020590.6559358723958820.327967936197941
440.6639151989561880.6721696020876240.336084801043812
450.7011014437854370.5977971124291260.298898556214563
460.6926213764132560.6147572471734870.307378623586744
470.6761336367451590.6477327265096820.323866363254841
480.91129401788690.1774119642261990.0887059821130996
490.9091906023085520.1816187953828960.090809397691448
500.891246093040.2175078139199990.108753906959999
510.8494010529691330.3011978940617330.150598947030867
520.9669839854903260.06603202901934730.0330160145096736
530.9581213686998370.0837572626003260.041878631300163
540.963534516193120.07293096761376070.0364654838068803
550.9710919141498020.05781617170039680.0289080858501984
560.9607477798457970.07850444030840660.0392522201542033
570.9560140508961450.08797189820770980.0439859491038549
580.9363139540843250.1273720918313490.0636860459156745
590.90414142960890.1917171407822010.0958585703911004
600.9375360022852870.1249279954294260.062463997714713
610.9012261273910880.1975477452178230.0987738726089117
620.8975394627019680.2049210745960640.102460537298032
630.9958061512865250.00838769742695090.00419384871347545
640.9972219252752080.005556149449583190.00277807472479160
650.9891200050948560.02175998981028810.0108799949051441


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0425531914893617NOK
5% type I error level60.127659574468085NOK
10% type I error level150.319148936170213NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/107sdp1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/107sdp1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/11rzd1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/11rzd1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/2t0fy1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/2t0fy1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/3t0fy1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/3t0fy1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/4t0fy1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/4t0fy1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/5t0fy1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/5t0fy1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/6msf11292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/6msf11292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/7f1wm1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/7f1wm1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/8f1wm1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/8f1wm1292690724.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/9f1wm1292690724.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926905932ecuaz6sy2sozw9/9f1wm1292690724.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