Home » date » 2009 » Dec » 13 »

Multiple Regression

*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, 12 Dec 2009 16:11:16 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6.htm/, Retrieved Sun, 13 Dec 2009 00:20:29 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
96.8 0 87.0 0 96.3 0 107.1 0 115.2 0 106.1 0 89.5 0 91.3 0 97.6 0 100.7 0 104.6 0 94.7 0 101.8 0 102.5 0 105.3 0 110.3 0 109.8 0 117.3 0 118.8 0 131.3 0 125.9 0 133.1 0 147.0 0 145.8 0 164.4 0 149.8 0 137.7 0 151.7 0 156.8 0 180.0 0 180.4 0 170.4 0 191.6 0 199.5 0 218.2 0 217.5 0 205.0 0 194.0 0 199.3 0 219.3 0 211.1 0 215.2 0 240.2 0 242.2 0 240.7 0 255.4 0 253.0 0 218.2 0 203.7 0 205.6 0 215.6 0 188.5 0 202.9 0 214.0 0 230.3 0 230.0 0 241.0 0 259.6 1 247.8 1 270.3 1 289.7 1 322.7 1 315.0 1 320.2 1 329.5 1 360.6 1 382.2 1 435.4 1 464.0 1 468.8 1 403.0 1 351.6 1 252.0 1 188.0 1 146.5 1 152.9 1 148.1 1 165.1 1 177.0 1 206.1 1 244.9 1 228.6 1 253.4 1 241.1 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 106.454483611626 + 25.9658008658010X[t] -5.10329828901264M1[t] -16.3488971346114M2[t] -23.3230674087817M3[t] -20.5543805400949M4[t] -19.3428365285508M5[t] -9.34557823129251M6[t] -2.89117707689137M7[t] + 7.59179550608124M8[t] + 19.6033395176252M9[t] + 19.476911976912M10[t] + 14.6741702741703M11[t] + 2.13131313131313t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)106.45448361162629.4789793.61120.0005690.000285
X25.965800865801026.036790.99730.3220670.161033
M1-5.1032982890126434.778106-0.14670.883760.44188
M2-16.348897134611434.745458-0.47050.6394370.319718
M3-23.323067408781734.720044-0.67170.5039560.251978
M4-20.554380540094934.701879-0.59230.5555490.277775
M5-19.342836528550834.690976-0.55760.5789130.289457
M6-9.3455782312925134.687341-0.26940.7883970.394198
M7-2.8911770768913734.690976-0.08330.9338180.466909
M87.5917955060812434.7018790.21880.8274640.413732
M919.603339517625234.7200440.56460.5741430.287071
M1019.47691197691234.6332880.56240.5756570.287828
M1114.674170274170334.6223640.42380.6729860.336493
t2.131313131313130.5021954.2446.6e-053.3e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.740505739561174
R-squared0.548348750323041
Adjusted R-squared0.46447066109732
F-TEST (value)6.53744923596676
F-TEST (DF numerator)13
F-TEST (DF denominator)70
p-value6.06570922379035e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation64.7656970041792
Sum Squared Residuals293621.6855906


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
196.8103.482498453927-6.68249845392727
28794.3682127396416-7.36821273964157
396.389.52535559678426.77464440321584
4107.194.425355596784212.6746444032158
5115.297.768212739641317.4317872603587
6106.1109.896784168213-3.79678416821269
789.5118.482498453927-28.982498453927
891.3131.096784168213-39.7967841682127
997.6145.239641311070-47.6396413110699
10100.7147.244526901670-46.5445269016698
11104.6144.573098330241-39.9730983302412
1294.7132.030241187384-37.3302411873841
13101.8129.058256029685-27.2582560296845
14102.5119.943970315399-17.4439703153987
15105.3115.101113172542-9.80111317254176
16110.3120.001113172542-9.70111317254172
17109.8123.343970315399-13.5439703153989
18117.3135.472541743970-18.1725417439703
19118.8144.058256029685-25.2582560296846
20131.3156.672541743970-25.3725417439703
21125.9170.815398886827-44.9153988868274
22133.1172.820284477427-39.7202844774273
23147170.148855905999-23.1488559059988
24145.8157.605998763142-11.8059987631416
25164.4154.6340136054429.76598639455788
26149.8145.5197278911564.28027210884358
27137.7140.676870748299-2.97687074829934
28151.7145.5768707482996.12312925170068
29156.8148.9197278911567.88027210884356
30180161.04829931972818.9517006802721
31180.4169.63401360544210.7659863945578
32170.4182.248299319728-11.8482993197279
33191.6196.391156462585-4.79115646258505
34199.5198.3960420531851.10395794681510
35218.2195.72461348175622.4753865182436
36217.5183.18175633889934.3182436611008
37205180.20977118120024.7902288188003
38194171.09548546691422.904514533086
39199.3166.25262832405733.0473716759431
40219.3171.15262832405748.1473716759431
41211.1174.49548546691436.6045145330859
42215.2186.62405689548528.5759431045145
43240.2195.20977118120044.9902288188003
44242.2207.82405689548534.3759431045145
45240.7221.96691403834318.7330859616574
46255.4223.97179962894331.4282003710575
47253221.30037105751431.6996289424861
48218.2208.7575139146579.4424860853432
49203.7205.785528756957-2.08552875695728
50205.6196.6712430426728.9287569573284
51215.6191.82838589981423.7716141001855
52188.5196.728385899814-8.22838589981445
53202.9200.0712430426722.82875695732839
54214212.1998144712431.80018552875693
55230.3220.7855287569579.5144712430427
56230233.399814471243-3.39981447124305
57241247.5426716141-6.5426716141002
58259.6275.513358070501-15.9133580705009
59247.8272.841929499072-25.0419294990724
60270.3260.29907235621510.0009276437848
61289.7257.32708719851632.3729128014843
62322.7248.2128014842374.48719851577
63315243.36994434137371.630055658627
64320.2248.26994434137371.930055658627
65329.5251.6128014842377.88719851577
66360.6263.74137291280296.8586270871985
67382.2272.327087198516109.872912801484
68435.4284.941372912802150.458627087198
69464299.084230055659164.915769944341
70468.8301.089115646259167.710884353742
71403298.41768707483104.58231292517
72351.6285.87482993197365.7251700680272
73252282.902844774273-30.9028447742733
74188273.788559059988-85.7885590599876
75146.5268.945701917131-122.445701917131
76152.9273.845701917130-120.945701917130
77148.1277.188559059988-129.088559059988
78165.1289.317130488559-124.217130488559
79177297.902844774273-120.902844774273
80206.1310.517130488559-104.417130488559
81244.9324.659987631416-79.7599876314162
82228.6326.664873222016-98.0648732220161
83253.4323.993444650588-70.5934446505875
84241.1311.45058750773-70.3505875077304


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0009478627327032970.001895725465406590.999052137267297
188.46882013730509e-050.0001693764027461020.999915311798627
196.96739554422517e-050.0001393479108845030.999930326044558
206.99210838898216e-050.0001398421677796430.99993007891611
211.68541541393958e-053.37083082787915e-050.99998314584586
224.7921151991973e-069.5842303983946e-060.9999952078848
232.44695753206073e-064.89391506412146e-060.999997553042468
241.91929947807331e-063.83859895614661e-060.999998080700522
251.50416846641238e-063.00833693282476e-060.999998495831534
264.28191431788229e-078.56382863576458e-070.999999571808568
279.1631075452779e-081.83262150905558e-070.999999908368925
281.80312908351082e-083.60625816702164e-080.99999998196871
293.49201164116366e-096.98402328232732e-090.999999996507988
302.16804399870083e-094.33608799740166e-090.999999997831956
312.22729850471351e-094.45459700942701e-090.999999997772701
328.52536473282281e-101.70507294656456e-090.999999999147464
331.29793898985294e-092.59587797970589e-090.999999998702061
341.50769576315348e-093.01539152630696e-090.999999998492304
352.46959829668889e-094.93919659337778e-090.999999997530402
363.83668623705395e-097.6733724741079e-090.999999996163314
371.06461803487717e-092.12923606975434e-090.999999998935382
382.83787147662344e-105.67574295324688e-100.999999999716213
397.30123923235793e-111.46024784647159e-100.999999999926988
402.26441432390822e-114.52882864781644e-110.999999999977356
415.1269152717163e-121.02538305434326e-110.999999999994873
421.19392652257862e-122.38785304515724e-120.999999999998806
437.9113913577429e-131.58227827154858e-120.999999999999209
445.61899572452188e-131.12379914490438e-120.999999999999438
453.45480042583199e-136.90960085166397e-130.999999999999654
461.6453220644415e-133.290644128883e-130.999999999999835
473.88541460232303e-147.77082920464606e-140.999999999999961
481.65296448662065e-143.3059289732413e-140.999999999999983
493.77423859211557e-147.54847718423113e-140.999999999999962
502.28643492727117e-144.57286985454235e-140.999999999999977
518.66444596632846e-151.73288919326569e-140.999999999999991
524.72421041808255e-149.4484208361651e-140.999999999999953
534.80509904655557e-149.61019809311114e-140.999999999999952
542.88485443235013e-145.76970886470026e-140.999999999999971
559.41439987767628e-151.88287997553526e-140.99999999999999
562.66829600235489e-155.33659200470978e-150.999999999999997
575.93425824482947e-161.18685164896589e-151
581.91289627262613e-143.82579254525226e-140.99999999999998
596.08236509242856e-111.21647301848571e-100.999999999939176
600.0002032604802541320.0004065209605082640.999796739519746
610.03272431313083550.0654486262616710.967275686869165
620.07324169856542770.1464833971308550.926758301434572
630.05942172083598660.1188434416719730.940578279164013
640.0454301771245410.0908603542490820.95456982287546
650.02872825939467980.05745651878935960.97127174060532
660.01978038994327420.03956077988654850.980219610056726
670.01439931828917170.02879863657834340.985600681710828


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level440.862745098039216NOK
5% type I error level460.901960784313726NOK
10% type I error level490.96078431372549NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/10b0ia1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/10b0ia1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/1h7ux1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/1h7ux1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/2ebvu1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/2ebvu1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/3nihu1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/3nihu1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/46nkm1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/46nkm1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/5k2uu1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/5k2uu1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/663mu1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/663mu1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/78mnu1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/78mnu1260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/878t01260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/878t01260659471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/9z6jv1260659471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260660017f0poxlxnr7vaia6/9z6jv1260659471.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