Home » date » 2009 » Dec » 20 »

Multiple Regression Analysis 2 Paper

*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: Sun, 20 Dec 2009 05:20:57 -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/20/t1261311725mx2kh2cs8od3co1.htm/, Retrieved Sun, 20 Dec 2009 13:22:17 +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/20/t1261311725mx2kh2cs8od3co1.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 «
-1.2 23.6 -2.4 25.7 0.8 32.5 -0.1 33.5 -1.5 34.5 -4.4 27.9 -4.2 45.3 3.5 40.8 10 58.5 8.6 32.5 9.5 35.5 9.9 46.7 10.4 53.2 16 36.1 12.7 54 10.2 58.1 8.9 41.8 12.6 43.1 13.6 76 14.8 42.8 9.5 41 13.7 61.4 17 34.2 14.7 53.8 17.4 80.7 9 79.5 9.1 96.5 12.2 108.3 15.9 100.1 12.9 108.5 10.9 127.4 10.6 86.5 13.2 71.4 9.6 88.2 6.4 135.6 5.8 70.5 -1 87.5 -0.2 73.3 2.7 92.2 3.6 61.1 -0.9 45.7 0.3 30.5 -1.1 34.8 -2.5 29.2 -3.4 56.7 -3.5 67.1 -3.9 41.8 -4.6 46.8 -0.1 50.1 4.3 81.9 10.2 115.8 8.7 102.5 13.3 106.6 15 101.4 20.7 136.1 20.7 143.4 26.4 127.5 31.2 113.8 31.4 75.3 26.6 98.5 26.6 113.7 19.2 103.7 6.5 73.9 3.1 52.5 -0.2 63.9 -4 44.9 -12.6 31.3 -13 24.9 -17.6 22.8 -21.7 24.8 -23.2 22.8 -16.8 20.9 -19.8 21.5
 
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
Energiedragers[t] = -7.36746638506505 + 0.236669034135203Invoer[t] -2.56663152756032M1[t] -0.76835819175296M2[t] -3.97043927651090M3[t] -2.75825331497566M4[t] -2.20191074851504M5[t] -1.28672975866373M6[t] -5.86821153019543M7[t] -1.44912310628503M8[t] -1.18873828155045M9[t] -1.61257552120687M10[t] -0.0488920455135976M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-7.367466385065054.346891-1.69490.0952830.047641
Invoer0.2366690341352030.0342986.900300
M1-2.566631527560325.312628-0.48310.630770.315385
M2-0.768358191752965.521738-0.13920.8897960.444898
M3-3.970439276510905.558126-0.71430.4777820.238891
M4-2.758253314975665.528363-0.49890.6196550.309827
M5-2.201910748515045.519074-0.3990.6913360.345668
M6-1.286729758663735.511063-0.23350.8161820.408091
M7-5.868211530195435.548183-1.05770.294440.14722
M8-1.449123106285035.512721-0.26290.7935520.396776
M9-1.188738281550455.514891-0.21560.8300690.415035
M10-1.612575521206875.517568-0.29230.7710950.385547
M11-0.04889204551359765.510171-0.00890.992950.496475


Multiple Linear Regression - Regression Statistics
Multiple R0.667430694342178
R-squared0.445463731750082
Adjusted R-squared0.334556478100099
F-TEST (value)4.0165428057207
F-TEST (DF numerator)12
F-TEST (DF denominator)60
p-value0.000146322219272688
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.54356708174346
Sum Squared Residuals5464.78035862425


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1-1.2-4.348708707034633.14870870703463
2-2.4-2.05343039954331-0.34656960045669
30.8-3.646162052181874.44616205218187
4-0.1-2.197307056511432.09730705651143
5-1.5-1.40429545591560-0.0957045440843955
6-4.4-2.05113009135663-2.34886990864337
7-4.2-2.51457066893580-1.68542933106420
83.50.8395071013661842.66049289863382
9105.288933830293844.71106616970616
108.6-1.288298296877859.88829829687785
119.50.985392281221038.51460771877897
129.93.684977509048916.21502249095109
1310.42.656694703367407.7433052966326
14160.40792755546279715.5920724445372
1512.71.4422221817249911.257777818275
1610.23.624751183214566.57524881678544
178.90.3233884932713778.57661150672862
1812.61.5462392274984511.0537607725015
1913.64.751168679014928.84883132098508
2014.81.3128451696365913.4871548303634
219.51.147225732927808.3527742670722
2213.75.551436789629518.14856321037048
23170.6777225368452716.3222774631547
2414.75.365327651408849.33467234859116
2517.49.165093142085478.23490685791453
26910.6793636369306-1.67936363693060
279.111.5006561324711-2.40065613247111
2812.215.5055366968017-3.30553669680173
2915.914.12119318335371.77880681664631
3012.917.0243940599407-4.1243940599407
3110.916.9159570335643-6.01595703356434
3210.611.6552819613449-1.05528196134495
3313.28.341964370637964.85803562936204
349.611.8941669044529-2.29416690445295
356.424.6759625981548-18.2759625981548
365.89.31770052146673-3.51770052146673
37-110.7744425742049-11.7744425742049
38-0.29.21201562529234-9.41201562529234
392.710.4829792856897-7.78297928568973
403.64.33475828562016-0.734758285620164
41-0.91.24639772639867-2.14639772639867
420.3-1.435790602605111.73579060260511
43-1.1-4.999595527355433.89959552735543
44-2.5-1.90585369460217-0.594146305397834
45-3.44.86292956885048-8.26292956885048
46-3.56.90045028420017-10.4004502842002
47-3.92.47640719627281-6.37640719627281
48-4.63.70864441246243-8.30864441246243
49-0.11.92302069754827-2.02302069754827
504.311.2473693188551-6.94736931885508
5110.216.0683684912805-5.86836849128052
528.714.1328562988176-5.43285629881756
5313.315.6595419052325-2.35954190523251
541515.3440439175808-0.344043917580766
5520.718.97497763054061.72502236945940
5620.725.1217500036380-4.42175000363798
5726.421.61909718562284.78090281437717
5831.217.952894178314113.2471058216859
5931.410.404819839802120.9951801601979
6026.615.944433477252410.6555665227476
6126.616.97517126854729.62482873145284
6219.216.40675426300252.7932457369975
636.56.151935961015530.348064038984474
643.12.299404592057420.80059540794258
65-0.25.55377414765936-5.75377414765936
66-41.97224348894181-5.97224348894181
67-12.6-5.82793714682864-6.77206285317136
68-13-2.92353054138354-10.0764694586165
69-17.6-3.16015068833289-14.4398493116671
70-21.7-3.11064985971891-18.5893501402811
71-23.2-2.02030445229605-21.1796955477040
72-16.8-2.42108357163932-14.3789164283607
73-19.8-4.84571367871853-14.9542863212815


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1871050355329190.3742100710658380.812894964467081
170.1198394196856640.2396788393713290.880160580314336
180.0976980443713740.1953960887427480.902301955628626
190.04816594486535510.09633188973071020.951834055134645
200.0570439817301090.1140879634602180.942956018269891
210.05570783399661030.1114156679932210.94429216600339
220.05540590224046160.1108118044809230.944594097759538
230.0713233171918750.142646634383750.928676682808125
240.04931977377635540.09863954755271080.950680226223645
250.04179964225497580.08359928450995160.958200357745024
260.08994446234593290.1798889246918660.910055537654067
270.1026217071154150.205243414230830.897378292884585
280.07902933701815340.1580586740363070.920970662981847
290.05024889184883050.1004977836976610.94975110815117
300.03654117367225190.07308234734450380.963458826327748
310.03008471841763470.06016943683526940.969915281582365
320.02112890410442410.04225780820884820.978871095895576
330.01466693272548220.02933386545096440.985333067274518
340.01158714071645190.02317428143290370.988412859283548
350.1015057394525810.2030114789051620.898494260547419
360.08526583954420710.1705316790884140.914734160455793
370.1271189277529870.2542378555059740.872881072247013
380.1179880484295780.2359760968591560.882011951570422
390.09640684719184470.1928136943836890.903593152808155
400.06927578964543820.1385515792908760.930724210354562
410.06044575737220320.1208915147444060.939554242627797
420.05414669370556230.1082933874111250.945853306294438
430.0573686524099130.1147373048198260.942631347590087
440.0886074615444990.1772149230889980.911392538455501
450.09333165195169020.1866633039033800.90666834804831
460.1072284009871460.2144568019742920.892771599012854
470.1002238085724510.2004476171449020.899776191427549
480.09394080020388810.1878816004077760.906059199796112
490.0660195400521870.1320390801043740.933980459947813
500.04453194418688190.08906388837376370.955468055813118
510.03964999258441380.07929998516882750.960350007415586
520.04127078057893180.08254156115786370.958729219421068
530.02479511611408730.04959023222817470.975204883885913
540.0146603610439850.029320722087970.985339638956015
550.01581867678414000.03163735356828000.98418132321586
560.07890448241276950.1578089648255390.921095517587231
570.115727496299130.231454992598260.88427250370087


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


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/16eok1261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/16eok1261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/2zkj41261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/2zkj41261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/3ydk21261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/3ydk21261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/4pise1261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/4pise1261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/5xpq31261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/5xpq31261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/6efkw1261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/6efkw1261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/7zcc71261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/7zcc71261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/8ogco1261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/8ogco1261311652.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/9fpot1261311652.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261311725mx2kh2cs8od3co1/9fpot1261311652.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by