Home » date » 2009 » Nov » 17 »

Multiple regression analysis: # lags = 2

*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: Tue, 17 Nov 2009 11:03:48 -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/17/t1258481132l8mt8sy16f6uiig.htm/, Retrieved Tue, 17 Nov 2009 19:05:44 +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/17/t1258481132l8mt8sy16f6uiig.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 «
8,4 98.6 8,4 8,4 8,6 98.5 8,4 8,4 8,9 98.9 8,6 8,4 8,8 99.4 8,9 8,6 8,3 99.8 8,8 8,9 7,5 99.9 8,3 8,8 7,2 100 7,5 8,3 7,4 100.1 7,2 7,5 8,8 100.1 7,4 7,2 9,3 100.2 8,8 7,4 9,3 100.3 9,3 8,8 8,7 100 9,3 9,3 8,2 99.9 8,7 9,3 8,3 99.4 8,2 8,7 8,5 99.8 8,3 8,2 8,6 99.6 8,5 8,3 8,5 100 8,6 8,5 8,2 99.9 8,5 8,6 8,1 100.3 8,2 8,5 7,9 100.6 8,1 8,2 8,6 100.7 7,9 8,1 8,7 100.8 8,6 7,9 8,7 100.8 8,7 8,6 8,5 100.6 8,7 8,7 8,4 101.1 8,5 8,7 8,5 101.1 8,4 8,5 8,7 100.9 8,5 8,4 8,7 101.1 8,7 8,5 8,6 101.2 8,7 8,7 8,5 101.4 8,6 8,7 8,3 101.9 8,5 8,6 8 102.1 8,3 8,5 8,2 102.1 8 8,3 8,1 103 8,2 8 8,1 103.4 8,1 8,2 8 103.2 8,1 8,1 7,9 103.1 8 8,1 7,9 103 7,9 8 8 103.7 7,9 7,9 8 103.4 8 7,9 7,9 103.5 8 8 8 103.8 7,9 8 7,7 104 8 7,9 7,2 104.2 7,7 8 7,5 104.4 7,2 7,7 7,3 104.4 7,5 7,2 7 104.9 7,3 7,5 7 105.3 7 7,3 7 105.2 7 7 7,2 105.4 7 7 7,3 105.4 7,2 7 7,1 105.5 7,3 7,2 6,8 105.7 7,1 7,3 6,4 105.6 6,8 7,1 6,1 105.8 6,4 6,8 6,5 105.4 6,1 6,4 7,7 105.5 6,5 6,1 7,9 105.8 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 26.3106019568154 -0.232618213537436X[t] + 1.31669964010823Y1[t] -0.717070137986305Y2[t] + 0.0457433670576203M1[t] + 0.193077155005919M2[t] + 0.213469490726063M3[t] -0.0394471352569176M4[t] -0.00298783299766659M5[t] -0.0692285262308117M6[t] -0.0376573725565226M7[t] + 0.044262574759517M8[t] + 0.664799937984984M9[t] -0.203343875163899M10[t] + 0.078324253693556M11[t] + 0.0195867962194246t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)26.31060195681545.2725244.99016e-063e-06
X-0.2326182135374360.04956-4.69371.8e-059e-06
Y11.316699640108230.090314.581400
Y2-0.7170701379863050.087976-8.150700
M10.04574336705762030.1041310.43930.6621750.331087
M20.1930771550059190.1099271.75640.0845850.042292
M30.2134694907260630.1088661.96090.0549680.027484
M4-0.03944713525691760.108836-0.36240.7184080.359204
M5-0.002987832997666590.101962-0.02930.9767290.488364
M6-0.06922852623081170.102329-0.67650.5015410.250771
M7-0.03765737255652260.104668-0.35980.7203890.360194
M80.0442625747595170.1097790.40320.6883660.344183
M90.6647999379849840.1134015.862400
M10-0.2033438751638990.127001-1.60110.1150790.057539
M110.0783242536935560.1035610.75630.4526910.226346
t0.01958679621942460.0052473.73290.0004510.000225


Multiple Linear Regression - Regression Statistics
Multiple R0.977494074989697
R-squared0.955494666639963
Adjusted R-squared0.943356848450863
F-TEST (value)78.7204629163045
F-TEST (DF numerator)15
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.166646632358458
Sum Squared Residuals1.52741050420283


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
18.48.47666408312547-0.0766640831254709
28.68.66684648864691-0.0668464886469137
38.98.877118263193150.0228817368068482
48.88.779075191096090.020924808903915
58.38.39528299875307-0.0952829987530732
67.57.73872447413012-0.238724474130125
77.27.071795959576670.128204040423333
87.47.328687100114970.071312899885034
98.88.44727222897740.352727771022606
109.39.275418859248450.0245811407515536
119.39.207863589844870.0921364101551311
128.78.86037652743881-0.160376527438816
138.28.158948728004670.0410512719953339
148.38.214070681678780.0859293183212242
158.58.65120756120735-0.151207561207351
168.68.6560342883743-0.0560342883742954
178.58.60728903785156-0.107289037851557
188.28.38051998438213-0.180519984382127
198.18.015327770627030.0846722293729708
207.98.13050012748633-0.230500127486333
218.68.555729551354470.0442704486455342
228.78.74901448874428-0.049014488744283
238.78.679990281241570.0200097187584285
248.58.5960694526763-0.0960694526762968
258.48.281750581162980.118249418837021
268.58.460415228917140.0395847710828592
278.78.75029498137365-0.0502949813736477
288.78.662074423125620.0379255768743791
298.68.551444672653290.0485553273467096
308.58.326597168921260.173402831078740
318.38.201483061834060.0985169381659373
3288.06483324843903-0.064833248439029
338.28.45336154344871-0.253361543448714
348.17.87390910375310.226090896246903
358.17.807032751806920.292967248193081
3687.86652595083890.133474049161095
377.97.823447971458870.0765520285411274
387.97.95366742676815-0.0536674267681458
3987.902520823030140.09747917696986
4087.870646421338640.129353578661364
417.97.831723684664940.0682763153350611
4287.583614359579170.416385640420833
437.77.79162564457484-0.0916256445748446
447.27.37989183957172-0.179891839571723
457.57.5302635776509-0.0302635776509058
467.37.43525152174707-0.135251521747067
4777.1417363706377-0.141736370637692
4876.738355763313380.261644236686618
4977.04206878934006-0.0420687893400604
507.27.16246573080030.0375342691997049
517.37.46578479076151-0.16578479076151
527.17.19744907605777-0.0974490760577728
536.86.87192459000868-0.071924590008685
546.46.5969366499135-0.196936649913503
556.16.29001214245233-0.190012142452331
566.56.376384334564820.123615665435180
577.77.73504757009515-0.0350475700951527
587.98.10991660203981-0.209916602039813
597.57.74424182549354-0.244241825493542
606.97.0386723057326-0.138672305732600
616.66.71711984690795-0.117119846907951
626.96.94253444318873-0.0425344431887289
637.77.45307358043420.246926419565800
6488.0347206000076-0.03472060000759
6587.842335016068460.157664983931544
667.77.673607363073820.0263926369261807
677.37.32975542093507-0.0297554209350657
687.47.119703349823130.280296650176870
698.18.17832552847337-0.078325528473368
708.38.15648942446730.143510575532707
718.28.2191351809754-0.0191351809754070


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.07085587675891330.1417117535178270.929144123241087
200.2842032777956180.5684065555912350.715796722204382
210.3212532933165920.6425065866331840.678746706683408
220.2050079192057870.4100158384115740.794992080794213
230.1298793697469520.2597587394939040.870120630253048
240.08382530689689540.1676506137937910.916174693103105
250.04586432312072990.09172864624145980.95413567687927
260.02856591896477450.0571318379295490.971434081035226
270.01653748566631180.03307497133262360.983462514333688
280.008295586925366850.01659117385073370.991704413074633
290.007786004743400860.01557200948680170.9922139952566
300.03384258492610870.06768516985221730.966157415073891
310.02165442743122600.04330885486245200.978345572568774
320.01540494507609760.03080989015219530.984595054923902
330.1213777799949970.2427555599899940.878622220005003
340.1134502908264400.2269005816528810.88654970917356
350.1647281295586830.3294562591173660.835271870441317
360.1264747797025950.2529495594051890.873525220297405
370.1230870439589460.2461740879178910.876912956041054
380.1503868931039970.3007737862079940.849613106896003
390.1027287838654950.2054575677309910.897271216134505
400.06974092702022870.1394818540404570.930259072979771
410.05534285650959620.1106857130191920.944657143490404
420.2125774910392510.4251549820785030.787422508960749
430.2408796248102730.4817592496205450.759120375189727
440.3764249730877060.7528499461754110.623575026912294
450.3305035363771310.6610070727542630.669496463622869
460.3349304018365250.669860803673050.665069598163475
470.3515605708632020.7031211417264040.648439429136798
480.6850830546449220.6298338907101550.314916945355077
490.6919447171295260.6161105657409470.308055282870474
500.8380607477058720.3238785045882550.161939252294128
510.7993692595364310.4012614809271380.200630740463569
520.7558985638373230.4882028723253550.244101436162677


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level50.147058823529412NOK
10% type I error level80.235294117647059NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/103z5x1258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/103z5x1258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/1738v1258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/1738v1258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/2jgny1258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/2jgny1258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/3z6sj1258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/3z6sj1258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/4sx611258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/4sx611258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/54cpf1258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/54cpf1258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/6smc41258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/6smc41258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/7f8nx1258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/7f8nx1258481021.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/8lg061258481021.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258481132l8mt8sy16f6uiig/8lg061258481021.ps (open in new window)


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