Home » date » 2009 » Nov » 20 »

Multiple Regression met monthly dummies, een lineaire trend en een autregressie van 4 lags

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Fri, 20 Nov 2009 10:56:31 -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/t1258739950vrszalg1sg5235m.htm/, Retrieved Fri, 20 Nov 2009 18:59:22 +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/t1258739950vrszalg1sg5235m.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 «
7.9 9.1 7.6 7.5 7.6 7.3 7.9 9 7.9 7.6 7.5 7.6 8.1 9.3 7.9 7.9 7.6 7.5 8.2 9.9 8.1 7.9 7.9 7.6 8 9.8 8.2 8.1 7.9 7.9 7.5 9.3 8 8.2 8.1 7.9 6.8 8.3 7.5 8 8.2 8.1 6.5 8 6.8 7.5 8 8.2 6.6 8.5 6.5 6.8 7.5 8 7.6 10.4 6.6 6.5 6.8 7.5 8 11.1 7.6 6.6 6.5 6.8 8.1 10.9 8 7.6 6.6 6.5 7.7 10 8.1 8 7.6 6.6 7.5 9.2 7.7 8.1 8 7.6 7.6 9.2 7.5 7.7 8.1 8 7.8 9.5 7.6 7.5 7.7 8.1 7.8 9.6 7.8 7.6 7.5 7.7 7.8 9.5 7.8 7.8 7.6 7.5 7.5 9.1 7.8 7.8 7.8 7.6 7.5 8.9 7.5 7.8 7.8 7.8 7.1 9 7.5 7.5 7.8 7.8 7.5 10.1 7.1 7.5 7.5 7.8 7.5 10.3 7.5 7.1 7.5 7.5 7.6 10.2 7.5 7.5 7.1 7.5 7.7 9.6 7.6 7.5 7.5 7.1 7.7 9.2 7.7 7.6 7.5 7.5 7.9 9.3 7.7 7.7 7.6 7.5 8.1 9.4 7.9 7.7 7.7 7.6 8.2 9.4 8.1 7.9 7.7 7.7 8.2 9.2 8.2 8.1 7.9 7.7 8.2 9 8.2 8.2 8.1 7.9 7.9 9 8.2 8.2 8.2 8.1 7.3 9 7.9 8.2 8.2 8.2 6.9 9.8 7.3 7.9 8.2 8.2 6.6 10 6.9 7.3 7.9 8.2 6.7 9.8 6.6 6.9 7.3 7.9 6.9 9.3 6.7 6.6 6.9 7.3 7 9 6.9 6.7 6.6 6.9 7.1 9 7 6.9 6.7 6.6 7.2 9.1 7.1 7 6.9 6.7 7.1 9.1 7.2 7.1 7 6.9 6.9 9.1 7.1 7.2 7.1 7 7 9.2 6.9 7.1 7. etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.00358137222472382 + 0.0430371388604634X[t] + 1.59792849135609Y1[t] -0.866541593526066Y2[t] -0.115378085010860Y3[t] + 0.314938073658562Y4[t] + 0.114618565818876M1[t] + 0.0598786116445835M2[t] + 0.297454773809027M3[t] + 0.163732537521505M4[t] -0.0342366300054975M5[t] + 0.029629519712166M6[t] + 0.0750588409022986M7[t] + 0.0084280845813315M8[t] -0.0150917423286754M9[t] + 0.503060824356568M10[t] -0.379811338849724M11[t] + 0.00157047152209919t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-0.003581372224723820.668581-0.00540.9957470.497873
X0.04303713886046340.0555750.77440.442270.221135
Y11.597928491356090.14807810.791100
Y2-0.8665415935260660.269219-3.21870.0022410.00112
Y3-0.1153780850108600.273253-0.42220.6746250.337313
Y40.3149380736585620.1544962.03850.0467010.023351
M10.1146185658188760.1943760.58970.5580130.279006
M20.05987861164458350.1576940.37970.7057340.352867
M30.2974547738090270.1629911.8250.0738650.036932
M40.1637325375215050.1731580.94560.3488290.174414
M5-0.03423663000549750.155588-0.220.8267140.413357
M60.0296295197121660.1539720.19240.8481660.424083
M70.07505884090229860.1716190.43740.6636990.33185
M80.00842808458133150.1763250.04780.9620630.481032
M9-0.01509174232867540.168227-0.08970.9288690.464434
M100.5030608243565680.1578993.1860.0024630.001231
M11-0.3798113388497240.202474-1.87590.0664040.033202
t0.001570471522099190.0022530.69710.4889320.244466


Multiple Linear Regression - Regression Statistics
Multiple R0.963039353437112
R-squared0.927444796268571
Adjusted R-squared0.903259728358095
F-TEST (value)38.3478268368572
F-TEST (DF numerator)17
F-TEST (DF denominator)51
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.205259595827174
Sum Squared Residuals2.14870658563588


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
17.97.57161470323220.328385296767800
27.98.01288512534686-0.112885125346857
38.17.961948806766780.138051193233223
48.28.172085405451450.0279145945485524
588.05234894808846-0.0523489480884614
67.57.666951525272-0.166951525271997
76.87.09670805838156-0.296708058381559
86.56.388026909106350.111973090893651
96.66.509498118983810.090501881016189
107.67.454042670897780.145957329102217
1187.928298082361660.0717019176383355
128.17.967683037379110.132316962620889
137.77.77443058382585-0.0744305838258467
147.57.229792673844460.270207326155542
157.67.61040766763255-0.0104076676325478
167.87.90191325373629-0.101913253736286
177.87.83985019807479-0.0398501980747887
187.87.653149363490490.146850636509507
197.57.69135249102222-0.191352491022223
207.57.201293845776150.298706154223852
217.17.44361068233211-0.343610682332107
227.57.406116602246780.09388339775322
237.57.424728950189980.0752710498100245
247.67.501341643269670.0986583567303307
257.77.57937478296220.120625217037794
267.77.70810436401226-0.00810436401225563
277.97.853362743731150.0466372562688485
288.18.065056389987760.0349436100122358
298.28.046428880914720.153571119085279
308.28.066666987810620.133333012189385
318.28.058317191127690.141682808872312
327.98.04470671255945-0.144706712559445
337.37.57487261713057-0.274872617130569
346.97.43023074967045-0.530230749670445
356.66.472903470834810.127096529165192
366.76.687661372347080.0123386276529165
376.97.05927555726046-0.159275557260464
3877.13476466790858-0.134764667908577
397.17.25437660142686-0.154376601426861
407.27.20808543069417-0.00808543069417039
417.17.1362752307029-0.0362752307028975
426.96.97522084231921-0.0752208423192126
4376.813548808863650.186451191136349
446.87.10740645222836-0.307406452228362
456.46.64928047942271-0.249280479422713
466.76.632918730446080.0670812695539187
476.66.61927050628903-0.0192705062890313
486.46.54684575319587-0.14684575319587
496.36.278122024423650.0218779755763539
506.26.34448724193971-0.144487241939710
516.56.50638070936561-0.00638070936561317
526.86.88450813124295-0.0845081312429514
536.86.87465836406415-0.0746583640641462
546.46.59250670494674-0.192506704946743
556.16.047291956052710.0527080439472889
565.85.93104004169687-0.131040041696870
576.15.753040706508480.346959293491515
587.26.976691246738910.223308753261090
597.37.55479899032452-0.254798990324520
606.96.99646819380827-0.096468193808266
616.16.33718234829564-0.237182348295637
625.85.669965926948140.130034073051858
636.26.21352347107705-0.0135234710770500
647.16.968351388887380.13164861111262
657.77.650438378154990.0495616218450148
667.97.745504576160940.154495423839061
677.77.592781494552170.107218505447832
687.47.227526038632830.172473961367174
697.57.069697395622320.430302604377684


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.8164952588836850.3670094822326290.183504741116315
220.7745009636166330.4509980727667340.225499036383367
230.6996605415476210.6006789169047570.300339458452379
240.6053536719174110.7892926561651780.394646328082589
250.5258848910463450.948230217907310.474115108953655
260.4220845343502580.8441690687005150.577915465649742
270.3370099688742120.6740199377484230.662990031125788
280.2629252898999280.5258505797998560.737074710100072
290.2734108604480210.5468217208960410.72658913955198
300.2784694775229190.5569389550458380.721530522477081
310.4614121118986180.9228242237972360.538587888101382
320.4584464527303220.9168929054606430.541553547269678
330.3817213561027450.763442712205490.618278643897255
340.8532650026310510.2934699947378970.146734997368949
350.8020518976001160.3958962047997690.197948102399884
360.7390807632044530.5218384735910930.260919236795547
370.7949404448837940.4101191102324120.205059555116206
380.7699035706086070.4601928587827860.230096429391393
390.719544617727170.560910764545660.28045538227283
400.678373867998040.643252264003920.32162613200196
410.6040287639077240.7919424721845510.395971236092276
420.4977132834938340.9954265669876680.502286716506166
430.6154707734119630.7690584531760730.384529226588037
440.6251701753404740.7496596493190520.374829824659526
450.7429395121896610.5141209756206780.257060487810339
460.9758048730005640.04839025399887160.0241951269994358
470.9362907022739110.1274185954521780.0637092977260889
480.845422537646830.3091549247063410.154577462353171


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0357142857142857OK
10% type I error level10.0357142857142857OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/10jreh1258739787.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/10jreh1258739787.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/13cur1258739787.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/13cur1258739787.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/25piz1258739787.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/25piz1258739787.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/482q41258739787.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/482q41258739787.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/79a5b1258739787.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/79a5b1258739787.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/8w33h1258739787.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258739950vrszalg1sg5235m/8w33h1258739787.ps (open in new window)


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