Home » date » 2009 » Dec » 28 »

paper multiple regressie 5 vertragingen

*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, 28 Dec 2009 08:42:47 -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/28/t1262015038pu557kxn7fm153i.htm/, Retrieved Mon, 28 Dec 2009 16:44:10 +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/28/t1262015038pu557kxn7fm153i.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 «
106.3 0 97.7 98.3 91.6 104.6 111.6 102.3 0 106.3 97.7 98.3 91.6 104.6 106.6 0 102.3 106.3 97.7 98.3 91.6 108.1 0 106.6 102.3 106.3 97.7 98.3 93.8 0 108.1 106.6 102.3 106.3 97.7 88.2 0 93.8 108.1 106.6 102.3 106.3 108.9 0 88.2 93.8 108.1 106.6 102.3 114.2 0 108.9 88.2 93.8 108.1 106.6 102.5 0 114.2 108.9 88.2 93.8 108.1 94.2 0 102.5 114.2 108.9 88.2 93.8 97.4 0 94.2 102.5 114.2 108.9 88.2 98.5 0 97.4 94.2 102.5 114.2 108.9 106.5 0 98.5 97.4 94.2 102.5 114.2 102.9 0 106.5 98.5 97.4 94.2 102.5 97.1 0 102.9 106.5 98.5 97.4 94.2 103.7 0 97.1 102.9 106.5 98.5 97.4 93.4 0 103.7 97.1 102.9 106.5 98.5 85.8 0 93.4 103.7 97.1 102.9 106.5 108.6 0 85.8 93.4 103.7 97.1 102.9 110.2 0 108.6 85.8 93.4 103.7 97.1 101.2 0 110.2 108.6 85.8 93.4 103.7 101.2 0 101.2 110.2 108.6 85.8 93.4 96.9 0 101.2 101.2 110.2 108.6 85.8 99.4 0 96.9 101.2 101.2 110.2 108.6 118.7 0 99.4 96.9 101.2 101.2 110.2 108.0 0 118.7 99.4 96.9 101.2 101.2 101.2 0 108.0 118.7 99.4 96.9 101.2 119.9 0 101.2 108.0 118.7 99.4 96.9 94. etc...
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 38.2434492472197 -9.6442840760713x[t] + 0.0694968060235102y1[t] + 0.448373151946162y2[t] + 0.548341840327527y3[t] -0.228183028240301y4[t] -0.211678098153006y5[t] + 14.2132730623937M1[t] + 1.26208625936005M2[t] -7.0104913604995M3[t] -0.0442328718516249M4[t] -13.5073967711877M5[t] -16.9682899190018M6[t] + 7.2052177084541M7[t] + 21.3464877391464M8[t] + 1.66102089570285M9[t] -21.6998501830883M10[t] -13.119192025781M11[t] + 0.165545242405437t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)38.24344924721978.6756444.40813.6e-051.8e-05
x-9.64428407607132.371055-4.06750.000126e-05
y10.06949680602351020.1124580.6180.5385380.269269
y20.4483731519461620.1086944.12519.8e-054.9e-05
y30.5483418403275270.1008275.43851e-060
y4-0.2281830282403010.104174-2.19040.0317350.015867
y5-0.2116780981530060.11377-1.86060.0668870.033444
M114.21327306239372.4767755.738600
M21.262086259360053.4513570.36570.7156770.357839
M3-7.01049136049953.743771-1.87260.0651880.032594
M4-0.04423287185162493.33722-0.01330.9894610.494731
M5-13.50739677118772.92367-4.621.6e-058e-06
M6-16.96828991900182.929475-5.792300
M77.20521770845412.7217872.64720.0099630.004981
M821.34648773914643.0481997.00300
M91.661020895702854.6672360.35590.7229640.361482
M10-21.69985018308834.801832-4.51912.4e-051.2e-05
M11-13.1191920257813.933529-3.33520.001350.000675
t0.1655452424054370.0424043.9040.0002110.000105


Multiple Linear Regression - Regression Statistics
Multiple R0.960141697819114
R-squared0.92187207989097
Adjusted R-squared0.902340099863713
F-TEST (value)47.1980863488736
F-TEST (DF numerator)18
F-TEST (DF denominator)72
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.08537947263239
Sum Squared Residuals1201.70343134924


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1106.3106.2240784030140.0759215969862502
2102.3101.8891018674100.410898132590319
3106.698.2540752551818.3459247448189
4108.1107.3256290304870.774370969513379
593.892.03152559067481.76847440932515
688.289.865103469303-1.66510346930294
7108.9108.0912762842730.808723715727493
8114.2112.2320071100561.96799288994366
9102.5102.2365286770010.263471322998906
1094.296.2599657719685-2.05996577196847
1197.498.5516002227344-1.15160022273444
1298.596.330523895772.16947610422993
13106.5109.217193008905-2.71719300890492
14102.9103.605983135438-0.705983135438309
1597.1100.46566602053-3.36566602053011
16103.7109.038608407107-5.33860840710717
1793.489.56676362957423.83323637042583
1885.884.46251286750941.33748713249061
19108.6109.359705409853-0.759705409852815
20110.2115.917215933024-5.71721593302364
21101.2103.517208842572-2.31720884257172
22101.296.83047818015824.36952181984184
2396.998.8248506589635-1.92485065896345
2499.4101.684321615228-2.28432161522802
25118.7116.0238396788352.67616032116463
26108105.2476523242952.75234767570504
27101.2107.402647577202-6.20264757720235
28119.9120.187036071250-0.2870360712503
2994.894.33968487180060.460315128199434
3095.392.3119916701862.98800832981397
31118119.502219485606-1.50221948560640
32115.9119.019807078537-3.11980707853675
33111.4111.575197227561-0.175197227561280
34108.2104.7719406699383.42805933006197
35108.8104.8409634517993.95903654820135
36109.5109.939157967129-0.439157967128984
37124.8124.3523016714670.447698328533122
38115.3114.9555646856150.344435314385339
39109.5113.972721261088-4.4727212610882
40124.2124.544793752068-0.344793752067768
4192.9100.819591378500-7.91959137849979
4298.497.6887599708060.711240029193965
43120.9119.7709941669441.12900583305626
44111.7118.817882763178-7.11788276317774
45116.1115.7933273283860.306672671614345
46109.4106.4869636648352.91303633516451
47111.7105.3972877264926.30271227350775
48114.3115.586998279303-1.28699827930273
49133.7128.4473093777955.25269062220489
50114.3120.034304939173-5.73430493917306
51126.5121.5965847501424.90341524985756
52131130.4355065701040.564493429895654
53104107.305830488609-3.30583048860904
54108.9111.161714100013-2.26171410001266
55128.5127.5254866579530.974513342046673
56132.4126.9769416602575.42305833974324
57128124.4114367192603.58856328074036
58116.4118.003692111134-1.60369211113375
59120.9120.5998138352280.300186164771633
60118.6121.544649536568-2.94464953656791
61133.1131.5989997649321.50100023506799
62121.1124.835648683103-3.73564868310308
63127.6122.5635214153265.03647858467359
64135.4132.2898027701923.11019722980811
65114.9113.0467883202321.85321167976806
66114.3115.057152354315-0.75715235431532
67128.9135.496871374495-6.59687137449504
68138.9136.1525731393852.74742686061489
69129.4126.5715254261322.82847457386770
70115119.681813149848-4.68181314984759
71128125.4466706491922.55332935080809
72127122.5967150091114.40328499088918
73128.8134.889722769223-6.08972276922297
74137.9134.2060237708633.69397622913735
75128.4127.0719274076771.32807259232257
76135.9136.087090229058-0.187090229058247
77122.2123.842012068116-1.64201206811637
78113.1115.290622943008-2.19062294300817
79136.2127.5642904978698.63570950213122
80138132.1835723155645.81642768443633
81115.2119.694775779088-4.49477577908832
82111113.365146452119-2.36514645211851
8399.2109.238813455591-10.0388134555909
84102.4102.0176336968910.382366303108538
85112.7113.846555325829-1.14655532582898
86105.5102.5257205941042.97427940589641
8798.3103.872856312852-5.57285631285196
88116.4114.6915331697341.70846683026634
8997.492.44780365249334.95219634750672
9093.391.46214262485951.83785737514053
91117.4120.089156123007-2.68915612300738


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
220.6958198805223550.6083602389552910.304180119477645
230.5403177072575080.9193645854849850.459682292742492
240.4464775293589580.8929550587179150.553522470641042
250.5723666764857430.8552666470285130.427633323514257
260.46436944239940.92873888479880.5356305576006
270.3793381963254430.7586763926508850.620661803674557
280.3367718897671090.6735437795342170.663228110232891
290.3471177080040440.6942354160080880.652882291995956
300.43519601587540.87039203175080.5648039841246
310.3472115084734550.694423016946910.652788491526545
320.2820703456029670.5641406912059350.717929654397033
330.212884999203940.425769998407880.78711500079606
340.1698961628112650.339792325622530.830103837188735
350.16695784761770.33391569523540.8330421523823
360.1175921251372200.2351842502744400.88240787486278
370.0804428468075310.1608856936150620.919557153192469
380.05735390663952860.1147078132790570.942646093360471
390.05809742770284850.1161948554056970.941902572297151
400.03803616196416650.0760723239283330.961963838035834
410.1338343113082580.2676686226165160.866165688691742
420.09573858100153970.1914771620030790.90426141899846
430.06712509970943150.1342501994188630.932874900290569
440.1225347609785760.2450695219571530.877465239021424
450.09575413561245790.1915082712249160.904245864387542
460.07545075716884580.1509015143376920.924549242831154
470.1325773943552980.2651547887105960.867422605644702
480.1002223786905000.2004447573809990.8997776213095
490.1181386743239580.2362773486479150.881861325676042
500.1400219745874750.2800439491749510.859978025412525
510.1423389459165550.2846778918331110.857661054083445
520.1093981792335570.2187963584671150.890601820766443
530.1066147801252760.2132295602505520.893385219874724
540.08894537167363350.1778907433472670.911054628326367
550.06074913338778730.1214982667755750.939250866612213
560.07662195825161710.1532439165032340.923378041748383
570.06122705733860760.1224541146772150.938772942661392
580.04394259049087230.08788518098174450.956057409509128
590.02986971233523840.05973942467047680.970130287664762
600.03101334682757410.06202669365514820.968986653172426
610.02191736594860630.04383473189721250.978082634051394
620.03845952167637580.07691904335275170.961540478323624
630.05378470905961110.1075694181192220.946215290940389
640.03724312795997460.07448625591994930.962756872040025
650.02243202560481780.04486405120963560.977567974395182
660.01841880000587250.03683760001174510.981581199994128
670.1229880455976650.2459760911953290.877011954402335
680.1038229774811910.2076459549623810.89617702251881
690.05171365642879660.1034273128575930.948286343571203


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.0625NOK
10% type I error level90.1875NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/10u5c61262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/10u5c61262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/1c5ve1262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/1c5ve1262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/2gnij1262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/2gnij1262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/33eei1262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/33eei1262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/4n9wv1262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/4n9wv1262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/5smzl1262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/5smzl1262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/6o1fh1262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/6o1fh1262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/7jsr91262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/7jsr91262014961.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/8yep41262014961.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015038pu557kxn7fm153i/8yep41262014961.ps (open in new window)


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