Home » date » 2009 » Nov » 22 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 22 Nov 2009 08:25:57 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6.htm/, Retrieved Sun, 22 Nov 2009 16:26:55 +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/22/t1258903603extotp7en1p5pv6.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 «
274412 244752 272433 244576 268361 241572 268586 240541 264768 236089 269974 236997 304744 264579 309365 270349 308347 269645 298427 267037 289231 258113 291975 262813 294912 267413 293488 267366 290555 264777 284736 258863 281818 254844 287854 254868 316263 277267 325412 285351 326011 286602 328282 283042 317480 276687 317539 277915 313737 277128 312276 277103 309391 275037 302950 270150 300316 267140 304035 264993 333476 287259 337698 291186 335932 292300 323931 288186 313927 281477 314485 282656 313218 280190 309664 280408 302963 276836 298989 275216 298423 274352 301631 271311 329765 289802 335083 290726 327616 292300 309119 278506 295916 269826 291413 265861 291542 269034 284678 264176 276475 255198 272566 253353 264981 246057 263290 235372 296806 258556 303598 260993 286994 254663 276427 250643 266424 243422 267153 247105 268381 248541 262522 245039 255542 237080 253158 237085 243803 225554 250741 226839 280445 247934 285257 248333 2709 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] = + 41433.5106011802 + 0.998158246327505X[t] -2917.07031357424M1[t] -4883.42917985957M2[t] -5844.67238720495M3[t] -6705.09432199351M4[t] -5706.65455866484M5[t] + 462.027526960597M6[t] + 9147.79114581125M7[t] + 14952.8874585376M8[t] + 9314.87896653174M9[t] + 4907.54056574619M10[t] + 1613.12804336646M11[t] -376.360237931731t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)41433.510601180217590.2654342.35550.0215270.010763
X0.9981582463275050.06361215.691400
M1-2917.070313574244748.529565-0.61430.5411550.270577
M2-4883.429179859574747.570711-1.02860.3074730.153736
M3-5844.672387204954756.019422-1.22890.223540.11177
M4-6705.094321993514765.249537-1.40710.1641670.082084
M5-5706.654558664844808.228098-1.18690.2396060.119803
M6462.0275269605974821.1111650.09580.9239470.461974
M79147.791145811254775.8715071.91540.059840.02992
M814952.88745853764956.1816223.0170.0036420.001821
M99314.878966531744950.516541.88160.064370.032185
M104907.540565746194926.995160.99610.3229190.161459
M111613.128043366464925.5302010.32750.744340.37217
t-376.36023793173142.686818-8.816800


Multiple Linear Regression - Regression Statistics
Multiple R0.947209342671728
R-squared0.897205538844606
Adjusted R-squared0.876646646613528
F-TEST (value)43.6407530503179
F-TEST (DF numerator)13
F-TEST (DF denominator)65
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8525.28419309094
Sum Squared Residuals4724230587.2428


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1274412282441.307154824-8029.30715482375
2272433279922.912199253-7489.912199253
3268361275586.841382008-7225.84138200802
4268586273320.958057324-4734.95805732407
5264768269499.237070071-4731.23707007095
6269974276197.88660543-6223.88660543005
7304744312038.490736554-7294.49073655419
8309365323226.599892659-13861.5998926585
9308347316509.527757306-8162.52775730634
10298427309122.632412167-10695.6324121669
11289231296544.295461629-7313.29546162884
12291975299246.15093807-7271.15093806991
13294912300544.248319670-5632.24831967046
14293488298154.615777876-4666.61577787602
15290555294232.780632857-3677.78063285699
16284736287092.890591356-2356.89059135583
17281818283703.372124763-1885.37212476252
18287854289519.649770368-1665.64977036810
19316263320186.799710777-3923.79971077679
20325412333684.647048883-8272.64704888297
21326011328918.974285101-2907.97428510106
22328282320581.8322894587700.16771054213
23317480310567.7638737356912.23612626488
24317539309804.0139189277734.9860810729
25313737305725.0328275618011.96717243862
26312276303357.3597671868918.64023281386
27309391299957.5613849969433.4386150036
28302950293842.7798624749107.2201375264
29300316291460.4030664258855.59693357526
30304035295109.6791592538925.3208407467
31333476325644.0740529007831.92594709957
32337698334992.5775610232705.42243897683
33335932330090.1571174945841.8428825056
34323931321200.0354533862730.96454661423
35313927310832.6190184633094.38098153691
36314485310019.9593095854465.04069041498
37313218304265.0705226358952.92947736457
38309664302139.9499161187524.05008388223
39302963297236.9252149595726.07478504119
40298989294383.1266831884605.87331681205
41298423294142.7974837584280.20251624208
42301631296899.7201043704731.2798956303
43329765323666.0676181306098.9323818695
44335083330017.1019125325065.89808746825
45327616325573.8342623142042.16573768637
46309119307021.5407737552097.45922624525
47295916294686.7544353211229.24556467944
48291413288739.5687073342673.43129266618
49291542288613.2942714252928.70572857498
50284678281421.5224065493256.47759345106
51276475271122.4542257435352.5457742565
52272566268044.0700885494521.92991145105
53264981261383.5870487403597.41295125958
54263290256510.5880344256779.41196557525
55296806287961.2921982018844.70780179947
56303598295822.5399192957775.46008070471
57286994283489.8294901053504.17050989542
58276427274693.5347011511733.46529884927
59266424263815.0612441082608.93875589164
60267153265501.7897840341651.21021596563
61268381263641.7144742554739.2855257453
62262522257803.4451913994718.55480860128
63255542248521.5002636017020.49973639899
64253158247289.7088821125868.29111788766
65243803236402.0256691077400.97433089318
66250741243476.9808633317264.01913666862
67280445272842.5324505297602.46754947099
68285257278669.5336656086587.46633439169
69270976271293.67708768-317.677087679987
70261076264642.424370084-3566.42437008395
71255603262134.505966744-6531.50596674403
72260376269629.51734205-9253.51734204978
73263903274874.332429629-10971.3324296293
74264291276552.194741619-12261.1947416194
75263276279904.936895835-16628.9368958352
76262572279583.465834997-17011.4658349973
77256167273684.577537137-17517.5775371366
78264221284031.495462823-19810.4954628227
79293860313019.743232909-19159.7432329086


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0003031599006031160.0006063198012062310.999696840099397
180.0004135432237508720.0008270864475017450.99958645677625
190.0001004289068787890.0002008578137575770.999899571093121
200.0006683254642213630.001336650928442730.999331674535779
210.00191242639399870.00382485278799740.998087573606001
220.8941329993465140.2117340013069730.105867000653486
230.965685651783840.068628696432320.03431434821616
240.9788523312265280.04229533754694360.0211476687734718
250.9809428379297330.03811432414053430.0190571620702671
260.977995956261490.04400808747701880.0220040437385094
270.9697225541239450.06055489175210980.0302774458760549
280.9701197039760430.05976059204791310.0298802960239566
290.9647407754609130.07051844907817360.0352592245390868
300.9650766687198230.06984666256035430.0349233312801772
310.9829062369898680.03418752602026290.0170937630101315
320.999907949463340.0001841010733192079.20505366596034e-05
330.9998929197142150.0002141605715699300.000107080285784965
340.9999906568982671.8686203466313e-059.3431017331565e-06
350.9999972206666255.55866675083073e-062.77933337541536e-06
360.9999972093055135.58138897490804e-062.79069448745402e-06
370.9999953999421459.2001157093108e-064.6000578546554e-06
380.999993112087411.37758251820586e-056.88791259102932e-06
390.999990077949241.98441015197832e-059.9220507598916e-06
400.9999915572303871.68855392259453e-058.44276961297265e-06
410.9999930733975321.38532049357139e-056.92660246785696e-06
420.9999896982604672.06034790649440e-051.03017395324720e-05
430.9999734520461625.30959076763942e-052.65479538381971e-05
440.9999504830525189.90338949647559e-054.95169474823779e-05
450.9999936870019951.26259960098093e-056.31299800490467e-06
460.9999993809750511.23804989712533e-066.19024948562663e-07
470.99999983186343.362732016508e-071.681366008254e-07
480.9999999178118491.64376302575744e-078.21881512878721e-08
490.9999998965095432.06980913317275e-071.03490456658638e-07
500.9999996361466957.27706609056076e-073.63853304528038e-07
510.9999988794285772.24114284495526e-061.12057142247763e-06
520.9999956893787658.62124246968321e-064.31062123484161e-06
530.9999895744366642.08511266725569e-051.04255633362785e-05
540.999999932877211.34245578164038e-076.71227890820189e-08
550.999999966760836.64783390017644e-083.32391695008822e-08
560.999999929222331.41555340513487e-077.07776702567435e-08
570.9999995958968428.0820631691593e-074.04103158457965e-07
580.9999965307450526.93850989492345e-063.46925494746172e-06
590.9999707520249655.84959500705752e-052.92479750352876e-05
600.9998788669150760.0002422661698487530.000121133084924376
610.9998034747028660.0003930505942681650.000196525297134083
620.9982000245927450.003599950814510510.00179997540725526


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level360.782608695652174NOK
5% type I error level400.869565217391304NOK
10% type I error level450.978260869565217NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/109djl1258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/109djl1258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/155na1258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/155na1258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/20rr31258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/20rr31258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/3ngq81258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/3ngq81258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/4mw781258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/4mw781258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/5uthq1258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/5uthq1258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/601uc1258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/601uc1258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/7uedv1258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/7uedv1258903552.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/8u8y41258903552.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258903603extotp7en1p5pv6/8u8y41258903552.ps (open in new window)


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