Home » date » 2009 » Nov » 20 »

WS 7 Multiple Regression - Linear Trend

*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:24:16 -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/t1258723518c2p3fpmuxqii2wa.htm/, Retrieved Fri, 20 Nov 2009 14:25:31 +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/t1258723518c2p3fpmuxqii2wa.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 - Linear Trend
 
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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 13.0121448258197 + 0.256102930340177X[t] + 1.61764090464894M1[t] -0.368594387114941M2[t] -1.26533457658441M3[t] + 0.947682584358821M4[t] + 1.44220586859912M5[t] + 0.81233944587344M6[t] + 0.151780623896049M7[t] + 0.213377436825695M8[t] -0.102263491369389M9[t] + 2.06583577579154M10[t] + 0.236982839056767M11[t] + 0.11686151426312t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13.01214482581970.58784222.135400
X0.2561029303401770.0292718.749400
M11.617640904648940.68122.37470.0208340.010417
M2-0.3685943871149410.710692-0.51860.6059510.302975
M3-1.265334576584410.710527-1.78080.0800870.040043
M40.9476825843588210.7099461.33490.1870490.093524
M51.442205868599120.7086832.03510.0463460.023173
M60.812339445873440.707551.14810.2555610.12778
M70.1517806238960490.7069470.21470.8307430.415371
M80.2133774368256950.7063910.30210.7636630.381832
M9-0.1022634913693890.706137-0.14480.8853460.442673
M102.065835775791540.7059592.92630.0048640.002432
M110.2369828390567670.7058580.33570.738260.36913
t0.116861514263120.00756115.45600


Multiple Linear Regression - Regression Statistics
Multiple R0.910055945215638
R-squared0.828201823422328
Adjusted R-squared0.790347987905214
F-TEST (value)21.8789407231372
F-TEST (DF numerator)13
F-TEST (DF denominator)59
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.22252474545640
Sum Squared Residuals88.1794384419416


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
114.214.5417649004596-0.341764900459630
213.512.8260528811630.673947118836999
311.912.1486153780927-0.248615378092716
414.614.6833763975712-0.0833763975712067
515.615.03865826573450.561341734265546
614.114.4744327712039-0.374432771203856
714.914.23805897989780.661941020102203
814.214.2628555488865-0.062855548886458
914.614.21773789315860.382262106841401
1017.216.68197072582080.518029274179232
1115.415.32852340582540.0714765941746366
1214.315.2596226670998-0.959622667099753
1317.516.94290449994380.557095500056226
1414.515.1759718945791-0.675971894579086
1514.415.0363505452232-0.636350545223174
1616.617.2893983413275-0.689398341327476
1716.717.6446802094907-0.944680209490723
1816.617.0036238358581-0.403623835858072
1916.916.30626476993970.593735230060303
2015.716.6896054414046-0.989605441404605
2116.416.00423045982630.395769540173696
2218.417.49527215719580.904727842804195
2316.915.45034692528191.44965307471808
2416.515.33022560048831.16977439951172
2518.317.73059563828480.56940436171521
2615.115.4514571722398-0.351457172239753
2715.714.46669615276131.23330384723874
2818.116.43803072549141.66196927450864
2916.817.3055184543350-0.505518454334962
3018.917.38155028565481.51844971434519
311917.09395590828071.90604409171929
3218.117.93828185435790.161718145642063
3317.817.7907230264940.0092769735059921
3421.520.74155142680250.758448573197485
3517.118.6966261948886-1.59662619488863
3618.719.1655416098774-0.465541609877394
371920.1573455308029-1.15734553080294
3816.418.7745673209485-2.37456732094852
3916.917.4312621989938-0.531262198993776
4018.619.8123614602682-1.21236146026816
4119.320.7822903612478-1.48229036124783
4219.419.9619619363771-0.561961936377062
4317.619.2133822843906-1.61338228439065
4418.619.0589068021412-0.458906802141183
4518.118.9369582673113-0.836958267311272
4620.421.5036322721095-1.10363227210951
4718.119.7660305566038-1.66603055660384
4819.619.31297542236800.287024577632032
4919.921.021867548246-1.12186754824601
5019.219.2805452359153-0.0805452359153402
5117.818.8336003701512-1.03360037015121
5219.220.8049349428813-1.60493494288133
532221.16021681104460.839783188955432
5421.120.46793985134390.632060148656116
5519.519.9754631296976-0.475463129697647
5622.220.10270087082242.09729912917762
5720.920.39051702453670.50948297546325
5822.222.3169337034845-0.116933703484549
5923.520.98909667652322.51090332347684
6021.520.27993861194711.22006138805289
6124.322.37298513333541.92701486666459
6222.819.99140549515432.80859450484570
6320.319.08347535477791.21652464522214
6423.721.77189813246051.92810186753954
6523.321.76863589814751.53136410185254
6619.620.4104913195623-0.810491319562317
671819.0728749277935-1.0728749277935
6817.318.0476494823874-0.747649482387438
6916.817.2598333286731-0.459833328673067
7018.219.1606397145868-0.960639714586848
7116.517.2693762408771-0.769376240877074
721617.2516960882195-1.25169608821950
7318.418.8325367489274-0.43253674892745


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1839827164705320.3679654329410630.816017283529468
180.0894082295999020.1788164591998040.910591770400098
190.03698255280456650.0739651056091330.963017447195433
200.01685931944819580.03371863889639150.983140680551804
210.006062741284716110.01212548256943220.993937258715284
220.002138733675709220.004277467351418440.99786126632429
230.0008779528502115430.001755905700423090.999122047149788
240.0005001272277130090.001000254455426020.999499872772287
250.0001759493470692170.0003518986941384350.99982405065293
260.0003277663532613250.0006555327065226490.999672233646739
270.0001761702824825710.0003523405649651430.999823829717517
280.0001392804190348250.000278560838069650.999860719580965
290.0003872968257466110.0007745936514932220.999612703174253
300.001217025076899800.002434050153799610.9987829749231
310.009661531072477920.01932306214495580.990338468927522
320.007917050793027940.01583410158605590.992082949206972
330.008812785723299830.01762557144659970.9911872142767
340.02496673767778800.04993347535557610.975033262322212
350.06317510077894550.1263502015578910.936824899221054
360.04607551605936440.09215103211872880.953924483940636
370.05064292184697860.1012858436939570.949357078153021
380.1003520524260320.2007041048520630.899647947573968
390.1167604438590330.2335208877180660.883239556140967
400.1313307558500010.2626615117000030.868669244149999
410.1016064397958860.2032128795917730.898393560204114
420.09679163237845120.1935832647569020.903208367621549
430.2080658777422860.4161317554845720.791934122257714
440.1559286213881590.3118572427763180.844071378611841
450.1356197888027470.2712395776054940.864380211197253
460.1267821486915160.2535642973830320.873217851308484
470.1718924181631880.3437848363263760.828107581836812
480.1769007528297180.3538015056594360.823099247170282
490.1416571528732110.2833143057464210.85834284712679
500.1482938963582920.2965877927165830.851706103641708
510.1447843795553410.2895687591106820.85521562044466
520.5181580626538280.9636838746923440.481841937346172
530.5743006132550840.8513987734898320.425699386744916
540.472909217795970.945818435591940.52709078220403
550.4052691651996080.8105383303992160.594730834800392
560.6274859818979320.7450280362041360.372514018102068


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.225NOK
5% type I error level150.375NOK
10% type I error level170.425NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/10a4lz1258723450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/10a4lz1258723450.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/12raq1258723450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/12raq1258723450.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/296o21258723450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/296o21258723450.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/70bcd1258723450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258723518c2p3fpmuxqii2wa/70bcd1258723450.ps (open in new window)


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


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