Home » date » 2010 » Nov » 23 »

Mini-tutorial Ws 7

*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, 23 Nov 2010 19:58:46 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31.htm/, Retrieved Tue, 23 Nov 2010 20:57:37 +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/2010/Nov/23/t12905422476wu67pvkodn2b31.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
2649.2 31077 0 2579.4 31293 0 2504.6 30236 0 2462.3 30160 0 2467.4 32436 0 2446.7 30695 0 2656.3 27525 0 2626.2 26434 0 2482.6 25739 0 2539.9 25204 0 2502.7 24977 0 2466.9 24320 0 2513.2 22680 1 2443.3 22052 1 2293.4 21467 1 2070.8 21383 1 2029.6 21777 1 2052 21928 1 1864.4 21814 1 1670.1 22937 1 1811 23595 1 1905.4 20830 1 1862.8 19650 1 2014.5 19195 1 2197.8 19644 1 2962.3 18483 0 3047 18079 0 3032.6 19178 0 3504.4 18391 0 3801.1 18441 0 3857.6 18584 0 3674.4 20108 0 3721 20148 0 3844.5 19394 0 4116.7 17745 0 4105.2 17696 0 4435.2 17032 0 4296.5 16438 0 4202.5 15683 0 4562.8 15594 0 4621.4 15713 0 4697 15937 0 4591.3 16171 0 4357 15928 0 4502.6 16348 0 4443.9 15579 0 4290.9 15305 0 4199.8 15648 0 4138.5 14954 0 3970.1 15137 0 3862.3 15839 0 3701.6 16050 0 3570.12 15168 0 3801.06 17064 0 3895.51 16005 0 3917.96 14886 0 3813.06 14931 0 3667.03 14544 0 3494.17 13812 0 3364 13031 0 3295.3 12 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 time6 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Bel20[t] = + 4613.22177600925 -0.061195865360757Goudprijs[t] -1244.06723492356Crisis[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)4613.22177600925228.32338220.204800
Goudprijs-0.0611958653607570.011986-5.10583e-061e-06
Crisis-1244.06723492356171.671535-7.246800


Multiple Linear Regression - Regression Statistics
Multiple R0.776409600774211
R-squared0.60281186817437
Adjusted R-squared0.590955506030321
F-TEST (value)50.8429028103661
F-TEST (DF numerator)2
F-TEST (DF denominator)67
p-value3.68594044175552e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation542.797901831124
Sum Squared Residuals19740180.6695622


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12649.22711.43786819299-62.2378681929893
22579.42698.21956127507-118.819561275075
32504.62762.90359096140-258.303590961396
42462.32767.55447672881-305.254476728812
52467.42628.27268716773-160.872687167729
62446.72734.81468876081-288.114688760807
72656.32928.80558195441-272.505581954407
82626.22995.57027106299-369.370271062993
92482.63038.10139748872-555.501397488719
102539.93070.84118545672-530.941185456724
112502.73084.73264689362-582.032646893616
122466.93124.93833043563-658.038330435633
132513.21981.23231470371531.967685296285
142443.32019.66331815027423.63668184973
152293.42055.46289938631237.937100613687
162070.82060.6033520766210.1966479233834
172029.62036.49218112448-6.89218112447866
1820522027.2516054550024.7483945449957
191864.42034.22793410613-169.827934106130
201670.11965.504977306-295.404977306000
2118111925.23809789862-114.238097898622
221905.42094.44466562112-189.044665621115
231862.82166.65578674681-303.855786746809
242014.52194.49990548595-179.999905485953
252197.82167.0229619389730.7770380610269
262962.33482.13859654637-519.838596546372
2730473506.86172615212-459.861726152118
283032.63439.60747012065-407.007470120646
293504.43487.7686161595616.6313838404383
303801.13484.70882289152316.391177108476
313857.63475.95781414494381.642185855064
323674.43382.69531533514291.704684664858
3337213380.24748072071340.752519279288
343844.53426.38916320272418.110836797277
354116.73527.30114518261589.398854817389
364105.23530.29974258529574.900257414712
374435.23570.93379718483864.266202815169
384296.53607.28414120912689.21585879088
394202.53653.48701955649549.012980443508
404562.83658.9334515736903.8665484264
414621.43651.65114359567969.74885640433
4246973637.943269754861059.05673024514
434591.33623.62343726044967.676562739558
4443573638.49403254311718.505967456894
454502.63612.79176909159889.808230908412
464443.93659.85138955401784.04861044599
474290.93676.61905666286614.280943337142
484199.83655.62887484412544.171125155882
494138.53698.09880540448440.401194595516
503970.13686.89996204347283.200037956535
513862.33643.94046456021218.359535439786
523701.63631.0281369690970.571863030906
533570.123685.00289021728-114.882890217282
543801.063568.97552949329232.084470506714
553895.513633.78195091033261.728049089672
563917.963702.26012424902215.699875750985
573813.063699.50631030778113.553689692219
583667.033723.18911020239-56.1591102023939
593494.173767.98448364647-273.814483646468
6033643815.77845449322-451.778454493220
613295.33843.74496496309-548.444964963085
6232773881.07444283315-604.074442833147
633257.23912.46792176322-655.267921763216
643161.73918.89348762610-757.193487626095
653097.33918.46511656857-821.16511656857
663061.33958.30362491842-897.003624918422
673119.33961.73059337862-842.430593378625
683106.223967.23822126109-861.018221261093
693080.583972.92943673964-892.349436739644
702981.853976.35640519985-994.506405199846


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.008343082161634760.01668616432326950.991656917838365
70.001818704795472080.003637409590944170.998181295204528
80.0002870938375678360.0005741876751356730.999712906162432
90.0001308131541282630.0002616263082565250.999869186845872
102.83167245240797e-055.66334490481594e-050.999971683275476
118.96072240673996e-061.79214448134799e-050.999991039277593
126.17076556960727e-061.23415311392145e-050.99999382923443
131.14132862579632e-062.28265725159264e-060.999998858671374
142.47740234932889e-074.95480469865778e-070.999999752259765
152.25508338966473e-074.51016677932945e-070.999999774491661
162.79817927913522e-065.59635855827044e-060.99999720182072
175.9667641580142e-061.19335283160284e-050.999994033235842
184.41520009213631e-068.83040018427263e-060.999995584799908
191.37092569093677e-052.74185138187354e-050.99998629074309
200.0001214119506865690.0002428239013731370.999878588049314
210.0001252004042146310.0002504008084292620.999874799595785
226.9985338021111e-050.0001399706760422220.999930014661979
234.2335594481768e-058.4671188963536e-050.999957664405518
241.67333450080796e-053.34666900161591e-050.999983266654992
258.03100132330144e-061.60620026466029e-050.999991968998677
262.42468854819470e-054.84937709638941e-050.999975753114518
275.1792041030865e-050.000103584082061730.99994820795897
280.0001892060321400150.0003784120642800290.99981079396786
290.001612036566219690.003224073132439380.99838796343378
300.01354143586609230.02708287173218470.986458564133908
310.04220068536020820.08440137072041640.957799314639792
320.1221214909785400.2442429819570790.87787850902146
330.3584274028906460.7168548057812930.641572597109354
340.6852265589338150.629546882132370.314773441066185
350.7873787286828150.4252425426343700.212621271317185
360.8558056953118080.2883886093763830.144194304688192
370.8949470436492160.2101059127015690.105052956350784
380.8870476054717980.2259047890564050.112952394528202
390.8588470721692650.2823058556614690.141152927830735
400.9083410512177730.1833178975644550.0916589487822273
410.9534031744683080.09319365106338430.0465968255316922
420.9856870367123410.02862592657531740.0143129632876587
430.9935629737884060.01287405242318770.00643702621159387
440.9936911616438920.01261767671221580.00630883835610792
450.9965919518443820.006816096311236480.00340804815561824
460.9993214266165430.001357146766913510.000678573383456754
470.9998703814058350.0002592371883291460.000129618594164573
480.9999534488150019.31023699974298e-054.65511849987149e-05
490.9999981694516673.66109666536169e-061.83054833268085e-06
500.9999995041026249.91794753074006e-074.95897376537003e-07
510.9999986734406922.65311861499514e-061.32655930749757e-06
520.999997883157784.23368443959049e-062.11684221979524e-06
530.9999980880037023.82399259632428e-061.91199629816214e-06
540.9999998229440243.54111952755872e-071.77055976377936e-07
550.9999992642836371.47143272569921e-067.35716362849604e-07
560.9999998418948483.16210303397375e-071.58105151698687e-07
570.9999998838196242.32360752082446e-071.16180376041223e-07
580.9999997194812915.61037417310413e-072.80518708655207e-07
590.999998496423623.00715275923046e-061.50357637961523e-06
600.9999922019609861.55960780276960e-057.79803901384798e-06
610.9999662680633736.74638732543073e-053.37319366271536e-05
620.9998064517785690.0003870964428627550.000193548221431377
630.9995745063614850.0008509872770291420.000425493638514571
640.9972367506879170.005526498624166550.00276324931208328


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level430.728813559322034NOK
5% type I error level480.813559322033898NOK
10% type I error level500.847457627118644NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/10rrlt1290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/10rrlt1290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/1kq6z1290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/1kq6z1290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/2kq6z1290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/2kq6z1290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/3vzn21290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/3vzn21290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/4vzn21290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/4vzn21290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/5vzn21290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/5vzn21290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/66q451290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/66q451290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/7y0lq1290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/7y0lq1290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/8y0lq1290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/8y0lq1290542319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/9y0lq1290542319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905422476wu67pvkodn2b31/9y0lq1290542319.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by