Home » date » 2009 » Nov » 20 »

WS 7 Multiple Regression - Include monthly dummies

*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:21:40 -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/t1258723356dvucnl3ylra0ddx.htm/, Retrieved Fri, 20 Nov 2009 14:22:48 +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/t1258723356dvucnl3ylra0ddx.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 - Include monthly dummies
 
Dataseries X:
» Textbox « » Textfile « » CSV «
14.2 -0.8 13.5 -0.2 11.9 0.2 14.6 1 15.6 0 14.1 -0.2 14.9 1 14.2 0.4 14.6 1 17.2 1.7 15.4 3.1 14.3 3.3 17.5 3.1 14.5 3.5 14.4 6 16.6 5.7 16.7 4.7 16.6 4.2 16.9 3.6 15.7 4.4 16.4 2.5 18.4 -0.6 16.9 -1.9 16.5 -1.9 18.3 0.7 15.1 -0.9 15.7 -1.7 18.1 -3.1 16.8 -2.1 18.9 0.2 19 1.2 18.1 3.8 17.8 4 21.5 6.6 17.1 5.3 18.7 7.6 19 4.7 16.4 6.6 16.9 4.4 18.6 4.6 19.3 6 19.4 4.8 17.6 4 18.6 2.7 18.1 3 20.4 4.1 18.1 4 19.6 2.7 19.9 2.6 19.2 3.1 17.8 4.4 19.2 3 22 2 21.1 1.3 19.5 1.5 22.2 1.3 20.9 3.2 22.2 1.8 23.5 3.3 21.5 1 24.3 2.4 22.8 0.4 20.3 -0.1 23.7 1.3 23.3 -1.1 19.6 -4.4 18 -7.5 17.3 -12.2 16.8 -14.5 18.2 -16 16.5 -16.7 16 -16.3 18.4 -16.9
 
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] = + 17.8062459764093 + 0.0659655162376716X[t] + 1.03333333333334M1[t] -1.02700746857109M2[t] -1.78470344546548M3[t] + 0.522992531428915M4[t] + 1.03930862288108M5[t] + 0.412221265957019M6[t] -0.198024136693129M7[t] -0.127310344158448M8[t] -0.364117240910914M9[t] + 1.8701402300858M10[t] + 0.142304023105606M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)17.80624597640931.11263816.003600
X0.06596551623767160.0591811.11460.2694530.134727
M11.033333333333341.5154970.68180.4979610.248981
M2-1.027007468571091.580703-0.64970.5183560.259178
M3-1.784703445465481.581412-1.12860.263580.13179
M40.5229925314289151.5807030.33090.7419020.370951
M51.039308622881081.5780050.65860.5126580.256329
M60.4122212659570191.5754950.26160.7944910.397245
M7-0.1980241366931291.574399-0.12580.9003280.450164
M8-0.1273103441584481.573201-0.08090.9357710.467886
M9-0.3641172409109141.572949-0.23150.8177240.408862
M101.87014023008581.5727511.18910.2390890.119545
M110.1423040231056061.5727210.09050.9282050.464103


Multiple Linear Regression - Regression Statistics
Multiple R0.364144441329375
R-squared0.132601174151083
Adjusted R-squared-0.0408785910187008
F-TEST (value)0.7643610424611
F-TEST (DF numerator)12
F-TEST (DF denominator)60
p-value0.683563158515654
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.72400674830111
Sum Squared Residuals445.212765887398


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
114.218.7868068967525-4.58680689675246
213.516.7660454045907-3.26604540459065
311.916.0347356341913-4.13473563419133
414.618.3952040240759-3.79520402407586
515.618.8455545992904-3.24555459929035
614.118.2052741391188-4.10527413911876
714.917.6741873559538-2.77418735595381
814.217.7053218387459-3.50532183874589
914.617.5080942517360-2.90809425173603
1017.219.7885275840991-2.58852758409911
1115.418.1530430998517-2.75304309985166
1214.318.0239321799936-3.72393217999359
1317.519.0440724100794-1.54407241007939
1414.517.0101178146700-2.51011781467003
1514.416.4173356283698-2.01733562836982
1616.618.7052419503929-2.10524195039291
1716.719.1555925256074-2.45559252560741
1816.618.4955224105645-1.89552241056451
1916.917.8456976981718-0.94569769817176
2015.717.9691839036966-2.26918390369658
2116.417.6070425260925-1.20704252609254
2218.419.6368068967525-1.23680689675247
2316.917.8232155186633-0.923215518663301
2416.517.6809114955577-1.18091149555769
2518.318.8857551711090-0.585755171108976
2615.116.7198695432243-1.61986954322428
2715.715.9094011533397-0.209401153339747
2818.118.1247454075014-0.0247454075014015
2916.818.7070270151912-1.90702701519124
3018.918.23166034561380.668339654386175
311917.68738045920131.31261954079865
3218.117.92960459395400.170395406046027
3317.817.70599080044900.0940091995509578
3421.520.11175861366371.3882413863363
3517.118.2981672355745-1.19816723557453
3618.718.30758389981560.392416100184425
371919.1496172360597-0.149617236059662
3816.417.2146109150068-0.814610915006818
3916.916.31179080238950.588209197610455
4018.618.6326798825315-0.0326798825314726
4119.319.24134769671640.0586523032836177
4219.418.53510172030710.864898279692886
4317.617.8720839046668-0.272083904666826
4418.617.85704252609250.742957473907466
4518.117.64002528421140.45997471578863
4620.419.94684482306950.453155176930476
4718.118.2124120644656-0.112412064465561
4819.617.98435287025101.61564712974902
4919.919.01108965196060.888910348039446
5019.216.98373160817502.21626839182503
5117.816.31179080238951.48820919761046
5219.218.52713505655120.6728649434488
532218.97748563176573.0225143682343
5421.118.30422241347532.79577758652474
5519.517.70717011407261.79282988592735
5622.217.76469080335984.4353091966402
5720.917.65321838745893.24678161254109
5822.219.79512413572292.40487586427712
5923.518.16623620309925.33376379690081
6021.517.87221149264693.62778850735306
6124.318.9978965487135.30210345128698
6222.816.80562471433335.99437528566675
6320.316.01494597932004.28505402067998
6423.718.41499367894725.28500632105284
6523.318.77299253142894.52700746857109
6619.617.92821897092051.67178102907947
671817.11348046793360.886519532066396
6817.316.87415633415120.425843665848771
6916.816.48562875005210.314371249947881
7018.218.6209379466923-0.420937946692322
7116.516.8469258783458-0.346925878345760
721616.7310080617352-0.731008061735223
7318.417.72476208532600.675237914674042


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.0344088472861820.0688176945723640.965591152713818
170.01651603472739250.03303206945478500.983483965272608
180.005687144876227830.01137428975245570.994312855123772
190.002225177005158620.004450354010317230.997774822994841
200.000731527022095780.001463054044191560.999268472977904
210.0004406950159210120.0008813900318420240.999559304984079
220.001370594400227680.002741188800455360.998629405599772
230.009199901733442550.01839980346688510.990800098266557
240.02887744765436250.0577548953087250.971122552345637
250.03906552436934450.0781310487386890.960934475630655
260.03906026283148860.07812052566297710.960939737168511
270.06932681881628190.1386536376325640.930673181183718
280.08609218075174590.1721843615034920.913907819248254
290.08278564668164940.1655712933632990.91721435331835
300.1200858774164200.2401717548328390.87991412258358
310.1326328383996200.2652656767992410.86736716160038
320.1545523747255520.3091047494511050.845447625274448
330.1416875250857880.2833750501715750.858312474914212
340.1555863504240210.3111727008480420.844413649575979
350.1389891827811830.2779783655623650.861010817218817
360.1314450885750460.2628901771500920.868554911424954
370.1299330252308440.2598660504616880.870066974769156
380.1832722142909560.3665444285819110.816727785709044
390.1875174621015560.3750349242031110.812482537898444
400.1920929412167560.3841858824335130.807907058783244
410.2519734070508120.5039468141016250.748026592949188
420.2383662527009670.4767325054019340.761633747299033
430.2104491225914030.4208982451828050.789550877408597
440.2327127763263070.4654255526526140.767287223673693
450.2245731567491010.4491463134982010.775426843250899
460.1962503436069070.3925006872138130.803749656393093
470.2938767288228750.587753457645750.706123271177125
480.2973579229077680.5947158458155360.702642077092232
490.4515065818772290.9030131637544580.548493418122771
500.6771194314133560.6457611371732870.322880568586644
510.7977042342849730.4045915314300540.202295765715027
520.987927837555460.02414432488908120.0120721624445406
530.996466463933020.007067072133959070.00353353606697954
540.991508895042090.01698220991582120.00849110495791059
550.986133395862090.02773320827582090.0138666041379104
560.9773699203857560.04526015922848850.0226300796142443
570.9596178995737690.08076420085246250.0403821004262313


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.119047619047619NOK
5% type I error level120.285714285714286NOK
10% type I error level170.404761904761905NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/10v3ru1258723296.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/10v3ru1258723296.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/39trc1258723296.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/39trc1258723296.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/5vfgc1258723296.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/5vfgc1258723296.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/85w291258723296.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723356dvucnl3ylra0ddx/85w291258723296.ps (open in new window)


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