Home » date » 2008 » Dec » 12 »

Multiple Regression - Totale Productie (B)

*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 17:13:51 -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/12/t1229040916g0hd9nbgdz0f4do.htm/, Retrieved Fri, 12 Dec 2008 00:15:16 +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/12/t1229040916g0hd9nbgdz0f4do.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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 105.723214285714 -7.58125X[t] + 0.0470982142857072M1[t] -0.777901785714282M2[t] + 8.62209821428571M3[t] + 1.48459821428571M4[t] + 0.722098214285715M5[t] + 8.03459821428571M6[t] -7.60290178571429M7[t] -6.54040178571428M8[t] + 7.45714285714286M9[t] + 9.84285714285714M10[t] + 4.65714285714285M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)105.7232142857142.03267552.011900
X-7.581251.257654-6.028100
M10.04709821428570722.7398880.01720.9863290.493164
M2-0.7779017857142822.739888-0.28390.7772170.388608
M38.622098214285712.7398883.14690.0023280.001164
M41.484598214285712.7398880.54180.5894490.294725
M50.7220982142857152.7398880.26360.7928130.396406
M68.034598214285712.7398882.93250.0043980.002199
M7-7.602901785714292.739888-2.77490.006890.003445
M8-6.540401785714282.739888-2.38710.0193720.009686
M97.457142857142862.8293642.63560.0101050.005053
M109.842857142857142.8293643.47880.0008220.000411
M114.657142857142852.8293641.6460.1037360.051868


Multiple Linear Regression - Regression Statistics
Multiple R0.793150832912932
R-squared0.629088243750478
Adjusted R-squared0.572747217484728
F-TEST (value)11.1657221290785
F-TEST (DF numerator)12
F-TEST (DF denominator)79
p-value1.18460796727504e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.29325548485415
Sum Squared Residuals2213.46573660714


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1101.598.18906253.31093749999996
2100.797.36406253.3359375
3110.6106.76406253.8359375
496.899.6265625-2.8265625
510098.86406251.13593750000000
6104.8106.1765625-1.37656250000000
786.890.5390625-3.7390625
89291.60156250.398437499999997
9100.2105.599107142857-5.39910714285714
10106.6107.984821428571-1.38482142857143
11102.1102.799107142857-0.699107142857147
1293.798.1419642857143-4.44196428571427
1397.698.1890625-0.589062499999994
1496.997.3640625-0.464062499999996
15105.6106.7640625-1.1640625
16102.899.62656253.1734375
17101.798.86406252.83593750000000
18104.2106.1765625-1.97656249999999
1992.790.53906252.16093750000000
2091.991.60156250.298437500000003
21106.5105.5991071428570.900892857142857
22112.3107.9848214285714.31517857142857
23102.8102.7991071428570.000892857142858823
2496.598.1419642857143-1.64196428571428
25101105.7703125-4.77031249999999
2698.9104.9453125-6.0453125
27105.1114.3453125-9.2453125
28103107.2078125-4.2078125
2999106.4453125-7.4453125
30104.3113.7578125-9.4578125
3194.698.1203125-3.5203125
3290.499.1828125-8.7828125
33108.9113.180357142857-4.28035714285714
34111.4115.566071428571-4.16607142857142
35100.8110.380357142857-9.58035714285715
36102.5105.723214285714-3.22321428571429
3798.2105.7703125-7.57031249999999
3898.7104.9453125-6.2453125
39113.3114.3453125-1.04531250000000
40104.6107.2078125-2.60781250000001
4199.3106.4453125-7.1453125
42111.8113.7578125-1.9578125
4397.398.1203125-0.8203125
4497.799.1828125-1.4828125
45115.6113.1803571428572.41964285714285
46111.9115.566071428571-3.66607142857142
47107110.380357142857-3.38035714285714
48107.1105.7232142857141.37678571428571
49100.6105.7703125-5.1703125
5099.2104.9453125-5.7453125
51108.4114.3453125-5.94531249999999
52103107.2078125-4.2078125
5399.8106.4453125-6.6453125
54115113.75781251.2421875
5590.898.1203125-7.3203125
5695.999.1828125-3.28281250000000
57114.4113.1803571428571.21964285714286
58108.2115.566071428571-7.36607142857143
59112.6110.3803571428572.21964285714285
60109.1105.7232142857143.37678571428571
61105105.7703125-0.770312499999992
62105104.94531250.0546874999999955
63118.5114.34531254.1546875
64103.7107.2078125-3.50781250000000
65112.5106.44531256.0546875
66116.6113.75781252.84218750000000
6796.698.1203125-1.52031250000000
68101.999.18281252.7171875
69116.5113.1803571428573.31964285714286
70119.3115.5660714285713.73392857142857
71115.4110.3803571428575.01964285714286
72108.5105.7232142857142.77678571428571
73111.5105.77031255.72968750000001
74108.8104.94531253.85468749999999
75121.8114.34531257.4546875
76109.6107.20781252.39218750000000
77112.2106.44531255.7546875
78119.6113.75781255.8421875
79104.198.12031255.9796875
80105.399.18281256.11718749999999
81115113.1803571428571.81964285714285
82124.1115.5660714285718.53392857142856
83116.8110.3803571428576.41964285714286
84107.5105.7232142857141.77678571428571
85115.6105.77031259.8296875
86116.2104.945312511.2546875
87116.3114.34531251.9546875
88119107.207812511.7921875
89111.9106.44531255.4546875
90118.6113.75781254.8421875
91106.998.12031258.7796875
92103.299.18281254.0171875


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2886102865101850.577220573020370.711389713489815
170.1579794775840960.3159589551681920.842020522415904
180.07696772864276820.1539354572855360.923032271357232
190.07244294416623640.1448858883324730.927557055833764
200.03468041598320860.06936083196641710.965319584016791
210.03597657447511130.07195314895022270.964023425524889
220.03255850785545820.06511701571091640.967441492144542
230.01642163721561040.03284327443122080.98357836278439
240.009128548434252880.01825709686850580.990871451565747
250.004420857318865770.008841714637731540.995579142681134
260.002214749870775220.004429499741550450.997785250129225
270.001706545434282510.003413090868565010.998293454565717
280.001113495390692450.002226990781384890.998886504609308
290.0006695745317712150.001339149063542430.999330425468229
300.0004509883985661640.0009019767971323290.999549011601434
310.0004320202288325480.0008640404576650960.999567979771167
320.0003253878139127960.0006507756278255920.999674612186087
330.0003757795121381080.0007515590242762160.999624220487862
340.0001882343505311770.0003764687010623550.999811765649469
350.0001992175166681160.0003984350333362330.999800782483332
360.0003673536809680830.0007347073619361650.999632646319032
370.0003589138922821150.0007178277845642310.999641086107718
380.0002613192236991210.0005226384473982410.9997386807763
390.0003286050149856190.0006572100299712380.999671394985014
400.0002223524876420410.0004447049752840830.999777647512358
410.0002187599660487430.0004375199320974850.999781240033951
420.0004142069287029530.0008284138574059050.999585793071297
430.0003856334190529820.0007712668381059640.999614366580947
440.0003916668248258720.0007833336496517450.999608333175174
450.001093400649566930.002186801299133860.998906599350433
460.0007018396134799370.001403679226959870.99929816038652
470.0007023840275377040.001404768055075410.999297615972462
480.001109177979423030.002218355958846050.998890822020577
490.001238498408744510.002476996817489030.998761501591256
500.001682962837697380.003365925675394760.998317037162303
510.002435809063469470.004871618126938930.99756419093653
520.002354727838947440.004709455677894890.997645272161053
530.006035534115878450.01207106823175690.993964465884122
540.008849594792573760.01769918958514750.991150405207426
550.02479758364126690.04959516728253380.975202416358733
560.02962701149744920.05925402299489850.97037298850255
570.02634626297599970.05269252595199950.973653737024
580.113514889791590.227029779583180.88648511020841
590.1431960055175900.2863920110351810.85680399448241
600.1506663865159660.3013327730319330.849333613484034
610.2245969721240.4491939442480.775403027876
620.3030492337064660.6060984674129320.696950766293534
630.3143908920372280.6287817840744570.685609107962772
640.5656839241311010.8686321517377980.434316075868899
650.6062696028289480.7874607943421050.393730397171052
660.5835714602103210.8328570795793570.416428539789678
670.776135863985250.44772827202950.22386413601475
680.745435778887340.509128442225320.25456422111266
690.6850508825609440.6298982348781120.314949117439056
700.6929305736246430.6141388527507140.307069426375357
710.6372406405954460.7255187188091080.362759359404554
720.5393048130494450.9213903739011110.460695186950556
730.5163351773165340.9673296453669330.483664822683466
740.6055009760717330.7889980478565330.394499023928267
750.6195764229152250.7608471541695490.380423577084775
760.9507059846773840.09858803064523150.0492940153226157


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level280.459016393442623NOK
5% type I error level330.540983606557377NOK
10% type I error level390.639344262295082NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/10atjs1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/10atjs1229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/1clow1229040817.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/1clow1229040817.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/2ywit1229040817.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/2ywit1229040817.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/35fkm1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/35fkm1229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/4qirp1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/4qirp1229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/5shwo1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/5shwo1229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/6kevc1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/6kevc1229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/7vzp61229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/7vzp61229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/8ds1h1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/8ds1h1229040818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/98a2p1229040818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229040916g0hd9nbgdz0f4do/98a2p1229040818.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by