Home » date » 2008 » Dec » 15 »

Investeringsgoederen met seizoenale trend

*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: Mon, 15 Dec 2008 00:45:06 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c.htm/, Retrieved Mon, 15 Dec 2008 08:46:07 +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/2008/Dec/15/t122932716756q6cughqn0sk8c.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
97.7 0 101.5 0 119.6 0 108.1 0 117.8 0 125.5 0 89.2 0 92.3 0 104.6 0 122.8 0 96.0 0 94.6 0 93.3 0 101.1 0 114.2 0 104.7 0 113.3 0 118.2 0 83.6 0 73.9 0 99.5 0 97.7 0 103.0 0 106.3 0 92.2 0 101.8 0 122.8 0 111.8 0 106.3 0 121.5 0 81.9 0 85.4 0 110.9 0 117.3 0 106.3 0 105.5 0 101.3 0 105.9 0 126.3 0 111.9 0 108.9 0 127.2 0 94.2 0 85.7 0 116.2 0 107.2 0 110.6 0 112.0 0 104.5 0 112.0 0 132.8 0 110.8 0 128.7 0 136.8 0 94.9 0 88.8 0 123.2 0 125.3 0 122.7 0 125.7 0 116.3 0 118.7 0 142.0 0 127.9 0 131.9 0 152.3 0 110.8 1 99.1 1 135.0 1 133.2 1 131.0 1 133.9 1 119.9 1 136.9 1 148.9 1 145.1 1 142.4 1 159.6 1 120.7 1 109.0 1 142.0 1
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 108.853592814371 + 24.8784431137725X[t] -8.80765611633876M1[t] -1.27908468776732M2[t] + 17.1066295979470M3[t] + 4.77805816937554M4[t] + 8.92091531223268M5[t] + 22.0352010265184M6[t] -19.4902908468777M7[t] -25.3617194183062M8[t] + 2.80970915312233M9[t] + 4.25M10[t] -1.40000000000000M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)108.8535928143713.61527830.109300
X24.87844311377252.5463039.770400
M1-8.807656116338764.893106-1.80.0762940.038147
M2-1.279084687767324.893106-0.26140.794570.397285
M317.10662959794704.8931063.49610.0008360.000418
M44.778058169375544.8931060.97650.3322840.166142
M58.920915312232684.8931061.82320.0726750.036337
M622.03520102651844.8931064.50332.7e-051.3e-05
M7-19.49029084687774.902112-3.97590.0001728.6e-05
M8-25.36171941830624.902112-5.17362e-061e-06
M92.809709153122334.9021120.57320.5684250.284212
M104.255.0774270.8370.4055030.202752
M11-1.400000000000005.077427-0.27570.7835910.391796


Multiple Linear Regression - Regression Statistics
Multiple R0.887443067897231
R-squared0.78755519875885
Adjusted R-squared0.750064939716294
F-TEST (value)21.0069287028634
F-TEST (DF numerator)12
F-TEST (DF denominator)68
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.79436068323905
Sum Squared Residuals5259.17302822926


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197.7100.045936698033-2.34593669803259
2101.5107.574508126604-6.07450812660396
3119.6125.960222412318-6.36022241231822
4108.1113.631650983747-5.5316509837468
5117.8117.7745081266040.0254918733960562
6125.5130.888793840890-5.38879384088965
789.289.3633019674936-0.16330196749358
892.383.4918733960658.80812660393498
9104.6111.663301967494-7.06330196749359
10122.8113.1035928143719.69640718562875
1196107.453592814371-11.4535928143713
1294.6108.853592814371-14.2535928143713
1393.3100.045936698032-6.7459366980325
14101.1107.574508126604-6.47450812660394
15114.2125.960222412318-11.7602224123182
16104.7113.631650983747-8.9316509837468
17113.3117.774508126604-4.47450812660394
18118.2130.888793840890-12.6887938408897
1983.689.3633019674936-5.76330196749359
2073.983.491873396065-9.591873396065
2199.5111.663301967494-12.1633019674936
2297.7113.103592814371-15.4035928143713
23103107.453592814371-4.45359281437126
24106.3108.853592814371-2.55359281437126
2592.2100.045936698032-7.84593669803249
26101.8107.574508126604-5.77450812660393
27122.8125.960222412318-3.16022241231823
28111.8113.631650983747-1.83165098374680
29106.3117.774508126604-11.4745081266039
30121.5130.888793840890-9.38879384088965
3181.989.3633019674936-7.46330196749358
3285.483.4918733960651.90812660393499
33110.9111.663301967494-0.76330196749358
34117.3113.1035928143714.19640718562874
35106.3107.453592814371-1.15359281437126
36105.5108.853592814371-3.35359281437126
37101.3100.0459366980321.25406330196751
38105.9107.574508126604-1.67450812660393
39126.3125.9602224123180.339777587681775
40111.9113.631650983747-1.73165098374679
41108.9117.774508126604-8.87450812660393
42127.2130.888793840890-3.68879384088965
4394.289.36330196749364.83669803250642
4485.783.4918733960652.20812660393499
45116.2111.6633019674944.53669803250641
46107.2113.103592814371-5.90359281437125
47110.6107.4535928143713.14640718562874
48112108.8535928143713.14640718562874
49104.5100.0459366980324.45406330196751
50112107.5745081266044.42549187339607
51132.8125.9602224123186.83977758768179
52110.8113.631650983747-2.83165098374680
53128.7117.77450812660410.9254918733961
54136.8130.8887938408905.91120615911036
5594.989.36330196749365.53669803250642
5688.883.4918733960655.30812660393499
57123.2111.66330196749411.5366980325064
58125.3113.10359281437112.1964071856287
59122.7107.45359281437115.2464071856288
60125.7108.85359281437116.8464071856287
61116.3100.04593669803216.2540633019675
62118.7107.57450812660411.1254918733961
63142125.96022241231816.0397775876818
64127.9113.63165098374714.2683490162532
65131.9117.77450812660414.1254918733961
66152.3130.88879384089021.4112061591104
67110.8114.241745081266-3.44174508126605
6899.1108.370316509837-9.27031650983747
69135136.541745081266-1.54174508126604
70133.2137.982035928144-4.78203592814372
71131132.332035928144-1.33203592814371
72133.9133.7320359281440.167964071856294
73119.9124.924379811805-5.02437981180494
74136.9132.4529512403764.44704875962362
75148.9150.838665526091-1.93866552609067
76145.1138.5100940975196.58990590248075
77142.4142.652951240376-0.252951240376385
78159.6155.7672369546623.83276304533788
79120.7114.2417450812666.45825491873396
80109108.3703165098370.629683490162526
81142136.5417450812665.45825491873396


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05910135892186840.1182027178437370.940898641078132
170.02927431457370720.05854862914741430.970725685426293
180.03117319955083900.06234639910167790.968826800449161
190.02005467721790280.04010935443580560.979945322782097
200.1581494108486670.3162988216973340.841850589151333
210.1269299018727570.2538598037455140.873070098127243
220.5157167585578720.9685664828842570.484283241442128
230.4600639518855690.9201279037711380.539936048114431
240.4569904335912580.9139808671825150.543009566408743
250.4072195040591470.8144390081182940.592780495940853
260.3465132241829170.6930264483658330.653486775817083
270.3093235521068460.6186471042136910.690676447893154
280.2633261000312460.5266522000624920.736673899968754
290.3120877318573620.6241754637147240.687912268142638
300.3223275132414500.6446550264829010.67767248675855
310.3180024640332260.6360049280664530.681997535966773
320.2510847252929420.5021694505858840.748915274707058
330.2562831383003570.5125662766007150.743716861699643
340.2230725659741360.4461451319482720.776927434025864
350.2101442002743580.4202884005487170.789855799725642
360.208128132842540.416256265685080.79187186715746
370.1900537457627310.3801074915254610.80994625423727
380.1799669255885560.3599338511771110.820033074411444
390.1801066775156170.3602133550312340.819893322484383
400.1680237076310720.3360474152621440.831976292368928
410.2730863023517610.5461726047035220.726913697648239
420.3919929542054070.7839859084108140.608007045794593
430.3849796133249590.7699592266499190.61502038667504
440.3185316659727050.637063331945410.681468334027295
450.3501809602138140.7003619204276270.649819039786186
460.4309874874203830.8619749748407670.569012512579617
470.4563736495274140.9127472990548270.543626350472586
480.5205734281421070.9588531437157850.479426571857893
490.5142796588291220.9714406823417570.485720341170878
500.5483681450599810.9032637098800380.451631854940019
510.5667726390654920.8664547218690160.433227360934508
520.8404362111810930.3191275776378130.159563788818907
530.8592254777043640.2815490445912720.140774522295636
540.9490610644148460.1018778711703080.0509389355851538
550.9662171187337730.06756576253245330.0337828812662267
560.954149672954070.09170065409186020.0458503270459301
570.9562536350768970.08749272984620570.0437463649231029
580.940592402630390.1188151947392200.0594075973696101
590.9276047224475090.1447905551049820.0723952775524912
600.9129611256636150.1740777486727710.0870388743363853
610.9152051907397370.1695896185205260.0847948092602631
620.8980947761656860.2038104476686270.101905223834314
630.8542108714511350.291578257097730.145789128548865
640.8149984576386630.3700030847226740.185001542361337
650.6904155971577730.6191688056844530.309584402842226


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.02OK
10% type I error level60.12NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/10x9c11229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/10x9c11229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/182u51229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/182u51229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/29gd91229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/29gd91229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/3bkxg1229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/3bkxg1229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/46m161229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/46m161229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/5hmf31229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/5hmf31229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/6jhea1229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/6jhea1229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/77ybk1229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/77ybk1229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/874vh1229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/874vh1229327094.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/9pux11229327094.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122932716756q6cughqn0sk8c/9pux11229327094.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