Home » date » 2008 » Dec » 11 »

Multiple Regression - Totale Productie (A)

*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: Thu, 11 Dec 2008 08:10:14 -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/11/t1229008309f8te1y8fmbpz1sa.htm/, Retrieved Thu, 11 Dec 2008 15:11:49 +0000
 
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/11/t1229008309f8te1y8fmbpz1sa.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101,5 1 100,7 1 110,6 1 96,8 1 100,0 1 104,8 1 86,8 1 92,0 1 100,2 1 106,6 1 102,1 1 93,7 1 97,6 1 96,9 1 105,6 1 102,8 1 101,7 1 104,2 1 92,7 1 91,9 1 106,5 1 112,3 1 102,8 1 96,5 1 101,0 0 98,9 0 105,1 0 103,0 0 99,0 0 104,3 0 94,6 0 90,4 0 108,9 0 111,4 0 100,8 0 102,5 0 98,2 0 98,7 0 113,3 0 104,6 0 99,3 0 111,8 0 97,3 0 97,7 0 115,6 0 111,9 0 107,0 0 107,1 0 100,6 0 99,2 0 108,4 0 103,0 0 99,8 0 115,0 0 90,8 0 95,9 0 114,4 0 108,2 0 112,6 0 109,1 0 105,0 0 105,0 0 118,5 0 103,7 0 112,5 0 116,6 0 96,6 0 101,9 0 116,5 0 119,3 0 115,4 0 108,5 0 111,5 0 108,8 0 121,8 0 109,6 0 112,2 0 119,6 0 104,1 0 105,3 0 115,0 0 124,1 0 116,8 0 107,5 0 115,6 0 116,2 0 116,3 0 119,0 0 111,9 0 118,6 0 106,9 0 103,2 0
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 107.689705882353 -7.38553921568628X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)107.6897058823530.90388119.141600
X-7.385539215686281.769697-4.17336.9e-053.5e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.402668140869686
R-squared0.162141631671449
Adjusted R-squared0.152832094245577
F-TEST (value)17.4167226849349
F-TEST (DF numerator)1
F-TEST (DF denominator)90
p-value6.91247867468103e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.45358405768734
Sum Squared Residuals5000.03237745098


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1101.5100.3041666666671.19583333333329
2100.7100.3041666666670.395833333333338
3110.6100.30416666666710.2958333333333
496.8100.304166666667-3.50416666666667
5100100.304166666667-0.304166666666664
6104.8100.3041666666674.49583333333333
786.8100.304166666667-13.5041666666667
892100.304166666667-8.30416666666666
9100.2100.304166666667-0.104166666666661
10106.6100.3041666666676.29583333333333
11102.1100.3041666666671.79583333333333
1293.7100.304166666667-6.60416666666666
1397.6100.304166666667-2.70416666666667
1496.9100.304166666667-3.40416666666666
15105.6100.3041666666675.29583333333333
16102.8100.3041666666672.49583333333333
17101.7100.3041666666671.39583333333334
18104.2100.3041666666673.89583333333334
1992.7100.304166666667-7.60416666666666
2091.9100.304166666667-8.40416666666666
21106.5100.3041666666676.19583333333334
22112.3100.30416666666711.9958333333333
23102.8100.3041666666672.49583333333333
2496.5100.304166666667-3.80416666666666
25101107.689705882353-6.68970588235294
2698.9107.689705882353-8.78970588235294
27105.1107.689705882353-2.58970588235295
28103107.689705882353-4.68970588235294
2999107.689705882353-8.68970588235294
30104.3107.689705882353-3.38970588235294
3194.6107.689705882353-13.0897058823529
3290.4107.689705882353-17.2897058823529
33108.9107.6897058823531.21029411764707
34111.4107.6897058823533.71029411764707
35100.8107.689705882353-6.88970588235294
36102.5107.689705882353-5.18970588235294
3798.2107.689705882353-9.48970588235294
3898.7107.689705882353-8.98970588235294
39113.3107.6897058823535.61029411764706
40104.6107.689705882353-3.08970588235295
4199.3107.689705882353-8.38970588235294
42111.8107.6897058823534.11029411764706
4397.3107.689705882353-10.3897058823529
4497.7107.689705882353-9.98970588235294
45115.6107.6897058823537.91029411764705
46111.9107.6897058823534.21029411764706
47107107.689705882353-0.689705882352941
48107.1107.689705882353-0.589705882352947
49100.6107.689705882353-7.08970588235295
5099.2107.689705882353-8.48970588235294
51108.4107.6897058823530.710294117647065
52103107.689705882353-4.68970588235294
5399.8107.689705882353-7.88970588235294
54115107.6897058823537.31029411764706
5590.8107.689705882353-16.8897058823529
5695.9107.689705882353-11.7897058823529
57114.4107.6897058823536.71029411764706
58108.2107.6897058823530.510294117647062
59112.6107.6897058823534.91029411764705
60109.1107.6897058823531.41029411764705
61105107.689705882353-2.68970588235294
62105107.689705882353-2.68970588235294
63118.5107.68970588235310.8102941176471
64103.7107.689705882353-3.98970588235294
65112.5107.6897058823534.81029411764706
66116.6107.6897058823538.91029411764705
6796.6107.689705882353-11.0897058823529
68101.9107.689705882353-5.78970588235294
69116.5107.6897058823538.81029411764706
70119.3107.68970588235311.6102941176471
71115.4107.6897058823537.71029411764706
72108.5107.6897058823530.81029411764706
73111.5107.6897058823533.81029411764706
74108.8107.6897058823531.11029411764706
75121.8107.68970588235314.1102941176471
76109.6107.6897058823531.91029411764705
77112.2107.6897058823534.51029411764706
78119.6107.68970588235311.9102941176471
79104.1107.689705882353-3.58970588235295
80105.3107.689705882353-2.38970588235294
81115107.6897058823537.31029411764706
82124.1107.68970588235316.4102941176471
83116.8107.6897058823539.11029411764706
84107.5107.689705882353-0.189705882352941
85115.6107.6897058823537.91029411764705
86116.2107.6897058823538.51029411764706
87116.3107.6897058823538.61029411764706
88119107.68970588235311.3102941176471
89111.9107.6897058823534.21029411764706
90118.6107.68970588235310.9102941176471
91106.9107.689705882353-0.789705882352935
92103.2107.689705882353-4.48970588235294


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3967559407568280.7935118815136570.603244059243172
60.2589299537583430.5178599075166860.741070046241657
70.6562407173450030.6875185653099930.343759282654997
80.6480250944247580.7039498111504840.351974905575242
90.5339363011501550.932127397699690.466063698849845
100.5126545559796250.974690888040750.487345444020375
110.4137158361206590.8274316722413180.586284163879341
120.3863711820412480.7727423640824960.613628817958752
130.3037089109569580.6074178219139160.696291089043042
140.2366879615186280.4733759230372550.763312038481372
150.2157345676891620.4314691353783240.784265432310838
160.1650097545985550.3300195091971110.834990245401445
170.1187554314613560.2375108629227130.881244568538644
180.0929754144670660.1859508289341320.907024585532934
190.1000200147664020.2000400295328040.899979985233598
200.1167931492348520.2335862984697040.883206850765148
210.1113825790538150.2227651581076310.888617420946185
220.1929961479459370.3859922958918730.807003852054063
230.1527485321145430.3054970642290860.847251467885457
240.1221769785857880.2443539571715760.877823021414212
250.09386860347191780.1877372069438360.906131396528082
260.07525182453896750.1505036490779350.924748175461032
270.05975987647691050.1195197529538210.94024012352309
280.04347571490491090.08695142980982180.95652428509509
290.03545981366466310.07091962732932620.964540186335337
300.02581394607679830.05162789215359660.974186053923202
310.03291254089648950.0658250817929790.96708745910351
320.07207111027306080.1441422205461220.92792888972694
330.07853064108519270.1570612821703850.921469358914807
340.09592387131281630.1918477426256330.904076128687184
350.07982586307234670.1596517261446930.920174136927653
360.06348727140452170.1269745428090430.936512728595478
370.06130138944889310.1226027788977860.938698610551107
380.05790144945727580.1158028989145520.942098550542724
390.08205180372685790.1641036074537160.917948196273142
400.06556845741585910.1311369148317180.93443154258414
410.06240612849219720.1248122569843940.937593871507803
420.06871219785111540.1374243957022310.931287802148885
430.07964354424290890.1592870884858180.920356455757091
440.09084882338406280.1816976467681260.909151176615937
450.1359035002398800.2718070004797590.86409649976012
460.1365665933069430.2731331866138850.863433406693057
470.1129506527235370.2259013054470750.887049347276463
480.09220489040836550.1844097808167310.907795109591634
490.08939747337224420.1787949467444880.910602526627756
500.09801079146744120.1960215829348820.901989208532559
510.08190285789689890.1638057157937980.918097142103101
520.07223115965033820.1444623193006760.927768840349662
530.0801610802002780.1603221604005560.919838919799722
540.09573865884344040.1914773176868810.90426134115656
550.3142297207929800.6284594415859590.68577027920702
560.4836387799106880.9672775598213760.516361220089312
570.4972634472478130.9945268944956270.502736552752187
580.4589215868671230.9178431737342450.541078413132877
590.4384819730516780.8769639461033560.561518026948322
600.3972448544953060.7944897089906110.602755145504694
610.3806638958154740.7613277916309480.619336104184526
620.3681997799877730.7363995599755460.631800220012227
630.4351293456896170.8702586913792350.564870654310383
640.4448014582537770.8896029165075530.555198541746223
650.4074122872488520.8148245744977040.592587712751148
660.4167983055730160.8335966111460320.583201694426984
670.6614697867080830.6770604265838340.338530213291917
680.750499355559550.4990012888808990.249500644440450
690.74263084938370.51473830123260.2573691506163
700.7782419959725730.4435160080548540.221758004027427
710.7504745420688870.4990509158622260.249525457931113
720.7144659488633160.5710681022733690.285534051136684
730.6582244975811250.6835510048377510.341775502418875
740.6151113757723310.7697772484553380.384888624227669
750.7024980108818290.5950039782363420.297501989118171
760.6468903633387950.7062192733224090.353109636661205
770.5741237548229460.8517524903541080.425876245177054
780.5912330165240380.8175339669519230.408766983475962
790.6379607907432540.7240784185134910.362039209256746
800.677191053286180.6456178934276390.322808946713820
810.5948276911728190.8103446176543620.405172308827181
820.752790989516260.4944180209674810.247209010483741
830.6950251652157030.6099496695685950.304974834784297
840.6526358053726130.6947283892547740.347364194627387
850.5431521317039890.9136957365920220.456847868296011
860.4326464920760430.8652929841520860.567353507923957
870.3224020101453290.6448040202906570.677597989854671


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.0481927710843374OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/10ylqw1229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/10ylqw1229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/1md8x1229008201.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/1md8x1229008201.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/2n1u01229008201.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/2n1u01229008201.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/33twi1229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/33twi1229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/4pobd1229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/4pobd1229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/5k5v71229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/5k5v71229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/64mfz1229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/64mfz1229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/7wjg21229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/7wjg21229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/85kdp1229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/85kdp1229008202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/9wfje1229008202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229008309f8te1y8fmbpz1sa/9wfje1229008202.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



Error 001_3: History of computation (impact.txt) is not saved due to a technical problem. We are sorry for this inconveniance and will correct it A.S.A.P.