Home » date » 2010 » Dec » 17 »

Multiple Regression (1)

*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, 17 Dec 2010 14:44:29 +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/Dec/17/t1292597990qlb7z4gr97spczs.htm/, Retrieved Fri, 17 Dec 2010 16:00:07 +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/Dec/17/t1292597990qlb7z4gr97spczs.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 «
10102 8863 8366 8236 12008 8463 10102 8626 8253 9169 9114 8463 8863 7733 8788 8563 9114 10102 8366 8417 8872 8563 8463 8626 8247 8301 8872 9114 8863 8197 8301 8301 8563 10102 8236 8278 8301 8872 8463 8253 7736 8278 8301 9114 7733 7973 7736 8301 8563 8366 8268 7973 8278 8872 8626 9476 8268 7736 8301 8863 11100 9476 7973 8301 10102 8962 11100 8268 8278 8463 9173 8962 9476 7736 9114 8738 9173 11100 7973 8563 8459 8738 8962 8268 8872 8078 8459 9173 9476 8301 8411 8078 8738 11100 8301 8291 8411 8459 8962 8278 7810 8291 8078 9173 7736 8616 7810 8411 8738 7973 8312 8616 8291 8459 8268 9692 8312 7810 8078 9476 9911 9692 8616 8411 11100 8915 9911 8312 8291 8962 9452 8915 9692 7810 9173 9112 9452 9911 8616 8738 8472 9112 8915 8312 8459 8230 8472 9452 9692 8078 8384 8230 9112 9911 8411 8625 8384 8472 8915 8291 8221 8625 8230 9452 7810 8649 8221 8384 9112 8616 8625 8649 8625 8472 8312 10443 8625 8221 8230 9692 10357 10443 8649 8384 9911 8586 10357 8625 8625 8915 8892 8586 10443 8221 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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
Yt[t] = + 3000.29080206064 + 0.241703589564587`Yt-1`[t] -0.0637255373607908`Yt-3`[t] -0.105740638589231`Yt-6`[t] + 0.576198585815679`Yt-12 `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)3000.290802060641347.5393972.22650.0288290.014415
`Yt-1`0.2417035895645870.0798423.02730.0033310.001666
`Yt-3`-0.06372553736079080.07025-0.90710.3670980.183549
`Yt-6`-0.1057406385892310.0802-1.31850.1911580.095579
`Yt-12 `0.5761985858156790.071398.071100


Multiple Linear Regression - Regression Statistics
Multiple R0.806187929180415
R-squared0.649938977156206
Adjusted R-squared0.632214368404622
F-TEST (value)36.6687347667465
F-TEST (DF numerator)4
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation459.357740870306
Sum Squared Residuals16669753.1937002


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11010210657.4945898650-555.494589864962
284639302.77132163496-839.77132163496
391148726.96965685472387.030343145281
485638524.6592533066538.3407466933546
588728370.48040556903501.519594430971
683018349.81102928618-48.8110292861799
783018138.37014436535162.629855634649
882788301.78323592748-23.7832359274822
977367964.15091485477-228.150914854766
1079738256.14436599475-283.144365994751
1182688432.03157906886-164.03157906886
1294768734.81034871273741.189651287271
13111009725.595380377871374.40461962213
1489629157.36552884498-195.36552884498
1591738996.03951070543176.960489294573
1687388601.00274329954136.997256700456
1784598778.95875534954-319.958755349541
1880788241.33328156135-163.333281561351
1984118005.24202562028405.757974379723
2082918316.32966369896-25.3296636989592
2178107976.99375443124-166.993754431245
2286168022.06996653417593.930033465834
2383128424.01034518854-112.010345188539
2496929117.51951239928574.480487600718
25991110300.2425536001-389.242553600063
2689159153.32450322917-238.324503229175
2794528997.08563523348454.914364766518
2891128777.05123061491334.948769385087
2984728629.72839406285-157.728394062852
3082308075.36374072986154.63625927014
3183848207.25508398348176.744916016522
3286258321.43562642432303.564373575677
3382218061.17352885094159.826471149059
3486498454.07942320106194.920576798938
3586258434.6803436399190.319656360104
36104439275.367857548341167.63214245166
37103579797.41388533723559.58611466277
3885869178.77950415891-592.779504158913
3988928987.00727869118-95.00727869118
4083298825.28446081745-496.28446081745
4181018435.83394696266-334.833946962655
4279228029.54897538691-107.548975386912
4381208119.989787523260.010212476735866
4478388508.50705089842-670.507050898419
4577358186.61264575095-451.612645750948
4684068455.2444938832-49.2444938832061
4782098645.67830355556-436.678303555555
4894519671.08303007987-220.083030079870
49100419858.02932792918182.970672070819
5094119022.55954123496388.440458765041
51104058978.347215441461426.65278455855
5284678785.65074411819-318.650744118187
5384648246.83390431542217.166095684581
5481027948.29618942127153.703810578732
5576278035.99992462796-408.999924627958
5675137825.51049730806-312.510497308056
5775107656.57028352559-146.570283525589
5882918277.6694116715213.3305883284799
5980648360.51072689067-296.510726890672
6093839059.75194342397323.248056576032
6197069718.97330234202-12.9733023420156
6285799460.55858248757-881.558582487571
6394749677.16326948595-203.163269485951
6483188673.64833552975-355.648335529746
6582138488.332195801-275.332195801003
6680598057.863172594341.13682740565717
6791117786.45898646371324.54101353630
6877088100.9054050156-392.905405015606
6976807675.242534315244.75746568475654
7080148173.68284223508-159.682842235079
7180078224.12445813855-217.124458138550
7287189000.50684109132-282.506841091322
7394869225.94675521583260.053244784167
7491138910.99950048938202.000499510617
7590259294.1936767038-269.193676703800
7684768522.5796096373-46.5796096373016
7779528353.8932973614-401.893297361396
7877598068.93228746475-309.932287464745
7978358582.22091653142-747.220916531419
8076007865.01721320977-265.017213209767
8176517813.68751416573-162.687514165735
8283198071.67319464203247.326805357967
8388128299.48139827101512.518601728989
8486308845.47640328362-215.476403283621


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2763355130871380.5526710261742770.723664486912862
90.3278247319294040.6556494638588080.672175268070596
100.4101144396900310.8202288793800620.589885560309969
110.3002408554309040.6004817108618070.699759144569096
120.5443385350201220.9113229299597560.455661464979878
130.9673272261505020.06534554769899570.0326727738494978
140.9555495831049010.0889008337901980.044450416895099
150.9333386848079760.1333226303840490.0666613151920245
160.913485380865790.1730292382684200.0865146191342102
170.8976752079718430.2046495840563140.102324792028157
180.8556732009215660.2886535981568670.144326799078434
190.8531341726149550.2937316547700910.146865827385045
200.804418375359460.3911632492810810.195581624640540
210.7621904172319920.4756191655360170.237809582768008
220.7627813674275150.474437265144970.237218632572485
230.7103395056404870.5793209887190250.289660494359513
240.7040720205456870.5918559589086270.295927979454314
250.6721116036636260.6557767926727480.327888396336374
260.6176540609690230.7646918780619530.382345939030977
270.6099952964926810.7800094070146370.390004703507319
280.5864281784938480.8271436430123040.413571821506152
290.5274208723611720.9451582552776560.472579127638828
300.4629922845611330.9259845691222670.537007715438867
310.4008737424125320.8017474848250640.599126257587468
320.3532377417982660.7064754835965310.646762258201734
330.2954931807341470.5909863614682950.704506819265853
340.2450277897417650.490055579483530.754972210258235
350.1998307208254010.3996614416508020.800169279174599
360.4893609601410120.9787219202820230.510639039858988
370.5512070621586980.8975858756826050.448792937841302
380.5755323961606350.848935207678730.424467603839365
390.5179891075872810.9640217848254370.482010892412719
400.5122312903206840.9755374193586320.487768709679316
410.4986890567158540.9973781134317080.501310943284146
420.4357655665434690.8715311330869380.564234433456531
430.3745382618245180.7490765236490370.625461738175481
440.4759290112092740.9518580224185480.524070988790726
450.4859090800661620.9718181601323240.514090919933838
460.4272283035219970.8544566070439930.572771696478003
470.4242590953542830.8485181907085660.575740904645717
480.3763669717123160.7527339434246310.623633028287684
490.3302074597926450.660414919585290.669792540207355
500.3099000061461920.6198000122923840.690099993853808
510.8605860856409120.2788278287181750.139413914359088
520.8280845205742960.3438309588514080.171915479425704
530.8025685141948230.3948629716103540.197431485805177
540.7780245198275520.4439509603448960.221975480172448
550.7626204646116360.4747590707767280.237379535388364
560.7319353069619980.5361293860760040.268064693038002
570.6966103925299370.6067792149401270.303389607470063
580.6294906772323570.7410186455352860.370509322767643
590.5959399430808570.8081201138382860.404060056919143
600.5755016947640310.8489966104719380.424498305235969
610.5283997744554520.9432004510890960.471600225544548
620.663929445468010.6721411090639790.336070554531990
630.6441101010744910.7117797978510180.355889898925509
640.5907984241993880.8184031516012230.409201575800612
650.5154630584554470.9690738830891060.484536941544553
660.4300112710544940.8600225421089890.569988728945506
670.954364553003430.09127089399314060.0456354469965703
680.966552456986080.06689508602784170.0334475430139209
690.9423073537681120.1153852924637760.0576926462318878
700.9299747828678290.1400504342643420.0700252171321708
710.8980663718238880.2038672563522240.101933628176112
720.8368288212401690.3263423575196620.163171178759831
730.9460670385587270.1078659228825460.053932961441273
740.9058215492925290.1883569014149430.0941784507074714
750.819815391715380.3603692165692390.180184608284619
760.8857691093741860.2284617812516270.114230890625814


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 level40.0579710144927536OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/10ch501292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/10ch501292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/1g78r1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/1g78r1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/2g78r1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/2g78r1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/3g78r1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/3g78r1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/4qy7c1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/4qy7c1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/5qy7c1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/5qy7c1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/6qy7c1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/6qy7c1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/7jqof1292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/7jqof1292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/8ch501292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/8ch501292597060.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/9ch501292597060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292597990qlb7z4gr97spczs/9ch501292597060.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