Home » date » 2008 » Dec » 10 »

Paper - Regressie analyse - Dummy & seizonale dummy

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 10 Dec 2008 13:39:32 -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/10/t1228942043f3rfy33xyrbsrk8.htm/, Retrieved Wed, 10 Dec 2008 20:47:44 +0000
 
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/10/t1228942043f3rfy33xyrbsrk8.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
108.00 0 99.00 0 108.00 0 104.00 0 111.00 0 110.00 0 106.00 0 101.00 0 102.00 0 99.00 0 100.00 0 98.00 0 92.00 1 87.00 1 79.00 1 87.00 1 87.00 1 88.00 1 83.00 1 85.00 1 92.00 1 84.00 1 92.00 1 98.00 1 103.00 0 104.00 0 109.00 0 107.00 0 106.00 0 113.00 0 107.00 0 114.00 0 108.00 0 104.00 0 105.00 0 109.00 0 109.00 0 112.00 0 118.00 0 111.00 0 99.00 1 92.00 1 92.00 1 98.00 1 87.00 1 97.00 1 102.00 0 105.00 0 111.00 0 110.00 0 109.00 0 111.00 0 113.00 0 114.00 0 120.00 0 114.00 0 120.00 0 122.00 0 123.00 0 115.00 0 123.00 0 124.00 0 124.00 0 132.00 0 126.00 0 126.00 0 122.00 0 120.00 0 114.00 0 116.00 0 100.00 0 97.00 0
 
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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Consumentenvertrouwen[t] = + 107.288461538462 -21.7307692307692Dummy[t] + 4.00000000000007M1[t] + 2.33333333333331M2[t] + 4.16666666666666M3[t] + 5.00000000000001M4[t] + 6.95512820512821M5[t] + 7.12179487179487M6[t] + 4.9551282051282M7[t] + 5.28846153846154M8[t] + 3.78846153846154M9[t] + 3.62179487179488M10[t] + 3.5254315917032e-15M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)107.2884615384623.34704432.054700
Dummy-21.73076923076922.259431-9.617800
M14.000000000000074.7033810.85050.3985120.199256
M22.333333333333314.7033810.49610.6216690.310835
M34.166666666666664.7033810.88590.3792750.189637
M45.000000000000014.7033811.06310.2920840.146042
M56.955128205128214.7184321.4740.1457880.072894
M67.121794871794874.7184321.50940.1365450.068272
M74.95512820512824.7184321.05020.2979250.148963
M85.288461538461544.7184321.12080.2669110.133455
M93.788461538461544.7184320.80290.4252510.212626
M103.621794871794884.7184320.76760.4457950.222898
M113.5254315917032e-154.703381010.5


Multiple Linear Regression - Regression Statistics
Multiple R0.786831965790102
R-squared0.619104542389115
Adjusted R-squared0.54163427982419
F-TEST (value)7.99151212209022
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value1.30550332766433e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.14649523509249
Sum Squared Residuals3915.55769230769


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1108111.288461538461-3.28846153846118
299109.621794871795-10.6217948717950
3108111.455128205128-3.45512820512820
4104112.288461538462-8.28846153846153
5111114.243589743590-3.24358974358974
6110114.410256410256-4.41025641025643
7106112.243589743590-6.24358974358975
8101112.576923076923-11.5769230769231
9102111.076923076923-9.07692307692307
1099110.910256410256-11.9102564102564
11100107.288461538462-7.28846153846154
1298107.288461538462-9.28846153846154
139289.55769230769242.44230769230762
148787.8910256410256-0.89102564102562
157989.724358974359-10.7243589743590
168790.5576923076923-3.55769230769231
178792.5128205128205-5.51282051282052
188892.6794871794872-4.67948717948717
198390.5128205128205-7.51282051282051
208590.8461538461539-5.84615384615385
219289.34615384615382.65384615384615
228489.1794871794872-5.17948717948718
239285.55769230769236.44230769230769
249885.557692307692312.4423076923077
25103111.288461538462-8.28846153846161
26104109.621794871795-5.62179487179485
27109111.455128205128-2.45512820512820
28107112.288461538462-5.28846153846154
29106114.243589743590-8.24358974358974
30113114.410256410256-1.41025641025641
31107112.243589743590-5.24358974358974
32114112.5769230769231.42307692307692
33108111.076923076923-3.07692307692308
34104110.910256410256-6.91025641025641
35105107.288461538462-2.28846153846154
36109107.2884615384621.71153846153846
37109111.288461538462-2.28846153846161
38112109.6217948717952.37820512820515
39118111.4551282051286.5448717948718
40111112.288461538462-1.28846153846154
419992.51282051282056.48717948717948
429292.6794871794872-0.679487179487176
439290.51282051282051.48717948717949
449890.84615384615397.15384615384615
458789.3461538461538-2.34615384615385
469789.17948717948727.82051282051282
47102107.288461538462-5.28846153846154
48105107.288461538462-2.28846153846153
49111111.288461538462-0.288461538461613
50110109.6217948717950.378205128205146
51109111.455128205128-2.45512820512820
52111112.288461538462-1.28846153846154
53113114.243589743590-1.24358974358974
54114114.410256410256-0.410256410256406
55120112.2435897435907.75641025641025
56114112.5769230769231.42307692307692
57120111.0769230769238.92307692307692
58122110.91025641025611.0897435897436
59123107.28846153846215.7115384615385
60115107.2884615384627.71153846153846
61123111.28846153846211.7115384615384
62124109.62179487179514.3782051282051
63124111.45512820512812.5448717948718
64132112.28846153846219.7115384615385
65126114.24358974359011.7564102564103
66126114.41025641025611.5897435897436
67122112.2435897435909.75641025641025
68120112.5769230769237.42307692307691
69114111.0769230769232.92307692307692
70116110.9102564102565.08974358974359
71100107.288461538462-7.28846153846154
7297107.288461538462-10.2884615384615


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2581387584481090.5162775168962180.741861241551891
170.1618637368129410.3237274736258830.838136263187059
180.08383919618041540.1676783923608310.916160803819585
190.04537576958713450.09075153917426890.954624230412866
200.02762251014523090.05524502029046180.97237748985477
210.0339801054042940.0679602108085880.966019894595706
220.02112868698497610.04225737396995210.978871313015024
230.02697895974121410.05395791948242810.973021040258786
240.1002187493545410.2004374987090830.899781250645459
250.08296570871370010.1659314174274000.9170342912863
260.06344105842815650.1268821168563130.936558941571843
270.06051980447788260.1210396089557650.939480195522117
280.04748902652159460.09497805304318920.952510973478405
290.04020613983256460.08041227966512930.959793860167435
300.03179799350909960.06359598701819910.9682020064909
310.0284985528678030.0569971057356060.971501447132197
320.04765621703685910.09531243407371810.95234378296314
330.03367995582367030.06735991164734060.96632004417633
340.04078532390200070.08157064780400150.959214676098
350.02583627876415530.05167255752831050.974163721235845
360.01630249574549520.03260499149099040.983697504254505
370.01159672349363120.02319344698726230.988403276506369
380.01362496879699690.02724993759399370.986375031203003
390.02368270133216870.04736540266433740.976317298667831
400.02284928237608850.04569856475217710.977150717623911
410.02421673746148010.04843347492296020.97578326253852
420.01466825347039680.02933650694079360.985331746529603
430.01041566118119280.02083132236238560.989584338818807
440.01056371015008710.02112742030017430.989436289849913
450.006648207947751780.01329641589550360.993351792052248
460.007811169545445450.01562233909089090.992188830454555
470.005990745553986290.01198149110797260.994009254446014
480.003143355090172680.006286710180345360.996856644909827
490.002626192595433550.005252385190867090.997373807404566
500.002841325768603910.005682651537207830.997158674231396
510.003124315522594750.00624863104518950.996875684477405
520.01020994651066730.02041989302133460.989790053489333
530.01136471262466890.02272942524933780.988635287375331
540.01182850825586320.02365701651172640.988171491744137
550.01010890035171070.02021780070342150.98989109964829
560.005156941024664820.01031388204932960.994843058975335


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.097560975609756NOK
5% type I error level220.536585365853659NOK
10% type I error level340.829268292682927NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/10v6xw1228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/10v6xw1228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/13f3f1228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/13f3f1228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/2x2l61228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/2x2l61228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/31yf91228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/31yf91228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/4ln581228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/4ln581228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/5q0ke1228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/5q0ke1228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/6hgwy1228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/6hgwy1228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/7mf1u1228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/7mf1u1228941564.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/8zovp1228941564.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228942043f3rfy33xyrbsrk8/8zovp1228941564.ps (open in new window)


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