Home » date » 2008 » Dec » 16 »

multiple regression

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 16 Dec 2008 12:43:21 -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/16/t12294581065rhydqdqc6froyw.htm/, Retrieved Tue, 16 Dec 2008 21:08:36 +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/2008/Dec/16/t12294581065rhydqdqc6froyw.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
524 0 552 0 532 0 511 0 492 0 492 0 493 0 481 0 462 0 457 0 442 0 439 0 488 0 521 0 501 0 485 0 464 0 460 0 467 0 460 0 448 0 443 0 436 0 431 0 484 0 510 0 513 0 503 0 471 0 471 0 476 0 475 0 470 0 461 0 455 0 456 0 517 0 525 0 523 0 519 0 509 0 512 0 519 0 517 0 510 0 509 0 501 0 507 0 569 1 580 1 578 1 565 1 547 1 555 1 562 1 561 1 555 1 544 1 537 1 543 1 594 1 611 1 613 1 611 1 594 1 595 1 591 1 589 1 584 1 573 1 567 1 569 1 621 1 629 1 628 1 612 1 595 1 597 1 593 1 590 1 580 1 574 1 573 1 573 1 620 1 626 1 620 1 588 1 566 1 557 1 561 1 549 1 532 1 526 1 511 1 499 1
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Aantal_werklozen_(*1000)[t] = + 444.020833333333 + 68.7708333333334Xt[t] + 54.8315972222221M1[t] + 71.517361111111M2[t] + 65.3281250000001M3[t] + 50.638888888889M4[t] + 30.6996527777778M5[t] + 30.3854166666667M6[t] + 32.8211805555556M7[t] + 27.3819444444445M8[t] + 16.8177083333334M9[t] + 9.62847222222226M10[t] + 1.06423611111115M11[t] + 0.439236111111113t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)444.0208333333339.34453147.516700
Xt68.77083333333349.0276757.617800
M154.831597222222110.9402045.01193e-062e-06
M271.51736111111110.9143076.552600
M365.328125000000110.8908235.998500
M450.63888888888910.8697684.65871.2e-056e-06
M530.699652777777810.8511572.82920.0058660.002933
M630.385416666666710.8350012.80440.0062920.003146
M732.821180555555610.8213123.0330.0032420.001621
M827.381944444444510.8100992.5330.0132150.006607
M916.817708333333410.8013691.5570.1233220.061661
M109.6284722222222610.795130.89190.3750420.187521
M111.0642361111111510.7913840.09860.9216810.460841
t0.4392361111111130.1641672.67550.0090050.004503


Multiple Linear Regression - Regression Statistics
Multiple R0.929144528606628
R-squared0.863309555039633
Adjusted R-squared0.841639118643477
F-TEST (value)39.8381250500696
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.5802706022953
Sum Squared Residuals38188.0624999999


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1524499.29166666666824.7083333333323
2552516.41666666666735.583333333333
3532510.66666666666721.3333333333334
4511496.41666666666614.5833333333338
5492476.91666666666715.0833333333332
6492477.04166666666714.9583333333334
7493479.91666666666713.0833333333334
8481474.9166666666676.08333333333330
9462464.791666666667-2.79166666666656
10457458.041666666667-1.04166666666663
11442449.916666666667-7.91666666666664
12439449.291666666667-10.2916666666666
13488504.5625-16.5624999999998
14521521.6875-0.68749999999995
15501515.9375-14.9375
16485501.6875-16.6875000000000
17464482.1875-18.1875000000000
18460482.3125-22.3125
19467485.1875-18.1875
20460480.1875-20.1875000000000
21448470.0625-22.0625000000000
22443463.3125-20.3125
23436455.1875-19.1875
24431454.5625-23.5624999999999
25484509.833333333333-25.8333333333332
26510526.958333333333-16.9583333333333
27513521.208333333333-8.20833333333334
28503506.958333333333-3.95833333333339
29471487.458333333333-16.4583333333333
30471487.583333333333-16.5833333333333
31476490.458333333333-14.4583333333333
32475485.458333333333-10.4583333333333
33470475.333333333333-5.33333333333335
34461468.583333333333-7.58333333333333
35455460.458333333333-5.45833333333333
36456459.833333333333-3.83333333333329
37517515.1041666666671.89583333333348
38525532.229166666667-7.22916666666664
39523526.479166666667-3.47916666666669
40519512.2291666666676.77083333333326
41509492.72916666666716.2708333333333
42512492.85416666666719.1458333333333
43519495.72916666666723.2708333333333
44517490.72916666666726.2708333333333
45510480.60416666666729.3958333333333
46509473.85416666666735.1458333333333
47501465.72916666666735.2708333333333
48507465.10416666666741.8958333333333
49569589.145833333333-20.1458333333332
50580606.270833333333-26.2708333333333
51578600.520833333333-22.5208333333333
52565586.270833333333-21.2708333333334
53547566.770833333333-19.7708333333333
54555566.895833333333-11.8958333333333
55562569.770833333333-7.77083333333333
56561564.770833333333-3.77083333333331
57555554.6458333333330.354166666666665
58544547.895833333333-3.89583333333332
59537539.770833333333-2.77083333333333
60543539.1458333333333.85416666666671
61594594.416666666667-0.416666666666513
62611611.541666666667-0.541666666666616
63613605.7916666666677.20833333333332
64611591.54166666666719.4583333333333
65594572.04166666666721.9583333333334
66595572.16666666666722.8333333333333
67591575.04166666666715.9583333333333
68589570.04166666666718.9583333333333
69584559.91666666666724.0833333333333
70573553.16666666666719.8333333333333
71567545.04166666666721.9583333333333
72569544.41666666666724.5833333333334
73621599.687521.3125000000001
74629616.812512.1875000000000
75628611.062516.9375000000000
76612596.812515.1874999999999
77595577.312517.6875
78597577.437519.5625000000000
79593580.312512.6875000000000
80590575.312514.6875
81580565.187514.8125000000000
82574558.437515.5625000000000
83573550.312522.6875
84573549.687523.3125
85620604.95833333333315.0416666666668
86626622.0833333333333.91666666666669
87620616.3333333333333.66666666666662
88588602.083333333333-14.0833333333334
89566582.583333333333-16.5833333333333
90557582.708333333333-25.7083333333334
91561585.583333333333-24.5833333333334
92549580.583333333333-31.5833333333334
93532570.458333333333-38.4583333333334
94526563.708333333333-37.7083333333334
95511555.583333333333-44.5833333333334
96499554.958333333333-55.9583333333334


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.003560277602874680.007120555205749370.996439722397125
180.0004306296331614590.0008612592663229180.999569370366838
198.73666465551226e-050.0001747332931102450.999912633353445
206.49367418071446e-050.0001298734836142890.999935063258193
210.0001646335030181720.0003292670060363450.999835366496982
220.0001425271259144360.0002850542518288720.999857472874086
230.0003283936838138220.0006567873676276440.999671606316186
240.0003108020905107210.0006216041810214430.99968919790949
250.0002095225573689610.0004190451147379230.99979047744263
267.73190721997105e-050.0001546381443994210.9999226809278
270.0004276102981939830.0008552205963879660.999572389701806
280.001976053314060460.003952106628120920.99802394668594
290.001626587738689520.003253175477379030.99837341226131
300.001409376147945020.002818752295890040.998590623852055
310.001175996135768180.002351992271536360.998824003864232
320.001542859269297560.003085718538595130.998457140730702
330.003562940021885310.007125880043770620.996437059978115
340.004707960704071450.00941592140814290.995292039295929
350.007185943302736840.01437188660547370.992814056697263
360.01229356590637640.02458713181275270.987706434093624
370.0170486920111290.0340973840222580.98295130798887
380.01242892174422850.02485784348845700.987571078255772
390.01118049074403200.02236098148806410.988819509255968
400.01280286575612990.02560573151225980.98719713424387
410.02282121964676420.04564243929352840.977178780353236
420.03764759660883890.07529519321767790.96235240339116
430.05398107448699270.1079621489739850.946018925513007
440.07568829230250180.1513765846050040.924311707697498
450.1043932837396760.2087865674793520.895606716260324
460.1404247082158350.280849416431670.859575291784165
470.1715203202962320.3430406405924650.828479679703768
480.2200123433033680.4400246866067350.779987656696633
490.2179761299633170.4359522599266330.782023870036683
500.2266927435681650.453385487136330.773307256431835
510.2452356566482210.4904713132964410.754764343351779
520.2666843521769480.5333687043538960.733315647823052
530.3060664693392410.6121329386784830.693933530660759
540.3269903982020590.6539807964041190.673009601797941
550.3287268496737960.6574536993475920.671273150326204
560.3273894645049990.6547789290099980.672610535495001
570.323402780101370.646805560202740.67659721989863
580.3379574545164330.6759149090328660.662042545483567
590.3761239964384670.7522479928769340.623876003561533
600.3960656958725850.792131391745170.603934304127415
610.5467920574697710.9064158850604580.453207942530229
620.6583830297146680.6832339405706640.341616970285332
630.7684158604213480.4631682791573030.231584139578652
640.7727326023318790.4545347953362430.227267397668121
650.774693317616840.450613364766320.22530668238316
660.7604532434176690.4790935131646620.239546756582331
670.756927473809410.4861450523811790.243072526190589
680.7391752985313810.5216494029372380.260824701468619
690.6965036183976650.6069927632046710.303496381602335
700.675641580376860.6487168392462790.324358419623140
710.6639275076583290.6721449846833420.336072492341671
720.624621302996780.750757394006440.37537869700322
730.6973490018933880.6053019962132230.302650998106612
740.789704430900330.4205911381993390.210295569099669
750.881935341586710.2361293168265820.118064658413291
760.8814056762809110.2371886474381780.118594323719089
770.8678755797524640.2642488404950730.132124420247536
780.7866907361497930.4266185277004140.213309263850207
790.7803409526642930.4393180946714150.219659047335707


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.285714285714286NOK
5% type I error level250.396825396825397NOK
10% type I error level260.412698412698413NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/10tke31229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/10tke31229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/15muw1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/15muw1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/26jle1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/26jle1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/399np1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/399np1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/45kyj1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/45kyj1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/5uaxl1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/5uaxl1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/6ocae1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/6ocae1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/75qnt1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/75qnt1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/8qyto1229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/8qyto1229456596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/95d821229456596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294581065rhydqdqc6froyw/95d821229456596.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