Home » date » 2010 » Nov » 29 »

*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: Mon, 29 Nov 2010 15:41:18 +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/29/t1291045170rzgapm9wpfc3zy2.htm/, Retrieved Mon, 29 Nov 2010 16:39:42 +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/29/t1291045170rzgapm9wpfc3zy2.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 «
12008 9169 8788 8417 8247 8197 8236 8253 7733 8366 8626 8863 10102 8463 9114 8563 8872 8301 8301 8278 7736 7973 8268 9476 11100 8962 9173 8738 8459 8078 8411 8291 7810 8616 8312 9692 9911 8915 9452 9112 8472 8230 8384 8625 8221 8649 8625 10443 10357 8586 8892 8329 8101 7922 8120 7838 7735 8406 8209 9451 10041 9411 10405 8467 8464 8102 7627 7513 7510 8291 8064 9383 9706 8579 9474 8318 8213 8059 9111 7708 7680 8014 8007 8718 9486 9113 9025 8476 7952 7759 7835 7600 7651 8319 8812 8630
 
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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Sterftes[t] = + 9560.57142857143 + 960.314153439157M1[t] -474.578042328042M2[t] -79.7202380952388M3[t] -813.362433862435M4[t] -1014.12962962963M5[t] -1276.39682539683M6[t] -1100.03902116402M7[t] -1335.68121693122M8[t] -1585.19841269841M9[t] -1011.21560846561M10[t] -970.857804232804M11[t] -4.23280423280425t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9560.57142857143164.96036257.956800
M1960.314153439157203.6179554.71631e-055e-06
M2-474.578042328042203.500867-2.33210.022120.01106
M3-79.7202380952388203.394873-0.39190.6961010.348051
M4-813.362433862435203.299989-4.00080.0001366.8e-05
M5-1014.12962962963203.216231-4.99043e-062e-06
M6-1276.39682539683203.143613-6.283200
M7-1100.03902116402203.082147-5.41671e-060
M8-1335.68121693122203.031842-6.578700
M9-1585.19841269841202.992708-7.809100
M10-1011.21560846561202.96475-4.98223e-062e-06
M11-970.857804232804202.947974-4.78387e-064e-06
t-4.232804232804251.506629-2.80950.0061870.003094


Multiple Linear Regression - Regression Statistics
Multiple R0.88076124618955
R-squared0.775740372789369
Adjusted R-squared0.743317294156507
F-TEST (value)23.9255618373981
F-TEST (DF numerator)12
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation405.884762262813
Sum Squared Residuals13673622.5396826


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11200810516.65277777771491.34722222225
291699077.5277777777891.4722222222215
387889468.15277777778-680.152777777779
484178730.27777777778-313.277777777776
582478525.27777777778-278.277777777776
681978258.77777777778-61.7777777777776
782368430.90277777778-194.902777777778
882538191.0277777777861.9722222222178
977337937.27777777778-204.277777777777
1083668507.02777777778-141.027777777779
1186268543.1527777777882.8472222222203
1288639509.77777777778-646.777777777778
131010210465.8591269841-363.859126984132
1484639026.73412698413-563.734126984127
1591149417.35912698413-303.359126984128
1685638679.48412698413-116.484126984127
1788728474.48412698413397.515873015872
1883018207.9841269841393.0158730158723
1983018380.10912698413-79.1091269841275
2082788140.23412698413137.765873015873
2177367886.48412698413-150.484126984128
2279738456.23412698413-483.234126984128
2382688492.35912698413-224.359126984127
2494769458.9841269841317.0158730158728
251110010415.0654761905684.93452380952
2689628975.94047619048-13.9404761904765
2791739366.56547619048-193.565476190477
2887388628.69047619048109.309523809524
2984598423.6904761904835.3095238095232
3080788157.19047619048-79.1904761904767
3184118329.3154761904881.6845238095236
3282918089.44047619048201.559523809524
3378107835.69047619048-25.6904761904767
3486168405.44047619048210.559523809524
3583128441.56547619048-129.565476190476
3696929408.19047619048283.809523809523
37991110364.2718253968-453.271825396830
3889158925.14682539683-10.1468253968256
3994529315.77182539683136.228174603174
4091128577.89682539683534.103174603175
4184728372.8968253968399.1031746031742
4282308106.39682539683123.603174603174
4383848278.52182539683105.478174603175
4486258038.64682539683586.353174603175
4582217784.89682539683436.103174603174
4686498354.64682539683294.353174603175
4786258390.77182539683234.228174603175
48104439357.396825396831085.60317460317
491035710313.478174603243.5218253968213
5085868874.35317460317-288.353174603174
5188929264.97817460317-372.978174603175
5283298527.10317460317-198.103174603174
5381018322.10317460317-221.103174603175
5479228055.60317460317-133.603174603175
5581208227.72817460317-107.728174603174
5678387987.85317460317-149.853174603174
5777357734.103174603170.896825396825363
5884068303.85317460317102.146825396826
5982098339.97817460317-130.978174603174
6094519306.60317460317144.396825396826
611004110262.6845238095-221.684523809528
6294118823.55952380952587.440476190477
63104059214.184523809521190.81547619048
6484678476.30952380952-9.30952380952334
6584648271.30952380952192.690476190476
6681028004.8095238095297.1904761904763
6776278176.93452380952-549.934523809524
6875137937.05952380952-424.059523809523
6975107683.30952380952-173.309523809524
7082918253.0595238095237.9404761904766
7180648289.18452380952-225.184523809523
7293839255.80952380952127.190476190477
73970610211.8908730159-505.890873015876
7485798772.76587301587-193.765873015872
7594749163.39087301587310.609126984127
7683188425.51587301587-107.515873015872
7782138220.51587301587-7.51587301587273
7880597954.01587301587104.984126984127
7991118126.14087301587984.859126984127
8077087886.26587301587-178.265873015872
8176807632.5158730158747.4841269841275
8280148202.26587301587-188.265873015872
8380078238.39087301587-231.390873015872
8487189205.01587301587-487.015873015872
85948610161.0972222222-675.097222222226
8691138721.97222222222391.027777777779
8790259112.59722222222-87.5972222222217
8884768374.72222222222101.277777777779
8979528169.72222222222-217.722222222222
9077597903.22222222222-144.222222222222
9178358075.34722222222-240.347222222221
9276007835.47222222222-235.472222222221
9376517581.7222222222269.2777777777785
9483198151.47222222222167.527777777779
9588128187.59722222222624.402777777779
9686309154.22222222222-524.222222222221


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9870200141847270.02595997163054660.0129799858152733
170.993215475638390.01356904872322130.00678452436161064
180.9871333518408690.02573329631826230.0128666481591311
190.9767902721992460.04641945560150790.0232097278007540
200.9594030096638490.08119398067230240.0405969903361512
210.9354202044054380.1291595911891240.0645797955945622
220.920147365396060.1597052692078810.0798526346039403
230.8884825892708350.2230348214583310.111517410729165
240.9009655652563970.1980688694872060.0990344347436028
250.9058265065764990.1883469868470020.0941734934235012
260.8759877516938590.2480244966122830.124012248306141
270.8605860320196960.2788279359606070.139413967980304
280.8228777827474520.3542444345050960.177122217252548
290.767449765979030.4651004680419390.232550234020969
300.7124055184530480.5751889630939040.287594481546952
310.6500217084276160.6999565831447680.349978291572384
320.5786926518213520.8426146963572950.421307348178648
330.5126373851158930.9747252297682140.487362614884107
340.4848099847516590.9696199695033170.515190015248341
350.4323147136910710.8646294273821420.567685286308929
360.4170191033671060.8340382067342110.582980896632894
370.656858733725770.686282532548460.34314126627423
380.603283016180020.7934339676399590.396716983819979
390.5892885097674190.8214229804651620.410711490232581
400.5977951473916310.8044097052167380.402204852608369
410.5301899595042770.9396200809914460.469810040495723
420.4608798269553290.9217596539106580.539120173044671
430.394180475756210.788360951512420.60581952424379
440.4108588572669780.8217177145339560.589141142733022
450.3897490729268060.7794981458536120.610250927073194
460.3400589923204750.680117984640950.659941007679525
470.2847275397655280.5694550795310560.715272460234472
480.6277138923070930.7445722153858130.372286107692907
490.6649382710412870.6701234579174270.335061728958713
500.675602422558380.6487951548832410.324397577441620
510.7619573373239290.4760853253521410.238042662676070
520.7414211116603350.5171577766793290.258578888339665
530.7229456284072110.5541087431855780.277054371592789
540.6844361158012430.6311277683975140.315563884198757
550.6420586901257020.7158826197485960.357941309874298
560.6094835762807380.7810328474385230.390516423719262
570.5436813553372590.9126372893254820.456318644662741
580.4730491065436270.9460982130872540.526950893456373
590.4315820804518530.8631641609037070.568417919548146
600.3842567633777380.7685135267554760.615743236622262
610.3750225192685560.7500450385371130.624977480731444
620.3971446601651670.7942893203303340.602855339834833
630.7663055738847820.4673888522304360.233694426115218
640.7052513275415820.5894973449168360.294748672458418
650.665768192845120.668463614309760.33423180715488
660.6004336950298150.7991326099403690.399566304970185
670.7542783813596040.4914432372807910.245721618640396
680.7311383347314140.5377233305371720.268861665268586
690.6811621081073210.6376757837853570.318837891892679
700.5979369681615640.8041260636768730.402063031838436
710.6017243044882210.7965513910235580.398275695511779
720.6045650795246410.7908698409507170.395434920475359
730.5534950762812190.8930098474375630.446504923718781
740.5612801550858940.8774396898282130.438719844914106
750.4929241626094860.9858483252189710.507075837390514
760.401914899464650.80382979892930.59808510053535
770.2982534340515790.5965068681031590.70174656594842
780.2083212614708970.4166425229417940.791678738529103
790.7786635679125140.4426728641749710.221336432087486
800.6886517893577950.6226964212844090.311348210642205


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.0615384615384615NOK
10% type I error level50.0769230769230769OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/10n1jj1291045270.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/10n1jj1291045270.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/1o82u1291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/1o82u1291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/2o82u1291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/2o82u1291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/3gz1f1291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/3gz1f1291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/4gz1f1291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/4gz1f1291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/5gz1f1291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/5gz1f1291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/69r001291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/69r001291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/7k0h31291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/7k0h31291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/8k0h31291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/8k0h31291045269.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/9k0h31291045269.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291045170rzgapm9wpfc3zy2/9k0h31291045269.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