Home » date » 2009 » Nov » 20 »

WS 7 Multiple Regression - autoregression met 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: Fri, 20 Nov 2009 06:27:42 -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/Nov/20/t1258723756pbdmg6ot5avlopf.htm/, Retrieved Fri, 20 Nov 2009 14:29:29 +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/Nov/20/t1258723756pbdmg6ot5avlopf.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:
SHW WS 7 Multiple Regression - autoregression met 4 lags
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15.6 0 14.6 11.9 13.5 14.2 14.1 -0.2 15.6 14.6 11.9 13.5 14.9 1 14.1 15.6 14.6 11.9 14.2 0.4 14.9 14.1 15.6 14.6 14.6 1 14.2 14.9 14.1 15.6 17.2 1.7 14.6 14.2 14.9 14.1 15.4 3.1 17.2 14.6 14.2 14.9 14.3 3.3 15.4 17.2 14.6 14.2 17.5 3.1 14.3 15.4 17.2 14.6 14.5 3.5 17.5 14.3 15.4 17.2 14.4 6 14.5 17.5 14.3 15.4 16.6 5.7 14.4 14.5 17.5 14.3 16.7 4.7 16.6 14.4 14.5 17.5 16.6 4.2 16.7 16.6 14.4 14.5 16.9 3.6 16.6 16.7 16.6 14.4 15.7 4.4 16.9 16.6 16.7 16.6 16.4 2.5 15.7 16.9 16.6 16.7 18.4 -0.6 16.4 15.7 16.9 16.6 16.9 -1.9 18.4 16.4 15.7 16.9 16.5 -1.9 16.9 18.4 16.4 15.7 18.3 0.7 16.5 16.9 18.4 16.4 15.1 -0.9 18.3 16.5 16.9 18.4 15.7 -1.7 15.1 18.3 16.5 16.9 18.1 -3.1 15.7 15.1 18.3 16.5 16.8 -2.1 18.1 15.7 15.1 18.3 18.9 0.2 16.8 18.1 15.7 15.1 19 1.2 18.9 16.8 18.1 15.7 18.1 3.8 19 18.9 16.8 18.1 17.8 4 18.1 19 18.9 16.8 21.5 6.6 17.8 18.1 19 18.9 17.1 5.3 21.5 17.8 18.1 19 18.7 7.6 17.1 21.5 17.8 18.1 19 4.7 18.7 17.1 21.5 17.8 16.4 6.6 19 18.7 17.1 21.5 16.9 4.4 16.4 19 18. 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] = + 6.08577545459943 + 0.0937233198980662X[t] + 0.353117280750058Y1[t] + 0.297388312914167Y2[t] + 0.390002938543844Y3[t] -0.412813823279897Y4[t] + 1.32708847505859M1[t] -0.690848167073465M2[t] -2.44667437247958M3[t] -1.21771370872316M4[t] -0.853217792826271M5[t] + 1.39824803727689M6[t] -1.35047284337896M7[t] -1.46577081148973M8[t] -0.108516967765969M9[t] -1.34277021223409M10[t] -2.37859652074837M11[t] + 0.0403527438512034t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.085775454599431.8458083.29710.0017840.000892
X0.09372331989806620.0382342.45130.0176990.00885
Y10.3531172807500580.1339952.63530.0111070.005554
Y20.2973883129141670.1318082.25620.0283730.014186
Y30.3900029385438440.1245093.13230.0028720.001436
Y4-0.4128138232798970.137136-3.01020.0040520.002026
M11.327088475058590.7627061.740.0878950.043948
M2-0.6908481670734650.889778-0.77640.4410830.220541
M3-2.446674372479580.790693-3.09430.0031990.001599
M4-1.217713708723160.641573-1.8980.0633610.03168
M5-0.8532177928262710.656872-1.29890.1998170.099909
M61.398248037276890.6731952.0770.0428540.021427
M7-1.350472843378960.809549-1.66820.1014090.050705
M8-1.465770811489730.797244-1.83850.0718080.035904
M9-0.1085169677659690.639952-0.16960.8660190.433009
M10-1.342770212234090.78138-1.71850.0917790.045889
M11-2.378596520748370.742783-3.20230.002350.001175
t0.04035274385120340.0177832.26920.0275190.013759


Multiple Linear Regression - Regression Statistics
Multiple R0.940286933379321
R-squared0.884139517083888
Adjusted R-squared0.84551935611185
F-TEST (value)22.8932115980574
F-TEST (DF numerator)17
F-TEST (DF denominator)51
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.983511283994648
Sum Squared Residuals49.3320167329849


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
115.615.5507332759060.049266724093985
214.114.3754354138896-0.275435413889626
314.914.25365237931770.646347620682323
414.214.5785487659034-0.378548765903390
514.614.03254174030100.567458259699044
617.217.254264817199-0.0542648171989887
715.415.11091646776280.289083532237153
814.315.6372852674231-1.33728526742308
917.516.94130132984990.558698670150091
1014.514.8124170814802-0.312417081480165
1114.414.2576042251430.142395774856993
1216.617.4230644359038-0.82306443590384
1316.716.9528884711471-0.252888471147079
1416.616.8174501053887-0.217450105388667
1516.915.93945760223580.960542397764226
1615.716.4907559013341-0.790755901334058
1716.416.30272433406760.0972756659323625
1818.418.35259900125720.0474009987428246
1916.915.84494925588851.0550507441115
2016.516.6034833812487-0.103483381248741
2118.318.14847741967920.151522580320833
2215.115.9106433330342-0.810643333034218
2315.714.70873433680030.991265663199682
2418.117.12382953935820.976170460641827
2516.817.6198342544706-0.81983425447056
2618.917.66749947559621.23250052440384
271917.08900957526331.91099042473669
2818.117.76407380382190.335926196178095
2917.819.2552645473719-1.45526454737192
3021.520.58927035218010.910729647819914
3117.118.5840953173915-1.48409531739147
3218.718.52586601076840.174133989231630
331920.4750090626129-1.47500906261290
3416.416.7975152789615-0.397515278961452
3516.917.2073474985484-0.307347498548432
3618.618.50488921824110.0951107817588718
3719.319.6146848315424-0.314684831542436
3819.419.5456925876627-0.145692587662684
3917.618.4553221011888-0.855322101188823
4018.618.56814147627510.0318585237248646
4118.118.5689560670557-0.468956067055667
4220.420.34141329373010.0585867062698637
4318.119.4202162346514-1.32021623465139
4419.618.48743877595001.11256122405004
4519.920.8247695032484-0.924769503248421
4619.218.38326976398220.816730236017805
4717.818.8861471138953-1.08614711389535
4819.219.9691278651909-0.769127865190936
492220.92402011520831.07597988479175
5021.120.02886747951331.07113252048670
5119.519.9709638719758-0.470963871975847
5222.220.90296436011191.29703563988808
5320.920.45660133515570.443398664844337
5422.222.7086309804277-0.508630980427662
5523.521.9268055329731.57319446702701
5621.520.86035280174860.639647198251358
5724.323.11320407284011.18679592715994
5822.822.09615454254200.70384545745803
5920.320.04016682561290.259833174387105
6023.723.17908894130590.520911058694078
6123.323.03783905172570.262160948274342
6219.621.2650549379496-1.66505493794956
631820.1915944700186-2.19159447001858
6417.317.7955156925536-0.49551569255359
6516.815.98391197604820.816088023951838
6618.218.6538215552059-0.453821555205949
6716.516.6130171913328-0.113017191332803
681616.4855737628612-0.485573762861198
6918.417.89723861176950.502761388230456


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.02055455327151870.04110910654303750.979445446728481
220.01885258256247310.03770516512494630.981147417437527
230.01152968069278790.02305936138557590.988470319307212
240.003973835618004730.007947671236009460.996026164381995
250.003734760836442490.007469521672884980.996265239163558
260.002485302672558160.004970605345116310.997514697327442
270.004028698638648680.008057397277297350.995971301361351
280.04497323378564370.08994646757128750.955026766214356
290.02524283485377290.05048566970754580.974757165146227
300.03461284212321810.06922568424643620.965387157876782
310.08987248209735750.1797449641947150.910127517902642
320.06206696446636090.1241339289327220.93793303553364
330.1008498226520590.2016996453041190.89915017734794
340.1355407604855400.2710815209710790.86445923951446
350.1324856142924850.2649712285849690.867514385707515
360.1329707290209640.2659414580419280.867029270979036
370.09136608945618510.1827321789123700.908633910543815
380.06535201866248920.1307040373249780.934647981337511
390.1372866028713770.2745732057427530.862713397128623
400.09544834987740540.1908966997548110.904551650122595
410.05967484861972790.1193496972394560.940325151380272
420.03796517677147820.07593035354295640.962034823228522
430.04190862759068830.08381725518137660.958091372409312
440.06393656808160040.1278731361632010.9360634319184
450.04202495228361880.08404990456723760.957975047716381
460.0323466355872910.0646932711745820.967653364412709
470.05873583364508670.1174716672901730.941264166354913
480.1984066036888570.3968132073777140.801593396311143


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.142857142857143NOK
5% type I error level70.25NOK
10% type I error level140.5NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/10z6ei1258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/10z6ei1258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/1uprq1258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/1uprq1258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/2ua261258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/2ua261258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/3rma01258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/3rma01258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/4aisy1258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/4aisy1258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/51enn1258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/51enn1258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/6h9us1258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/6h9us1258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/7yuh61258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/7yuh61258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/86zw91258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/86zw91258723657.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/9mf731258723657.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723756pbdmg6ot5avlopf/9mf731258723657.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