Home » date » 2009 » Dec » 17 »

Paper Multiple Regression monthly dummies, lineaire trend en autoregressie van 4 lags

*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: Thu, 17 Dec 2009 10:01:01 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8.htm/, Retrieved Thu, 17 Dec 2009 18:02:21 +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/2009/Dec/17/t1261069329sg7poeombh667q8.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
8.4 1.58 8.4 8.4 8.3 7.6 8.4 1.86 8.4 8.4 8.4 8.3 8.6 1.74 8.4 8.4 8.4 8.4 8.9 1.59 8.6 8.4 8.4 8.4 8.8 1.26 8.9 8.6 8.4 8.4 8.3 1.13 8.8 8.9 8.6 8.4 7.5 1.92 8.3 8.8 8.9 8.6 7.2 2.61 7.5 8.3 8.8 8.9 7.4 2.26 7.2 7.5 8.3 8.8 8.8 2.41 7.4 7.2 7.5 8.3 9.3 2.26 8.8 7.4 7.2 7.5 9.3 2.03 9.3 8.8 7.4 7.2 8.7 2.86 9.3 9.3 8.8 7.4 8.2 2.55 8.7 9.3 9.3 8.8 8.3 2.27 8.2 8.7 9.3 9.3 8.5 2.26 8.3 8.2 8.7 9.3 8.6 2.57 8.5 8.3 8.2 8.7 8.5 3.07 8.6 8.5 8.3 8.2 8.2 2.76 8.5 8.6 8.5 8.3 8.1 2.51 8.2 8.5 8.6 8.5 7.9 2.87 8.1 8.2 8.5 8.6 8.6 3.14 7.9 8.1 8.2 8.5 8.7 3.11 8.6 7.9 8.1 8.2 8.7 3.16 8.7 8.6 7.9 8.1 8.5 2.47 8.7 8.7 8.6 7.9 8.4 2.57 8.5 8.7 8.7 8.6 8.5 2.89 8.4 8.5 8.7 8.7 8.7 2.63 8.5 8.4 8.5 8.7 8.7 2.38 8.7 8.5 8.4 8.5 8.6 1.69 8.7 8.7 8.5 8.4 8.5 1.96 8.6 8.7 8.7 8.5 8.3 2.19 8.5 8.6 8.7 8.7 8 1.87 8.3 8.5 8.6 8.7 8.2 1.6 8 8.3 8.5 8.6 8.1 1.63 8.2 8 8.3 8.5 8.1 1.22 8.1 8.2 8 8.3 8 1.21 8.1 8.1 8.2 8 7.9 1.49 8 8.1 8.1 8.2 7.9 1.64 7.9 8 8.1 8.1 8 1.66 7.9 7.9 8 8.1 8 1.7 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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.881777647983385 -0.0113231086563806X[t] + 1.63806464568807Y1[t] -1.00286926978010Y2[t] + 0.0145595834654874Y3[t] + 0.251295000293058Y4[t] + 0.0625666023511709M1[t] -0.00068203250343602M2[t] + 0.149463960484866M3[t] + 0.0540894234403781M4[t] -0.176549045058484M5[t] -0.06307426185533M6[t] -0.0851874528307616M7[t] -0.113415631987668M8[t] -0.0279778267138532M9[t] + 0.625142574401157M10[t] -0.521386048081949M11[t] -0.00183070169537278t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.8817776479833850.6984771.26240.2125370.106268
X-0.01132310865638060.019941-0.56780.5726490.286325
Y11.638064645688070.14207411.529700
Y2-1.002869269780100.277449-3.61460.0006880.000344
Y30.01455958346548740.277990.05240.9584350.479217
Y40.2512950002930580.1443831.74050.0878070.043903
M10.06256660235117090.2141970.29210.7713960.385698
M2-0.000682032503436020.165888-0.00410.9967360.498368
M30.1494639604848660.1704340.8770.3846190.19231
M40.05408942344037810.1737330.31130.7568140.378407
M5-0.1765490450584840.152101-1.16070.2511530.125576
M6-0.063074261855330.141031-0.44720.6565980.328299
M7-0.08518745283076160.170104-0.50080.6186690.309335
M8-0.1134156319876680.164323-0.69020.4931990.2466
M9-0.02797782671385320.165785-0.16880.8666540.433327
M100.6251425744011570.1653943.77970.0004130.000206
M11-0.5213860480819490.224014-2.32750.0239460.011973
t-0.001830701695372780.002-0.91510.3644290.182215


Multiple Linear Regression - Regression Statistics
Multiple R0.977655491510764
R-squared0.955810260081153
Adjusted R-squared0.94108034677487
F-TEST (value)64.8890621558174
F-TEST (DF numerator)17
F-TEST (DF denominator)51
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.172370906703546
Sum Squared Residuals1.51529820336793


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
18.48.290950739579850.109049260420154
28.48.40006339115775-6.33911577450543e-05
38.68.574866955518750.0251330444812547
48.98.806973112214950.0930268877850465
58.88.86908610762773-0.0690861076277269
68.38.5204468644511-0.220446864451098
77.57.82343919517399-0.323439195173987
87.27.050482829429770.149517170570232
97.47.41651975139356-0.0165197513935551
108.88.557289527667460.242710472332539
119.39.297941444520620.00205855547937821
129.39.162639867655240.137360132344761
138.78.78318537014649-0.083185370146486
148.28.097870202010160.102129797989835
158.38.157692702897440.142307297102564
168.58.7171060446237-0.217106044623708
178.68.550395920997020.0496040790029831
188.58.495419516989410.00458048301058582
198.28.23893381317768-0.038933813177676
208.17.872288201166240.227711798833760
217.98.11254684367637-0.212546843676366
228.68.503955926530230.0960440734697732
238.78.626310943114640.0736890568853605
248.78.579056693068730.120943306931270
258.58.50725132008665-0.00725132008665006
268.48.29078920208510.109210797914892
278.58.497377988024520.00262201197548507
288.78.664298232389030.0357017676109676
298.78.610270883113340.0897291168866645
308.68.505480513955240.0945194860447574
318.58.342714334100810.157285665899188
328.38.296790600725380.00320939927462011
3388.15523913856771-0.155239138567712
348.28.49215507919832-0.292155079198317
358.17.943888355109390.156111644890614
368.18.0490789824220.0509210175780046
3788.13773845774755-0.137738457747547
387.97.95448522791704-0.0544852279170366
397.98.0124530152914-0.112453015291406
4088.01385228300988-0.0138522830098793
4187.91735857705640.0826414229436056
427.97.90302007612404-0.00302007612404089
4387.717178601577230.282821398422765
447.77.98200416662927-0.282004166629268
457.27.47233576009017-0.272335760090167
467.57.58087452722453-0.0808745272245331
477.37.44896163379628-0.148961633796279
4877.25295896591456-0.252958965914562
4976.893303832393920.106696167606080
5077.19363568411332-0.193635684113323
517.27.28562563400954-0.0856256340095376
527.37.43645527411651-0.136455274116513
537.17.16518055497692-0.0651805549769159
546.86.84334436556988-0.0433443655698851
556.46.58298743763137-0.182987437631372
566.16.20877856759834-0.108778567598342
576.56.140806476176880.359193523823121
587.77.665724939379460.0342750606205383
597.97.98289762345907-0.082897623459073
607.57.55626549093947-0.0562654909394732
616.96.887570280045550.0124297199544479
626.66.563156292716620.0368437072833785
636.96.871983704258360.0280162957416406
647.77.461315053645910.238684946354086
6588.08770795622861-0.0877079562286104
6687.832288662910320.167711337089681
677.77.594746618338920.105253381661081
687.37.2896556344510.0103443655489979
697.47.102552030095320.297447969904679


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.045666359795710.091332719591420.95433364020429
220.1057422283347240.2114844566694480.894257771665276
230.07862592515762420.1572518503152480.921374074842376
240.04337197510611640.08674395021223280.956628024893884
250.08647062098256450.1729412419651290.913529379017435
260.08088708868388790.1617741773677760.919112911316112
270.1228692106489160.2457384212978320.877130789351084
280.07501585876336610.1500317175267320.924984141236634
290.04635121420682350.09270242841364690.953648785793177
300.03288251926014840.06576503852029670.967117480739852
310.05142497358437370.1028499471687470.948575026415626
320.04625002441854280.09250004883708560.953749975581457
330.03146918775076640.06293837550153280.968530812249234
340.2042683780891200.4085367561782410.79573162191088
350.1902655685762390.3805311371524780.809734431423761
360.1856447921957330.3712895843914660.814355207804267
370.1963233821454760.3926467642909530.803676617854524
380.1942268649488530.3884537298977060.805773135051147
390.1660097176609050.3320194353218110.833990282339095
400.1108541254329470.2217082508658930.889145874567053
410.1103772515829770.2207545031659540.889622748417023
420.06933026931538520.1386605386307700.930669730684615
430.6594787985799010.6810424028401980.340521201420099
440.8807283258774380.2385433482451240.119271674122562
450.8117402957605540.3765194084788920.188259704239446
460.7334535820260120.5330928359479750.266546417973988
470.6187322109158770.7625355781682460.381267789084123
480.5401269739312290.9197460521375420.459873026068771


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


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/17lko1261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/17lko1261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/2e8as1261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/2e8as1261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/32m1c1261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/32m1c1261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/4lod01261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/4lod01261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/5fkbv1261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/5fkbv1261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/6xe6h1261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/6xe6h1261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/7phk51261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/7phk51261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/8zbln1261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/8zbln1261069256.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/9p1p71261069256.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261069329sg7poeombh667q8/9p1p71261069256.ps (open in new window)


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