Home » date » 2008 » Dec » 20 »

transport

*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: Sat, 20 Dec 2008 01:48:40 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p.htm/, Retrieved Sat, 20 Dec 2008 09:55:34 +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/2008/Dec/20/t1229763324i7vnclqwrg0hp2p.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
124.9 11554.5 132 13182.1 151.4 14800.1 108.9 12150.7 121.3 14478.2 123.4 13253.9 90.3 12036.8 79.3 12653.2 117.2 14035.4 116.9 14571.4 120.8 15400.9 96.1 14283.2 100.8 14485.3 105.3 14196.3 116.1 15559.1 112.8 13767.4 114.5 14634 117.2 14381.1 77.1 12509.9 80.1 12122.3 120.3 13122.3 133.4 13908.7 109.4 13456.5 93.2 12441.6 91.2 12953 99.2 13057.2 108.2 14350.1 101.5 13830.2 106.9 13755.5 104.4 13574.4 77.9 12802.6 60 11737.3 99.5 13850.2 95 15081.8 105.6 13653.3 102.5 14019.1 93.3 13962 97.3 13768.7 127 14747.1 111.7 13858.1 96.4 13188 133 13693.1 72.2 12970 95.8 11392.8 124.1 13985.2 127.6 14994.7 110.7 13584.7 104.6 14257.8 112.7 13553.4 115.3 14007.3 139.4 16535.8 119 14721.4 97.4 13664.6 154 16405.9 81.5 13829.4 88.8 13735.6 127.7 15870.5 105.1 15962.4 114.9 15744.1 106.4 16083.7 104.5 14863.9 121.6 15533.1 141.4 17473.1 99 15925.5 126.7 15573.7 134.1 17495 81.3 14155.8 88.6 14913.9 132.7 17250.4 132.9 15879.8 134.4 17647.8 103.7 17749.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
transport[t] = + 54.9985096492864 + 0.00311260210866943Invoer[t] + 7.3549953429037M1[t] + 13.3408353823988M2[t] + 27.0981087061434M3[t] + 10.1103238103206M4[t] + 11.2871096412385M5[t] + 26.6165486678778M6[t] -15.5703016190040M7[t] -12.6127705975196M8[t] + 19.5408533168305M9[t] + 16.5889077671826M10[t] + 14.5450972375246M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)54.998509649286417.7582123.09710.002990.001495
Invoer0.003112602108669430.0011552.6950.0091560.004578
M17.35499534290376.9228641.06240.2923740.146187
M213.34083538239886.8426871.94960.0559760.027988
M327.09810870614346.8305543.96722e-041e-04
M410.11032381032066.8293541.48040.1440810.072041
M511.28710964123856.8063811.65830.1025620.051281
M626.61654866787786.7721613.93030.0002250.000113
M7-15.57030161900407.069044-2.20260.0315420.015771
M8-12.61277059751967.17287-1.75840.0838660.041933
M919.54085331683056.7735822.88490.005460.00273
M1016.58890776718266.7788432.44720.0173950.008698
M1114.54509723752466.7733212.14740.035880.01794


Multiple Linear Regression - Regression Statistics
Multiple R0.82573390130504
R-squared0.681836475764443
Adjusted R-squared0.617125250496194
F-TEST (value)10.5366027754537
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value1.02019281911225e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.7297225778502
Sum Squared Residuals8117.59711344646


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1124.998.318066056810626.5819339431894
2132109.36997728837622.6300227116235
3151.4128.16344082394823.2365591760517
4108.9102.9291279014175.97087209858339
5121.3111.3504951402639.94950485973734
6123.4122.8691754052580.530824594742055
790.376.893977091914613.4060229080854
879.381.7701160531828-2.47011605318282
9117.2118.225978602136-1.02597860213591
10116.9116.942387782735-0.0423877827347017
11120.8117.4804807022183.31951929778194
1296.199.4564280878336-3.35642808783365
13100.8107.440480316899-6.64048031689942
14105.3112.526778346989-7.22677834698903
15116.1130.525905824428-14.4259058244284
16112.8107.9612717305034.8387282694975
17114.5111.8354385487932.66456145120662
18117.2126.37770050215-9.17770050215014
1977.178.3665491495261-1.26654914952614
2080.180.1176355936903-0.0176355936902604
21120.3115.3838616167104.91613838329018
22133.4114.87966636531918.5203336346805
23109.4111.428337162121-2.0283371621212
2493.293.724260044508-0.524260044507987
2591.2102.671040105785-11.4710401057852
2699.2108.981213285004-9.78121328500368
27108.2126.762769875047-18.5627698750470
28101.5108.156743142927-6.65674314292694
29106.9109.101017596327-2.20101759632728
30104.4123.866764381086-19.4667643810865
3177.979.2776077867337-1.37760778673368
326078.9192837818525-18.9192837818525
3399.5117.649524691610-18.1495246916103
3495118.531059899000-23.5310598989996
35105.6112.040897257107-6.44089725710735
36102.598.6343898709343.86561012906598
3793.3105.811655633433-12.5116556334327
3897.3111.195829685322-13.8958296853220
39127127.998472912189-0.998472912188807
40111.7108.2435847417593.45641525824119
4196.4107.334615899657-10.9346158996574
42133124.2362302513868.76376974861444
4372.279.798657379725-7.59865737972495
4495.877.846992355415917.9530076445841
45124.1118.0697259762816.03027402371932
46127.6118.2599522553349.3400477446655
47110.7111.827372752453-1.12737275245262
48104.699.37736799427345.22263200572658
49112.7104.5398464118308.16015358816964
50115.3111.9384965484513.36150345154950
51139.4133.5659843039665.83401569603419
52119110.9306941421738.06930585782687
5397.4108.818082064649-11.4180820646492
54154132.68009725178421.319902748216
5581.582.4736276319155-0.973627631915457
5688.885.13919657560663.66080342439335
57127.7123.9379147317553.76208526824484
58105.1121.272017315894-16.1720173158939
59114.9118.548725745913-3.64872574591339
60106.4105.0606681844931.33933181550707
61104.5108.618911475242-4.11891147524166
62121.6116.6877048458584.91229515414167
63141.4136.4834262604224.91657373957833
6499114.678578341222-15.678578341222
65126.7114.7603507503111.9396492496900
66134.1136.070032208336-1.97003220833587
6781.383.4895809601852-2.18958096018516
6888.688.8067756402518-0.206775640251839
69132.7128.2329943815084.46700561849188
70132.9121.01491638171811.8850836182822
71134.4124.4741863801879.92581361981262
72103.7110.246885817958-6.54688581795794


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.8737519105657660.2524961788684680.126248089434234
170.7832286079722590.4335427840554830.216771392027741
180.6786227858066530.6427544283866940.321377214193347
190.5841885420261420.8316229159477160.415811457973858
200.4660140304569960.9320280609139920.533985969543004
210.3681591928427960.7363183856855920.631840807157204
220.3786488349188730.7572976698377460.621351165081127
230.5203749338632210.9592501322735580.479625066136779
240.4781173953968140.9562347907936290.521882604603186
250.5636580298605770.8726839402788460.436341970139423
260.6285440358714480.7429119282571040.371455964128552
270.7779196044120790.4441607911758420.222080395587921
280.715958022785140.568083954429720.28404197721486
290.6753386589441080.6493226821117850.324661341055892
300.7530164169120150.493967166175970.246983583087985
310.6851090188845610.6297819622308780.314890981115439
320.794256397408130.4114872051837410.205743602591870
330.8594528125248580.2810943749502840.140547187475142
340.949655143025960.1006897139480790.0503448569740393
350.9389546194738720.1220907610522560.061045380526128
360.9153596887396430.1692806225207130.0846403112603565
370.9115538126314170.1768923747371660.088446187368583
380.9305084438955730.1389831122088550.0694915561044275
390.9066722304512270.1866555390975460.093327769548773
400.873335927673970.2533281446520590.126664072326029
410.8879102361247650.2241795277504700.112089763875235
420.8699622015895470.2600755968209060.130037798410453
430.8345616430994690.3308767138010630.165438356900531
440.8426760035303960.3146479929392090.157323996469604
450.7927725731424980.4144548537150050.207227426857502
460.7677029716766780.4645940566466440.232297028323322
470.7043697213587020.5912605572825960.295630278641298
480.6274984879892880.7450030240214240.372501512010712
490.5760687173766760.8478625652466480.423931282623324
500.4768440642646270.9536881285292540.523155935735373
510.3935976997037820.7871953994075640.606402300296218
520.4655652210080860.9311304420161720.534434778991914
530.5405198485148460.9189603029703080.459480151485154
540.6841147016356890.6317705967286220.315885298364311
550.5356491808321180.9287016383357630.464350819167882
560.3785805996049000.7571611992098010.6214194003951


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/104t1w1229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/104t1w1229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/1umfm1229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/1umfm1229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/2iqfp1229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/2iqfp1229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/3li861229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/3li861229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/4v3w71229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/4v3w71229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/58oi51229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/58oi51229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/6ssq41229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/6ssq41229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/7rpgv1229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/7rpgv1229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/8ksyb1229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/8ksyb1229762914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/9odki1229762914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229763324i7vnclqwrg0hp2p/9odki1229762914.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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