Home » date » 2010 » Dec » 06 »

*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, 06 Dec 2010 18:18:43 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1.htm/, Retrieved Mon, 06 Dec 2010 19:17:05 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2350.44 10892.76 10540.05 10570 -4.9 -3 1.6 3.38 2440.25 10631.92 10601.61 10297 -4 -1 1.3 3.35 2408.64 11441.08 10323.73 10635 -3.1 -3 1.1 3.22 2472.81 11950.95 10418.4 10872 -1.3 -4 1.9 3.06 2407.6 11037.54 10092.96 10296 0 -6 2.6 3.17 2454.62 11527.72 10364.91 10383 -0.4 0 2.3 3.19 2448.05 11383.89 10152.09 10431 3 -4 2.4 3.35 2497.84 10989.34 10032.8 10574 0.4 -2 2.2 3.24 2645.64 11079.42 10204.59 10653 1.2 -2 2 3.23 2756.76 11028.93 10001.6 10805 0.6 -6 2.9 3.31 2849.27 10973 10411.75 10872 -1.3 -7 2.6 3.25 2921.44 11068.05 10673.38 10625 -3.2 -6 2.3 3.2 2981.85 11394.84 10539.51 10407 -1.8 -6 2.3 3.1 3080.58 11545.71 10723.78 10463 -3.6 -3 2.6 2.93 3106.22 11809.38 10682.06 10556 -4.2 -2 3.1 2.92 3119.31 11395.64 10283.19 10646 -6.9 -5 2.8 2.9 3061.26 11082.38 10377.18 10702 -8 -11 2.5 2.87 3097.31 11402.75 10486.64 11353 -7.5 -11 2.9 2.76 3161.69 11716.87 10545.38 11346 -8.2 -11 3.1 2.67 3257.16 12204.98 10554.27 11451 -7.6 -10 3.1 2.75 3277.01 12986.62 10532.54 11964 -3.7 -14 3.2 2 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
BEL_20[t] = -204.722456427373 + 0.177400378019995Nikkei[t] + 0.220142962023709DJ_Indust[t] -0.0793121795843404Goudprijs[t] + 8.83568088071237Conjunct_Seizoenzuiver[t] -8.23572530490068Cons_vertrouw[t] + 18.5328439084293Alg_consumptie_index_BE[t] -280.1553727945Gem_rente_kasbon_5j[t] + 161.090413781246M1[t] + 247.445572641716M2[t] + 189.272612931734M3[t] + 111.726785113516M4[t] + 83.0601724822622M5[t] -3.16898498687954M6[t] + 12.8625451025933M7[t] + 4.30907126374565M8[t] + 35.700574039436M9[t] + 112.037528681405M10[t] + 84.5376550919719M11[t] + 22.318614447017t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-204.722456427373567.980524-0.36040.7199790.359989
Nikkei0.1774003780199950.01511.826700
DJ_Indust0.2201429620237090.0387355.68331e-060
Goudprijs-0.07931217958434040.025185-3.14920.0027130.001356
Conjunct_Seizoenzuiver8.835680880712377.8939631.11930.2681580.134079
Cons_vertrouw-8.235725304900688.790611-0.93690.3531530.176576
Alg_consumptie_index_BE18.532843908429318.1314341.02210.3114470.155724
Gem_rente_kasbon_5j-280.155372794557.69116-4.85611.1e-056e-06
M1161.09041378124693.4761071.72330.0907710.045385
M2247.445572641716100.6772852.45780.0173480.008674
M3189.27261293173494.808281.99640.0511420.025571
M4111.72678511351692.8976721.20270.2345450.117273
M583.060172482262287.5021240.94920.3468920.173446
M6-3.1689849868795490.438848-0.0350.9721820.486091
M712.862545102593391.4980110.14060.8887470.444374
M84.3090712637456594.3133480.04570.9637330.481867
M935.70057403943691.7730.3890.6988580.349429
M10112.03752868140592.2755991.21420.2301710.115086
M1184.537655091971988.0557420.960.3414740.170737
t22.3186144470175.8369673.82370.0003540.000177


Multiple Linear Regression - Regression Statistics
Multiple R0.988447189712945
R-squared0.97702784685142
Adjusted R-squared0.968634175508669
F-TEST (value)116.400536422631
F-TEST (DF numerator)19
F-TEST (DF denominator)52
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation149.766092731832
Sum Squared Residuals1166353.89167231


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12350.442457.19413196077-106.754131960772
22440.252549.12448662837-108.874486628374
32408.642625.97178134145-217.331781341454
42472.812747.03073202865-274.22073202865
52407.62562.79767991999-155.197679919987
62454.622574.70138828411-120.081388284106
72448.052556.89086760979-108.840867609793
82497.842450.7264947758647.1135052241398
92645.642558.1330649603387.5069350396716
102756.762612.99804019027143.761959809726
112849.272685.56989857376163.700101426239
122921.442700.82327186014220.616728139856
132981.852970.4099769572811.4400230427194
143080.583154.54727189964-73.9672718996395
153106.223147.43852908107-41.2185290810652
163119.312924.76125570302194.548744296976
173061.262921.63048091606139.629519083944
183097.312929.66638572503167.643614274971
193161.693059.96349556821101.726504431785
203257.163128.60208016773128.557919832274
213277.013353.1645764035-76.1545764034988
223295.323384.93807770034-89.6180777003413
233363.993577.88541387396-213.895413873962
243494.173654.62023521827-160.450235218271
253667.033812.5768870342-145.546887034203
263813.063976.84952769536-163.78952769536
273917.964003.99128282905-86.031282829049
283895.513985.23019143339-89.7201914333885
293801.063740.0918136670960.9681863329113
303570.123477.0832584611193.0367415388856
313701.613457.93546917912243.674530820884
323862.273631.36036248836230.90963751164
333970.13836.65793640225133.44206359775
344138.524124.8524503926713.6675496073332
354199.754050.88530692903148.864693070973
364290.894261.5869640353229.3030359646797
374443.914441.65027315012.25972684989876
384502.644485.9897769864616.6502230135373
394356.984301.576265050155.4037349498997
404591.274395.30283486492195.967165135077
414696.964585.94842480073111.011575199273
424621.44555.787428328465.6125716715979
434562.844597.77025661072-34.9302566107224
444202.524240.52368549951-38.0036854995115
454296.494285.9114926009810.5785073990201
464435.234509.52120170601-74.2912017060101
474105.184158.55265483927-53.3726548392649
484116.684097.476143397519.2038566024962
493844.493653.92798637897190.562013621027
503720.983664.3586127237556.6213872762538
513674.43524.29355076329150.106449236707
523857.623842.8953448999514.7246551000516
533801.063978.68360376993-177.623603769927
543504.373631.39353313422-127.023533134216
553032.63152.21281263012-119.612812630116
563047.033251.44229105332-204.412291053316
572962.343068.07875184762-105.738751847617
582197.822117.6359550997680.184044900241
592014.451969.4242906443345.025709355671
601862.831834.1177322205628.7122677794436
611905.411857.3707445186748.0392554813297
621810.991537.63032406642273.359675933582
631670.071530.99859093504139.071409064962
641864.441905.73964107007-41.2996410700661
652052.022030.8079969262121.2120030737858
662029.62108.78800606713-79.188006067132
672070.832152.84709840204-82.0170984020375
682293.412457.57508601523-164.165086015227
692443.272492.90417778533-49.6341777853266
702513.172586.87427491095-73.7042749109487
712466.922557.24243513966-90.322435139655
722502.662640.04565326821-137.385653268205


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
230.01990774155383930.03981548310767860.98009225844616
240.02874061050915390.05748122101830790.971259389490846
250.02619619902117430.05239239804234870.973803800978826
260.021055028973940.04211005794788010.97894497102606
270.0130647014279310.0261294028558620.98693529857207
280.0985010675728580.1970021351457160.901498932427142
290.3779272795075370.7558545590150740.622072720492463
300.894647354343110.210705291313780.10535264565689
310.861141895660010.2777162086799790.13885810433999
320.8118113113702170.3763773772595650.188188688629783
330.7411538831824250.5176922336351490.258846116817574
340.7564427614441810.4871144771116370.243557238555819
350.7096929323771640.5806141352456720.290307067622836
360.6279158476006440.7441683047987110.372084152399356
370.5926711587358170.8146576825283660.407328841264183
380.6338704557749660.7322590884500690.366129544225034
390.6971386858465320.6057226283069370.302861314153468
400.6086173060155790.7827653879688420.391382693984421
410.53663904467160.92672191065680.4633609553284
420.5133193424511820.9733613150976350.486680657548818
430.5352308886881710.9295382226236570.464769111311829
440.860847843844360.278304312311280.13915215615564
450.907978376545160.1840432469096790.0920216234548395
460.9103625662967190.1792748674065610.0896374337032807
470.9452388933006550.1095222133986910.0547611066993455
480.8920016953042510.2159966093914980.107998304695749
490.7760956642314860.4478086715370280.223904335768514


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.111111111111111NOK
10% type I error level50.185185185185185NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/10xx801291659513.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/10xx801291659513.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/1gmrt1291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/1gmrt1291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/2qwqx1291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/2qwqx1291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/3qwqx1291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/3qwqx1291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/4qwqx1291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/4qwqx1291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/5jnph1291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/5jnph1291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/6jnph1291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/6jnph1291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/7uwo21291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/7uwo21291659512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/8uwo21291659512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291659422c8zb5nebz1koam1/8uwo21291659512.ps (open in new window)


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