Home » date » 2009 » Nov » 19 »

Multiple Regression (a)

*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, 19 Nov 2009 09:26:46 -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/19/t12586497742aih0ljd2ajpv0i.htm/, Retrieved Thu, 19 Nov 2009 17:56:26 +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/19/t12586497742aih0ljd2ajpv0i.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 «
4 7.2 102.9 271244 4.1 7.4 97.4 269907 4 8.8 111.4 271296 3.8 9.3 87.4 270157 4.7 9.3 96.8 271322 4.3 8.7 114.1 267179 3.9 8.2 110.3 264101 4 8.3 103.9 265518 4.3 8.5 101.6 269419 4.8 8.6 94.6 268714 4.4 8.5 95.9 272482 4.3 8.2 104.7 268351 4.7 8.1 102.8 268175 4.7 7.9 98.1 270674 4.9 8.6 113.9 272764 5 8.7 80.9 272599 4.2 8.7 95.7 270333 4.3 8.5 113.2 270846 4.8 8.4 105.9 270491 4.8 8.5 108.8 269160 4.8 8.7 102.3 274027 4.2 8.7 99 273784 4.6 8.6 100.7 276663 4.8 8.5 115.5 274525 4.5 8.3 100.7 271344 4.4 8 109.9 271115 4.3 8.2 114.6 270798 3.9 8.1 85.4 273911 3.7 8.1 100.5 273985 4 8 114.8 271917 4.1 7.9 116.5 273338 3.7 7.9 112.9 270601 3.8 8 102 273547 3.8 8 106 275363 3.8 7.9 105.3 281229 3.3 8 118.8 277793 3.3 7.7 106.1 279913 3.3 7.2 109.3 282500 3.2 7.5 117.2 280041 3.4 7.3 92.5 282166 4.2 7 104.2 290304 4.9 7 112.5 283519 5.1 7 122.4 287816 5.5 7.2 113.3 285226 5.6 7.3 100 287595 6.4 7.1 110.7 289741 6.1 6.8 112.8 289148 7.1 6.4 109.8 288301 7.8 6.1 117.3 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Cons.index[t] = + 25.0581301035609 -1.06842952839769Werkl.graad[t] + 0.0114153233526319Industr.prod.[t] -4.76358601503515e-05BrutoSchuld[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)25.05813010356095.8844394.25847.2e-053.6e-05
Werkl.graad-1.068429528397690.278026-3.84290.0002920.000146
Industr.prod.0.01141532335263190.0192790.59210.5559590.277979
BrutoSchuld-4.76358601503515e-051e-05-4.5842.3e-051.2e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.623066294095584
R-squared0.388211606838005
Adjusted R-squared0.358123653075940
F-TEST (value)12.9025592736539
F-TEST (DF numerator)3
F-TEST (DF denominator)61
p-value1.24809663959446e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.23092396372239
Sum Squared Residuals92.425602072429


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
145.61913302146152-1.61913302146152
24.15.40635198236346-1.30635198236346
344.0041989597947-0.00419895979470014
43.83.250273679843940.549726320156060
54.73.302081942283521.39791805771648
64.34.33798012192557-0.0379801219255748
73.94.9754398349272-1.07543983492720
844.72803879879754-0.728038798797539
94.34.30227015896043-0.00227015896042693
104.84.149103224058230.650896775941767
114.44.09129417620990.308705823790102
124.34.70906161851347-0.409061618513469
134.74.8025993683697-0.102599368369699
144.74.84359123977614-0.143591239776138
154.94.17649373115510.723506268844896
1653.700805024603291.29919497539671
174.23.977694669322940.22230533067706
184.34.36671153741641-0.066711537416405
194.84.407133360135340.392866639864664
204.84.396798174878320.403201825121683
214.83.877068936054910.922931063945088
224.23.850973883007760.349026116992238
234.63.840079244174140.759920755825856
244.84.217714451634310.582285548365685
254.54.413983242833170.086016757166831
264.44.85044168817112-0.45044168817112
274.34.70550836991661-0.405508369916614
283.94.33073344821149-0.430733448211489
293.74.49957977718510-0.799579777185104
3044.86817281275843-0.868172812758435
314.14.92673125802403-0.826731258024029
323.75.01601544318607-1.31601544318607
333.84.64441022179967-0.844410221799674
343.84.60356479317716-0.803564793177163
353.84.42298506402813-0.622985064028128
363.34.6339257919255-1.33392579192550
373.34.70849202034763-1.40849202034763
383.35.15600184906594-1.85600184906594
393.25.04279062514214-1.84279062514214
403.44.87329184119218-1.47329184119218
414.24.93971935303372-0.739719353033716
424.95.3576758479807-0.457675847980695
435.15.26599625810569-0.165996258105691
445.55.071807787706610.428192212293388
455.64.700291681580660.899708318419343
466.44.93389499125071.46610500874930
476.15.30664409387970.793355906120305
487.15.740117508728221.35988249127178
497.86.057944407673521.74205559232648
507.95.561118325919092.33888167408091
517.44.424412919633712.97558708036629
527.53.92992410070753.57007589929250
536.84.144202669757082.65579733024292
545.24.474476037917010.725523962082986
554.74.606338265772580.0936617342274224
564.14.04329114232720.0567088576727956
573.92.572037089548511.32796291045149
582.62.032869031254330.567130968745668
592.72.290826827045040.40917317295496
601.82.62066411920809-0.820664119208088
6113.10106728308513-2.10106728308513
620.32.8726973662336-2.5726973662336
631.32.29666903760866-0.996669037608656
6411.67623446106161-0.676234461061607
651.11.84956000634913-0.749560006349129


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.03820035585478240.07640071170956470.961799644145218
80.00958451169435730.01916902338871460.990415488305643
90.002474112010677490.004948224021354980.997525887989323
100.003139326978837880.006278653957675760.996860673021162
110.0008634088965515530.001726817793103110.999136591103448
120.0002352979099251550.000470595819850310.999764702090075
130.0001620151468960330.0003240302937920660.999837984853104
147.55745005460131e-050.0001511490010920260.999924425499454
153.8222556100105e-057.644511220021e-050.9999617774439
162.3013328374405e-054.602665674881e-050.999976986671626
177.52489073767691e-061.50497814753538e-050.999992475109262
182.00464060762242e-064.00928121524483e-060.999997995359392
199.11897908905251e-071.82379581781050e-060.99999908810209
204.78122044541163e-079.56244089082326e-070.999999521877955
211.49013558943613e-072.98027117887225e-070.99999985098644
228.39931658719764e-081.67986331743953e-070.999999916006834
232.79434886731486e-085.58869773462973e-080.999999972056511
249.28636646067736e-091.85727329213547e-080.999999990713634
252.38237530749269e-094.76475061498538e-090.999999997617625
265.49099651576913e-101.09819930315383e-090.9999999994509
271.33109219573940e-102.66218439147880e-100.99999999986689
281.18342499234472e-102.36684998468943e-100.999999999881658
292.14242090669190e-104.28484181338380e-100.999999999785758
308.49613240463002e-111.69922648092600e-100.999999999915039
312.53846456762846e-115.07692913525693e-110.999999999974615
321.8894917483247e-113.7789834966494e-110.999999999981105
339.90924436742731e-121.98184887348546e-110.99999999999009
344.8595531073117e-129.7191062146234e-120.99999999999514
351.77723058884518e-123.55446117769036e-120.999999999998223
363.65950236524589e-127.31900473049179e-120.99999999999634
374.49461507795451e-128.98923015590901e-120.999999999995505
387.09215643447724e-121.41843128689545e-110.999999999992908
398.62038375709623e-111.72407675141925e-100.999999999913796
405.14980829705661e-101.02996165941132e-090.99999999948502
419.02213103533153e-091.80442620706631e-080.99999999097787
429.40121662064602e-071.88024332412920e-060.999999059878338
432.14330688363471e-054.28661376726942e-050.999978566931164
440.000572330259334610.001144660518669220.999427669740665
450.00340573640041670.00681147280083340.996594263599583
460.01395721319723800.02791442639447590.986042786802762
470.04088630664338010.08177261328676010.95911369335662
480.1009892996002460.2019785992004910.899010700399754
490.1676136661905830.3352273323811660.832386333809417
500.2129940493499280.4259880986998570.787005950650072
510.2346636780682250.469327356136450.765336321931775
520.2095706572070260.4191413144140510.790429342792974
530.1446089494348580.2892178988697170.855391050565142
540.1222897996530850.244579599306170.877710200346915
550.1097410664960700.2194821329921400.89025893350393
560.1390661310241080.2781322620482160.860933868975892
570.499671175424070.999342350848140.50032882457593
580.6046651805251550.790669638949690.395334819474845


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level370.711538461538462NOK
5% type I error level390.75NOK
10% type I error level410.788461538461538NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/10js881258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/10js881258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/12qca1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/12qca1258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/21b2p1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/21b2p1258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/3olbr1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/3olbr1258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/4v0l21258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/4v0l21258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/5ucew1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/5ucew1258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/6ruh01258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/6ruh01258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/789qw1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/789qw1258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/8lpee1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/8lpee1258648001.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/9upqg1258648001.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586497742aih0ljd2ajpv0i/9upqg1258648001.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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