Home » date » 2010 » Dec » 18 »

*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 13:05:30 +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/t1292677576r29pkb5d4yd6v05.htm/, Retrieved Sat, 18 Dec 2010 14:06:19 +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/t1292677576r29pkb5d4yd6v05.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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Inschrijvingen[t] = + 15316.8874709035 + 114.501933947428Consumentenvertrouwen[t] + 165.694377258374Evolutie_consumentenvertrouwen[t] -244.267372838732Totaal_Werkloosheid[t] + 80.5212962136631Algemene_index[t] + 17577.3863681635M1[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.69437725837464.8264692.5560.0128290.006414
Totaal_Werkloosheid-244.267372838732375.124661-0.65120.5171360.258568
Algemene_index80.5212962136631152.7716440.52710.5998610.29993
M117577.38636816351032.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.4347928395061
F-TEST (DF numerator)15
F-TEST (DF denominator)68
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1880.51879878566
Sum Squared Residuals240471864.775865


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13151429932.96279443511581.03720556486
22707127366.7536531121-295.753653112101
32946230541.5665646227-1079.56656462271
42610526413.0659191653-308.065919165289
52239722970.1728829001-573.172882900146
62384324834.0341646374-991.034164637404
72170519050.97295712482654.02704287516
81808917322.0292662142766.970733785756
92076419188.52123644731575.4787635527
102531623101.02288926252214.97711073745
111770416678.94449610621025.05550389382
121554812666.06266436912881.93733563089
132802930008.5393611268-1979.53936112682
142938327567.84165474231815.15834525771
153643831632.36732285784805.63267714219
163203428670.04994248523363.95005751476
172267924202.9972168533-1523.99721685328
182431924924.4112452204-605.411245220372
191800420197.520220083-2193.52022008299
201753718164.9145546717-627.9145546717
212036620322.456925527743.5430744723003
222278223168.7715044653-386.771504465299
231916918326.6047166598842.395283340197
241380712621.96127669051185.03872330945
252974330316.1885475447-573.188547544722
262559127326.6745692346-1735.67456923457
272909631361.9752428897-2265.9752428897
282648228788.4187686597-2306.41876865975
292240524065.3722909734-1660.37229097341
302704424585.23532665772458.76467334226
311797018838.4475553348-868.447555334813
321873017633.62305064621096.37694935382
331968419854.3972063517-170.397206351698
341978521299.468820069-1514.46882006898
351847918048.7473741972430.252625802798
361069812238.8393820233-1540.83938202331
373195630201.22362254471754.77637745528
382950628063.42301568891442.57698431111
393450631544.09039809792961.90960190209
402716528102.4459447511-937.445944751128
412673623902.09458824522833.90541175479
422369124848.0271896536-1157.02718965356
431815719845.8899656767-1688.88996567666
441732818741.1113788667-1413.11137886673
451820520551.1607359632-2346.16073596325
462099522793.3329154016-1798.33291540162
471738219227.3269742558-1845.32697425582
48936714091.2432231654-4724.24322316537
493112429802.65848516441321.34151483559
502655128032.520069015-1481.52006901496
513065132015.4430472377-1364.44304723773
522585928564.0982210956-2705.09822109558
532510024560.8125624188539.18743758117
542577826167.1059983305-389.105998330503
552041820446.6635558852-28.6635558852189
561868819061.9590062893-373.959006289257
572042420844.01123495-420.011234949954
582477623271.69891438681504.30108561315
591981419523.5462825332290.453717466803
601273812686.993159903851.0068400961811
613156631037.3237049243528.676295075656
623011127773.59692470632337.40307529368
633001931933.0999051043-1914.09990510426
643193429277.52036383212656.47963616789
652582624337.54089528911488.45910471087
662683525492.11016216831342.88983783166
672020519386.1327069098818.86729309018
681778917734.039619002854.9603809972058
692052019911.0604412365608.939558763507
702251823156.6473443714-638.6473443714
711557217702.9416611307-2130.94166113068
721150911475.332751561233.6672484387603
732544728080.1034842598-2633.10348425984
742409026172.1901135009-2082.19011350087
752778628929.4575191899-1143.45751918987
762619525958.4008400109236.599159989092
772051621620.00956332-1104.00956331999
782275923418.0759133321-659.075913332084
791902817721.37303898571306.62696101435
801697116474.3231243091496.676875690907
812003619327.3922195236708.607780476394
822248521866.0576120433618.942387956692
831873017341.88849511711388.11150488288
841453812424.56754228662113.43245771338


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1638510605480970.3277021210961940.836148939451903
200.1933437650899430.3866875301798860.806656234910057
210.1286482863524510.2572965727049020.871351713647549
220.09275338310586240.1855067662117250.907246616894138
230.04750500124189460.09501000248378930.952494998758105
240.02736300307013810.05472600614027620.972636996929862
250.03343231351159830.06686462702319660.966567686488402
260.01948698733771690.03897397467543380.980513012662283
270.01028417015206010.02056834030412030.98971582984794
280.005357645019325590.01071529003865120.994642354980674
290.0529123474543510.1058246949087020.947087652545649
300.5962514496398150.807497100720370.403748550360185
310.5478058385668390.9043883228663220.452194161433161
320.5506652862136160.8986694275727670.449334713786384
330.4677218790449130.9354437580898250.532278120955087
340.4048412536629330.8096825073258650.595158746337067
350.3317278063468350.6634556126936690.668272193653165
360.2947052792555080.5894105585110160.705294720744492
370.3815622462203560.7631244924407120.618437753779644
380.3727219433916210.7454438867832410.62727805660838
390.5292296681401950.941540663719610.470770331859805
400.4532184267001060.9064368534002120.546781573299894
410.7060072476093810.5879855047812380.293992752390619
420.6590643419010760.6818713161978470.340935658098924
430.672032063802060.655935872395880.32796793619794
440.6639151989561890.6721696020876220.336084801043811
450.7011014437854350.597797112429130.298898556214565
460.6926213764132560.6147572471734880.307378623586744
470.6761336367451580.6477327265096840.323866363254842
480.9112940178869010.1774119642261970.0887059821130987
490.9091906023085520.1816187953828970.0908093976914485
500.8912460930400010.2175078139199980.108753906959999
510.8494010529691330.3011978940617330.150598947030866
520.9669839854903260.06603202901934760.0330160145096738
530.9581213686998360.0837572626003280.041878631300164
540.963534516193120.07293096761376070.0364654838068803
550.9710919141498010.05781617170039710.0289080858501985
560.9607477798457960.07850444030840710.0392522201542036
570.9560140508961460.08797189820770880.0439859491038544
580.9363139540843260.1273720918313490.0636860459156743
590.90414142960890.1917171407821990.0958585703910997
600.9375360022852860.1249279954294280.0624639977147142
610.9012261273910880.1975477452178240.098773872608912
620.8975394627019680.2049210745960640.102460537298032
630.9958061512865240.00838769742695110.00419384871347555
640.9972219252752080.005556149449583360.00277807472479168
650.9891200050948560.02175998981028770.0108799949051438


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/t1292677576r29pkb5d4yd6v05/10j3tf1292677520.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677576r29pkb5d4yd6v05/10j3tf1292677520.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677576r29pkb5d4yd6v05/1u2wl1292677520.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677576r29pkb5d4yd6v05/1u2wl1292677520.ps (open in new window)


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


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


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


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


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


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


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


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