Home » date » 2010 » Dec » 21 »

*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, 21 Dec 2010 14:25:29 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d.htm/, Retrieved Tue, 21 Dec 2010 15:24:34 +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/2010/Dec/21/t12929414636gobet05zad330d.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
13.193 15.234 14.718 16.961 13.945 15.876 16.226 18.316 16.748 17.904 17.209 18.950 17.225 18.710 17.236 18.687 17.580 19.568 17.381 19.580 17.260 18.661 15.658 18.674 15.908 17.475 17.725 19.562 16.368 19.555 17.743 19.867 15.703 19.324 18.162 19.074 15.323 19.704 18.375 18.352 13.927 17.795 16.761 18.902 16.239 19.158 18.279 15.698 16.239 18.431 18.414 19.801 14.995 18.706 18.232 19.409 16.263 19.017 20.298 19.891 15.203 17.845 17.502 18.532 15.737 17.770 17.224 17.601 14.940 18.507 17.635 19.392 15.699 17.661 18.243 19.643 15.770 17.344 17.229 17.322 16.152 17.919 16.918 18.114 16.308 17.759 16.021 17.952 15.954 17.762 16.610 17.751 15.458 18.106 15.990 15.349 13.185 15.409 16.007 16.633 14.800 15.974 15.693
 
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 time16 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
aantal[t] = + 18.40052 -2.78044307692307Q1[t] -0.432289230769232Q2[t] -1.18940461538462Q3[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)18.400520.24004376.655100
Q1-2.780443076923070.336192-8.270400
Q2-0.4322892307692320.336192-1.28580.2014990.100749
Q3-1.189404615384620.336192-3.53790.0006160.000308


Multiple Linear Regression - Regression Statistics
Multiple R0.668872960553794
R-squared0.447391037359998
Adjusted R-squared0.430645311219392
F-TEST (value)26.7167296063164
F-TEST (DF numerator)3
F-TEST (DF denominator)99
p-value9.62230295442623e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.20021560923038
Sum Squared Residuals142.611233355385


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
113.19315.6200769230769-2.42707692307693
215.23417.9682307692308-2.73423076923079
314.71817.2111153846154-2.49311538461538
416.96118.40052-1.439520
513.94515.6200769230769-1.67507692307692
615.87617.9682307692308-2.09223076923077
716.22617.2111153846154-0.985115384615385
818.31618.40052-0.0845200000000007
916.74815.62007692307691.12792307692308
1017.90417.9682307692308-0.0642307692307695
1117.20917.2111153846154-0.00211538461538446
1218.9518.400520.54948
1317.22515.62007692307691.60492307692308
1418.7117.96823076923080.741769230769231
1517.23617.21111538461540.0248846153846166
1618.68718.400520.286480000000002
1717.5815.62007692307691.95992307692307
1819.56817.96823076923081.59976923076923
1917.38117.21111538461540.169884615384616
2019.5818.400521.17948
2117.2615.62007692307691.63992307692308
2218.66117.96823076923080.692769230769232
2315.65817.2111153846154-1.55311538461538
2418.67418.400520.27348
2515.90815.62007692307690.287923076923076
2617.47517.9682307692308-0.493230769230768
2717.72517.21111538461540.513884615384617
2819.56218.400521.16148000000000
2916.36815.62007692307690.747923076923075
3019.55517.96823076923081.58676923076923
3117.74317.21111538461540.531884615384615
3219.86718.400521.46648
3315.70315.62007692307690.0829230769230759
3419.32417.96823076923081.35576923076923
3518.16217.21111538461540.950884615384615
3619.07418.400520.673480000000002
3715.32315.6200769230769-0.297076923076923
3819.70417.96823076923081.73576923076923
3918.37517.21111538461541.16388461538462
4018.35218.40052-0.0485199999999993
4113.92715.6200769230769-1.69307692307692
4217.79517.9682307692308-0.173230769230768
4316.76117.2111153846154-0.450115384615385
4418.90218.400520.501480000000001
4516.23915.62007692307690.618923076923077
4619.15817.96823076923081.18976923076923
4718.27917.21111538461541.06788461538462
4815.69818.40052-2.70252
4916.23915.62007692307690.618923076923077
5018.43117.96823076923080.462769230769231
5118.41417.21111538461541.20288461538462
5219.80118.400521.40048
5314.99515.6200769230769-0.625076923076924
5418.70617.96823076923080.73776923076923
5518.23217.21111538461541.02088461538462
5619.40918.400521.00848
5716.26315.62007692307690.642923076923078
5819.01717.96823076923081.04876923076923
5920.29817.21111538461543.08688461538461
6019.89118.400521.49048
6115.20315.6200769230769-0.417076923076924
6217.84517.9682307692308-0.123230769230771
6317.50217.21111538461540.290884615384615
6418.53218.400520.131480000000000
6515.73715.62007692307690.116923076923077
6617.7717.9682307692308-0.19823076923077
6717.22417.21111538461540.0128846153846161
6817.60118.40052-0.79952
6914.9415.6200769230769-0.680076923076924
7018.50717.96823076923080.538769230769232
7117.63517.21111538461540.423884615384618
7219.39218.400520.99148
7315.69915.62007692307690.0789230769230763
7417.66117.9682307692308-0.307230769230768
7518.24317.21111538461541.03188461538461
7619.64318.400521.24248
7715.7715.62007692307690.149923076923076
7817.34417.9682307692308-0.624230769230768
7917.22917.21111538461540.0178846153846151
8017.32218.40052-1.07852
8116.15215.62007692307690.531923076923077
8217.91917.9682307692308-0.049230769230769
8316.91817.2111153846154-0.293115384615385
8418.11418.40052-0.286519999999999
8516.30815.62007692307690.687923076923076
8617.75917.9682307692308-0.209230769230769
8716.02117.2111153846154-1.19011538461538
8817.95218.40052-0.448519999999998
8915.95415.62007692307690.333923076923077
9017.76217.9682307692308-0.206230769230769
9116.6117.2111153846154-0.601115384615385
9217.75118.40052-0.649519999999998
9315.45815.6200769230769-0.162076923076923
9418.10617.96823076923080.137769230769232
9515.9917.2111153846154-1.22111538461538
9615.34918.40052-3.05152
9713.18515.6200769230769-2.43507692307692
9815.40917.9682307692308-2.55923076923077
9916.00717.2111153846154-1.20411538461538
10016.63318.40052-1.76752
10114.815.6200769230769-0.820076923076923
10215.97417.9682307692308-1.99423076923077
10315.69317.2111153846154-1.51811538461538


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.2828382673292520.5656765346585040.717161732670748
80.2814236684498250.562847336899650.718576331550175
90.8099902650819310.3800194698361380.190009734918069
100.8825769200422440.2348461599155110.117423079957756
110.8853018008983270.2293963982033450.114698199101673
120.8649436461453160.2701127077093670.135056353854684
130.9362098304002360.1275803391995280.063790169599764
140.9595211179884090.08095776402318250.0404788820115913
150.9484976772117850.1030046455764300.0515023227882148
160.9261139002909140.1477721994181730.0738860997090865
170.9581674347114950.08366513057700980.0418325652885049
180.9798485418905440.04030291621891180.0201514581094559
190.9729956720235150.05400865595297030.0270043279764852
200.9707463943007620.05850721139847530.0292536056992377
210.9738735121817440.05225297563651270.0261264878182564
220.9685940821285680.06281183574286430.0314059178714321
230.9664779879046030.06704402419079390.0335220120953969
240.951882294953830.09623541009233820.0481177050461691
250.9329955536891440.1340088926217130.0670044463108563
260.910462757186760.1790744856264790.0895372428132396
270.9007935011512650.1984129976974710.0992064988487355
280.8920766589012150.215846682197570.107923341098785
290.8669623867214040.2660752265571910.133037613278596
300.8947396823406610.2105206353186780.105260317659339
310.8794279047192120.2411441905615760.120572095280788
320.8835431160518640.2329137678962720.116456883948136
330.851980760933150.29603847813370.14801923906685
340.8597335786296450.2805328427407100.140266421370355
350.8551813583812370.2896372832375250.144818641618763
360.8268144255686090.3463711488627830.173185574431391
370.7921616361611490.4156767276777030.207838363838851
380.8291065143391760.3417869713216490.170893485660824
390.8311804223127220.3376391553745560.168819577687278
400.7949160660961170.4101678678077660.205083933903883
410.8367619283047190.3264761433905620.163238071695281
420.7997314386816920.4005371226366150.200268561318307
430.7615424281640830.4769151436718340.238457571835917
440.7234113650134870.5531772699730260.276588634986513
450.6852700373264220.6294599253471550.314729962673578
460.6819765852707460.6360468294585090.318023414729254
470.6724589963111480.6550820073777040.327541003688852
480.8510530975391030.2978938049217940.148946902460897
490.825462348312120.349075303375760.17453765168788
500.7938731994097070.4122536011805860.206126800590293
510.7931520381398040.4136959237203910.206847961860196
520.81030184662820.3793963067436010.189698153371801
530.7796323228601540.4407353542796930.220367677139846
540.7576953677989930.4846092644020140.242304632201007
550.7455309311912340.5089381376175320.254469068808766
560.7400413469356220.5199173061287550.259958653064378
570.7086669333511150.5826661332977700.291333066648885
580.7130941084886430.5738117830227150.286905891511357
590.9370641740801350.1258716518397300.0629358259198649
600.9596659449398060.08066811012038850.0403340550601943
610.9462000832860530.1075998334278930.0537999167139467
620.9303321915108190.1393356169783620.0696678084891809
630.9144001618586070.1711996762827870.0855998381413935
640.8968857084318430.2062285831363140.103114291568157
650.8685906010894240.2628187978211530.131409398910577
660.8376571278797410.3246857442405170.162342872120259
670.8027452970074560.3945094059850870.197254702992543
680.7699063193397270.4601873613205450.230093680660273
690.7316472078071060.5367055843857870.268352792192894
700.7210601879224360.5578796241551280.278939812077564
710.6963120589017680.6073758821964640.303687941098232
720.743438372736620.5131232545267610.256561627263380
730.690365967918440.619268064163120.30963403208156
740.6409127439639410.7181745120721180.359087256036059
750.70313061473790.5937387705241990.296869385262099
760.8399741814003140.3200516371993730.160025818599686
770.7993910424986450.4012179150027110.200608957501355
780.7532863289901260.4934273420197470.246713671009874
790.7324825665995320.5350348668009350.267517433400468
800.6883442615963230.6233114768073550.311655738403677
810.6622742571122480.6754514857755050.337725742887752
820.6262320023754960.7475359952490080.373767997624504
830.5856417420554640.8287165158890720.414358257944536
840.5728492805746780.8543014388506430.427150719425322
850.5939793575898180.8120412848203640.406020642410182
860.5554645840643950.8890708318712110.444535415935605
870.485675494010420.971350988020840.51432450598958
880.4901025656557710.9802051313115410.509897434344229
890.5079500140456580.9840999719086850.492049985954342
900.4989260929028570.9978521858057140.501073907097143
910.4284041087210160.8568082174420330.571595891278984
920.494591549687830.989183099375660.50540845031217
930.5110604911589030.9778790176821940.488939508841097
940.8451183866230840.3097632267538310.154881613376916
950.7368604693544560.5262790612910890.263139530645544
960.755425410807680.4891491783846410.244574589192320


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0111111111111111OK
10% type I error level100.111111111111111NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/10fjmn1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/10fjmn1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/18z7c1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/18z7c1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/21rof1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/21rof1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/31rof1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/31rof1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/41rof1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/41rof1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/5ci601292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/5ci601292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/6ci601292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/6ci601292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/7m95k1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/7m95k1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/8m95k1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/8m95k1292941512.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/9fjmn1292941512.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929414636gobet05zad330d/9fjmn1292941512.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Quarterly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Quarterly 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