Home » date » 2008 » Dec » 10 »

multiple regression alles

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 10 Dec 2008 03:10:26 -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/10/t1228904200lcf5lc9ger6m0f2.htm/, Retrieved Wed, 10 Dec 2008 10:16:50 +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/10/t1228904200lcf5lc9ger6m0f2.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:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6.4 12.5 6.8 14.8 7.5 15.9 7.5 14.8 7.6 12.9 7.6 14.3 7.4 14.2 7.3 15.9 7.1 15.3 6.9 15.5 6.8 15.1 7.5 15 7.6 12.1 7.8 15.8 8 16.9 8.1 15.1 8.2 13.7 8.3 14.8 8.2 14.7 8 16 7.9 15.4 7.6 15 7.6 15.5 8.2 15.1 8.3 11.7 8.4 16.3 8.4 16.7 8.4 15 8.6 14.9 8.9 14.6 8.8 15.3 8.3 17.9 7.5 16.4 7.2 15.4 7.5 17.9 8.8 15.9 9.3 13.9 9.3 17.8 8.7 17.9 8.2 17.4 8.3 16.7 8.5 16 8.6 16.6 8.6 19.1 8.2 17.8 8.1 17.2 8 18.6 8.6 16.3 8.7 15.1 8.8 19.2 8.5 17.7 8.4 19.1 8.5 18 8.7 17.5 8.7 17.8 8.6 21.1 8.5 17.2 8.3 19.4 8.1 19.8 8.2 17.6 8.1 16.2 8.1 19.5 7.9 19.9 7.9 20 7.9 17.3 8 18.9 8 18.6 7.9 21.4 8 18.6 7.7 19.8 7.2 20.8 7.5 19.6 7.3 17.7 7 19.8 7 22.2 7 20.7 7.2 17.9 7.3 21.2 7.1 21.4 6.8 21.7 6.6 23.2 6.2 21.5 6.2 22.9 6.8 23.2 6.9 18.6
 
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
Werkloosheid[t] = + 12.9065558297395 -0.363231499460388Export[t] -0.990032742897683M1[t] + 0.403999100426132M2[t] + 0.553754557928458M3[t] + 0.188451923275136M4[t] -0.281721625232212M5[t] + 0.138053810695077M6[t] + 0.104848546976968M7[t] + 0.642308396527019M8[t] -0.107172687810245M9[t] -0.398738537134718M10[t] -0.160833336991094M11[t] + 0.0292339707607532t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)12.90655582973951.18123110.926400
Export-0.3632314994603880.087128-4.16898.5e-054.3e-05
M1-0.9900327428976830.384794-2.57290.0121760.006088
M20.4039991004261320.347781.16170.2492680.124634
M30.5537545579284580.3601131.53770.1285610.064281
M40.1884519232751360.3413680.5520.5826480.291324
M5-0.2817216252322120.347341-0.81110.420030.210015
M60.1380538106950770.3370870.40950.6833690.341685
M70.1048485469769680.3365690.31150.7563170.378159
M80.6423083965270190.3727951.7230.089250.044625
M9-0.1071726878102450.338385-0.31670.7523870.376193
M10-0.3987385371347180.337409-1.18180.2412420.120621
M11-0.1608333369910940.352469-0.45630.6495630.324782
t0.02923397076075320.0083583.49780.0008140.000407


Multiple Linear Regression - Regression Statistics
Multiple R0.559488791580069
R-squared0.313027707903726
Adjusted R-squared0.187244048787507
F-TEST (value)2.48861982632021
F-TEST (DF numerator)13
F-TEST (DF denominator)71
p-value0.00739726870900193
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.628739665409021
Sum Squared Residuals28.067263246964


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.47.40536331434775-1.00536331434775
26.87.9931966796734-1.1931966796734
37.57.77263145853005-0.272631458530052
47.57.8361174440439-0.336117444043909
57.68.08531771527205-0.485317715272055
67.68.02580302271555-0.425803022715553
77.48.05815487970423-0.658154879704235
87.38.00735515093238-0.70735515093238
97.17.5050469370321-0.405046937032102
106.97.1700687585763-0.270068758576304
116.87.58250052926484-0.782500529264837
127.57.80889098696272-0.308890986962723
137.67.90146356326092-0.301463563260921
147.87.98077282934205-0.180772829342051
1587.76020760819870.239792391801297
168.18.077955643334830.0220443566651666
178.28.145540164832780.0544598351672162
188.38.19499492211440.105005077885604
198.28.22734677910308-0.0273467791030806
2088.32183965011538-0.321839650115379
217.97.81953143621510.0804685637848987
227.67.70249215743554-0.102492157435538
237.67.78801557860972-0.188015578609721
248.28.123375486145720.0766245138542765
258.38.39756381217411-0.0975638121741133
268.48.14996472874090.250035271259105
278.48.183661557219820.216338442780182
288.48.46508644240991-0.06508644240991
298.68.060470014609350.539529985390645
308.98.618448871135510.281551128864487
318.88.360215528555890.439784471444116
328.37.982507450269680.317492549730320
337.57.80710758588375-0.307107585883752
347.27.90800720678042-0.70800720678042
357.57.267067629033830.232932370966173
368.88.183597935706450.61640206429355
379.37.94926216249031.35073783750970
389.37.955925128679351.34407487132065
398.78.09859140699640.601408593003608
408.27.944138492834020.255861507165982
418.37.75746096470970.542539035290306
428.58.460732421020010.0392675789799918
438.68.238822228386420.361177771613581
448.67.897437300046250.702562699953748
458.27.649391135768250.550608864231753
468.17.604998156880760.495001843119239
4787.363613228540590.636386771459407
488.68.389112985051330.210887014948666
498.77.864192012266870.83580798773313
508.87.798208678563851.00179132143615
518.58.5220453560175-0.0220453560175074
528.47.67745259288040.722547407119606
538.57.636067664540230.863932335459772
548.78.266692820958460.433307179041535
558.78.1537520781630.546247921837008
568.67.521781950254511.07821804974549
578.58.218137684573520.281862315426481
588.37.156696507196951.14330349280306
598.17.278543078317170.821456921682834
608.28.26771968488187-0.0677196848818679
618.17.815445011989480.284554988010518
628.18.040046877854770.0599531221452312
637.98.0737437063337-0.173743706333691
647.97.701351892495080.198648107504916
657.98.24113736329154-0.341137363291538
6688.10897637084296-0.108976370842960
6788.21397452772372-0.213974527723719
687.97.763620149545440.136379850454564
6988.06042123445801-0.0604212344580129
707.77.362211556541830.337788443458173
717.27.26611922798582-0.0661192279858161
727.57.89206433509013-0.392064335090129
737.37.62140541192794-0.321405411927938
7478.28188507714569-1.28188507714569
7577.58911890670384-0.589118906703837
7677.79789749200185-0.797897492001851
777.28.37400611274435-1.17400611274435
787.37.6243515712131-0.324351571213105
797.17.54773397836367-0.447733978363671
806.88.00545834883636-1.20545834883636
816.66.74036398606927-0.140363986069266
826.27.09552565658821-0.895525656588206
836.26.85414072824804-0.65414072824804
846.86.93523858616177-0.135238586161771
856.97.64530471154263-0.745304711542626


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.06589440846639150.1317888169327830.934105591533609
180.02176674912344610.04353349824689220.978233250876554
190.00660757571414440.01321515142828880.993392424285856
200.002731409010982400.005462818021964810.997268590989018
210.0008102815606914630.001620563121382930.999189718439309
220.0004416887944499750.000883377588899950.99955831120555
230.0001411814824099830.0002823629648199660.99985881851759
244.83247511105496e-059.66495022210991e-050.99995167524889
251.59840958407646e-053.19681916815291e-050.99998401590416
265.09649321335903e-061.01929864267181e-050.999994903506787
276.04011490986758e-050.0001208022981973520.999939598850901
280.0002266885343392390.0004533770686784770.99977331146566
290.0001151993940138750.0002303987880277500.999884800605986
304.59923034114969e-059.19846068229937e-050.999954007696588
311.76862406491635e-053.5372481298327e-050.99998231375935
321.00311798704045e-052.00623597408090e-050.99998996882013
330.001768399983648010.003536799967296020.998231600016352
340.1072530710547330.2145061421094650.892746928945267
350.2034017693173320.4068035386346640.796598230682668
360.1770851127933930.3541702255867870.822914887206607
370.3546131053856380.7092262107712760.645386894614362
380.390276251364630.780552502729260.60972374863537
390.3756353369744490.7512706739488980.624364663025551
400.5733840559208580.8532318881582840.426615944079142
410.6817621864048060.6364756271903880.318237813595194
420.8339204068997760.3321591862004470.166079593100224
430.8701515767116910.2596968465766180.129848423288309
440.8655612885810640.2688774228378720.134438711418936
450.9412085028394710.1175829943210580.058791497160529
460.9779631178928920.04407376421421590.0220368821071080
470.9927661336228430.01446773275431440.00723386637715718
480.9973869385298950.005226122940210440.00261306147010522
490.9973085648498920.005382870300216860.00269143515010843
500.9953635569314690.009272886137062670.00463644306853133
510.9971457021380030.005708595723994070.00285429786199704
520.9964639355900550.00707212881989030.00353606440994515
530.995258409198410.009483181603179270.00474159080158964
540.994179399476970.01164120104605880.0058206005230294
550.9908140261455080.01837194770898410.00918597385449203
560.9831149554890030.03377008902199490.0168850445109974
570.973631706845560.05273658630888250.0263682931544413
580.9578844939606580.08423101207868380.0421155060393419
590.9346332826823020.1307334346353950.0653667173176977
600.9512653032674070.09746939346518660.0487346967325933
610.959672323270450.08065535345910160.0403276767295508
620.9594483978629640.08110320427407190.0405516021370359
630.9481423326039050.1037153347921900.0518576673960948
640.9176840770800160.1646318458399680.0823159229199838
650.890330535249650.2193389295006990.109669464750349
660.8514530060194820.2970939879610370.148546993980518
670.7666026487037380.4667947025925240.233397351296262
680.6559432070084530.6881135859830930.344056792991547


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.384615384615385NOK
5% type I error level270.519230769230769NOK
10% type I error level320.615384615384615NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/100f121228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/100f121228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/1t9521228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/1t9521228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/22eka1228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/22eka1228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/36ms51228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/36ms51228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/4lzzp1228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/4lzzp1228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/5grar1228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/5grar1228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/6sojf1228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/6sojf1228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/75rn61228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/75rn61228903818.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/8fxtl1228903818.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228904200lcf5lc9ger6m0f2/8fxtl1228903818.ps (open in new window)


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