Home » date » 2009 » Nov » 20 »

*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: Fri, 20 Nov 2009 06:12:38 -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/Nov/20/t12587232179px1963yn45jgsx.htm/, Retrieved Fri, 20 Nov 2009 14:20:30 +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/Nov/20/t12587232179px1963yn45jgsx.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:
Rob_WS7_1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106370 100,3 109375 101,9 116476 102,1 123297 103,2 114813 103,7 117925 106,2 126466 107,7 131235 109,9 120546 111,7 123791 114,9 129813 116 133463 118,3 122987 120,4 125418 126 130199 128,1 133016 130,1 121454 130,8 122044 133,6 128313 134,2 131556 135,5 120027 136,2 123001 139,1 130111 139 132524 139,6 123742 138,7 124931 140,9 133646 141,3 136557 141,8 127509 142 128945 144,5 137191 144,6 139716 145,5 129083 146,8 131604 149,5 139413 149,9 143125 150,1 133948 150,9 137116 152,8 144864 153,1 149277 154 138796 154,9 143258 156,9 150034 158,4 154708 159,7 144888 160,2 148762 163,2 156500 163,7 161088 164,4 152772 163,7 158011 165,5 163318 165,6 169969 166,8 162269 167,5 165765 170,6 170600 170,9 174681 172 166364 171,8 170240 173,9 176150 174 182056 173,8 172218 173,9 177856 176 182253 176,6 188090 178,2 176863 179,2 183273 181,3 187969 181,8 194650 182,9 183036 183,8 189516 186,3 193805 187,4 200499 189,2 188142 189,7 193732 191,9 1971 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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
HFCE[t] = + 7117.57957043553 + 942.117029576953RPI[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7117.579570435535207.5093791.36680.1751720.087586
RPI942.11702957695331.94257329.494100


Multiple Linear Regression - Regression Statistics
Multiple R0.95295985390233
R-squared0.90813248314955
Adjusted R-squared0.907088534094432
F-TEST (value)869.901149578852
F-TEST (DF numerator)1
F-TEST (DF denominator)88
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9503.7112551085
Sum Squared Residuals7948206430.60187


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1106370101611.9176370044758.08236299578
2109375103119.3048843276255.69511567294
3116476103307.72829024213168.2717097576
4123297104344.05702277718952.9429772229
5114813104815.1155375669997.88446243442
6117925107170.40811150810754.5918884920
7126466108583.58365587317882.4163441266
8131235110656.24112094320578.7588790573
9120546112352.0517741818193.94822581879
10123791115366.8262688278424.17373117254
11129813116403.15500136213409.8449986379
12133463118570.02416938914892.9758306109
13122987120548.4699315012438.5300684993
14125418125824.325297132-406.32529713163
15130199127802.7710592432396.22894075677
16133016129687.0051183973328.99488160287
17121454130346.487039101-8892.48703910101
18122044132984.414721916-10940.4147219165
19128313133549.684939663-5236.68493966263
20131556134774.437078113-3218.43707811268
21120027135433.918998817-15406.9189988165
22123001138166.058384590-15165.0583845897
23130111138071.846681632-7960.84668163202
24132524138637.116899378-6113.11689937818
25123742137789.211572759-14047.2115727589
26124931139861.869037828-14930.8690378282
27133646140238.715849659-6592.71584965902
28136557140709.774364447-4152.7743644475
29127509140898.197770363-13389.1977703629
30128945143253.490344305-14308.4903443053
31137191143347.702047263-6156.70204726295
32139716144195.607373882-4479.60737388221
33129083145420.359512332-16337.3595123323
34131604147964.07549219-16360.0754921900
35139413148340.922304021-8927.92230402081
36143125148529.345709936-5404.34570993619
37133948149283.039333598-15335.0393335978
38137116151073.061689794-13957.0616897940
39144864151355.696798667-6491.69679866705
40149277152203.602125286-2926.60212528631
41138796153051.507451906-14255.5074519056
42143258154935.741511059-11677.7415110595
43150034156348.917055425-6314.91705542491
44154708157573.669193875-2865.66919387493
45144888158044.727708663-13156.7277086634
46148762160871.078797394-12109.0787973943
47156500161342.137312183-4842.13731218275
48161088162001.619232887-913.619232886629
49152772161342.137312183-8570.13731218275
50158011163037.947965421-5026.94796542127
51163318163132.159668379185.840331621038
52169969164262.7001038715706.29989612868
53162269164922.182024575-2653.18202457518
54165765167842.744816264-2077.74481626373
55170600168125.3799251372474.62007486318
56174681169161.7086576715519.29134232854
57166364168973.285251756-2609.28525175609
58170240170951.731013868-711.731013867682
59176150171045.9427168255104.05728317462
60182056170857.5193109111198.48068909
61172218170951.7310138681266.26898613232
62177856172930.1767759794925.82322402072
63182253173495.4469937258757.55300627456
64188090175002.83424104913087.1657589514
65176863175944.951270626918.048729374482
66183273177923.3970327375349.60296726286
67187969178394.4555475269574.54445247439
68194650179430.78428006015219.2157199397
69183036180278.6896066802757.31039332048
70189516182633.9821806226882.0178193781
71193805183670.31091315710134.6890868435
72200499185366.12156639515132.8784336050
73188142185837.1800811842304.81991881647
74193732187909.8375462535822.16245374717
75197126188569.3194669578556.68053304331
76205140189605.64819949115534.3518005087
77191751190076.7067142801674.29328572019
78196700193279.9046148413420.09538515854
79199784194881.5035651224902.49643487771
80207360196859.94932723410500.0506727661
81196101198367.336574557-2266.33657455701
82200824201476.322772161-652.322772160962
83205743202230.0163958233512.98360417749
84212489204773.7323756807715.2676243197
85200810205998.484514130-5188.48451413032
86203683209955.376038354-6272.37603835354
87207286211933.821800465-4647.82180046513
88210910210143.799444269766.200555731074
89194915205810.061108215-10895.0611082149
90217920207411.66005849610508.3399415042


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1685602743317520.3371205486635050.831439725668248
60.1413365741131610.2826731482263220.858663425886839
70.08060798345398580.1612159669079720.919392016546014
80.04885610508178730.09771221016357460.951143894918213
90.1438549650705600.2877099301411190.85614503492944
100.1549559380197460.3099118760394920.845044061980254
110.1262078399230690.2524156798461380.873792160076931
120.1193849474845360.2387698949690710.880615052515464
130.2217923700223800.4435847400447590.77820762997762
140.2761687844013220.5523375688026450.723831215598678
150.2429186008006590.4858372016013180.757081399199341
160.2113522443928470.4227044887856940.788647755607153
170.3167605053304730.6335210106609450.683239494669527
180.3623580190444910.7247160380889820.637641980955509
190.3004894623981630.6009789247963260.699510537601837
200.2473422670921780.4946845341843550.752657732907822
210.3109853230337060.6219706460674120.689014676966294
220.3063195058167180.6126390116334360.693680494183282
230.2457340640853290.4914681281706580.754265935914671
240.2014584723051190.4029169446102370.798541527694881
250.1837901576095290.3675803152190570.816209842390471
260.1629393087851250.3258786175702500.837060691214875
270.1359273268503380.2718546537006750.864072673149662
280.1294744418804950.2589488837609900.870525558119505
290.1052900557600700.2105801115201410.89470994423993
300.086091790559410.172183581118820.91390820944059
310.07779656397016150.1555931279403230.922203436029839
320.0796874984756190.1593749969512380.920312501524381
330.07448375119419680.1489675023883940.925516248805803
340.07019639149704640.1403927829940930.929803608502954
350.06431606720691420.1286321344138280.935683932793086
360.0714268427088060.1428536854176120.928573157291194
370.06934675115807260.1386935023161450.930653248841927
380.06801523928123370.1360304785624670.931984760718766
390.0769307434377820.1538614868755640.923069256562218
400.1090665848192480.2181331696384960.890933415180752
410.1194812019591190.2389624039182380.880518798040881
420.131928169373390.263856338746780.86807183062661
430.1605548137721910.3211096275443810.839445186227809
440.2188017052968220.4376034105936430.781198294703178
450.2783983287286960.5567966574573910.721601671271304
460.3723555389390910.7447110778781820.627644461060909
470.4584488205870210.9168976411740430.541551179412979
480.5617433721562190.8765132556875610.438256627843781
490.6586705044840250.682658991031950.341329495515975
500.739562470289420.520875059421160.26043752971058
510.8036391363936380.3927217272127240.196360863606362
520.8756367847939120.2487264304121770.124363215206088
530.9053287019302010.1893425961395990.0946712980697993
540.931585518069540.1368289638609190.0684144819304594
550.9465123957085250.1069752085829510.0534876042914754
560.9580273674544140.08394526509117260.0419726325455863
570.9734200172370960.05315996552580760.0265799827629038
580.9825053887627150.03498922247456930.0174946112372847
590.9850089778620290.0299820442759430.0149910221379715
600.9887125971244460.02257480575110740.0112874028755537
610.991708737980770.01658252403846010.00829126201923006
620.9921072326520450.01578553469590960.0078927673479548
630.9916083699506040.01678326009879110.00839163004939553
640.9924476991720630.01510460165587330.00755230082793667
650.9945579125433350.01088417491333060.00544208745666531
660.9939422135309460.01211557293810740.00605778646905371
670.9921708418016560.01565831639668810.00782915819834406
680.9928154571617790.01436908567644270.00718454283822133
690.9928628593187530.01427428136249410.00713714068124703
700.9898633971251880.02027320574962480.0101366028748124
710.9849710504121870.03005789917562620.0150289495878131
720.9858036906466250.02839261870675080.0141963093533754
730.9824879494254140.03502410114917250.0175120505745862
740.9725622855804660.05487542883906750.0274377144195337
750.9564096171942780.08718076561144460.0435903828057223
760.9655664972892990.06886700542140260.0344335027107013
770.9488453144325650.1023093711348700.0511546855674348
780.9181771551350350.1636456897299310.0818228448649654
790.8696032225209280.2607935549581440.130396777479072
800.8578759180600950.284248163879810.142124081939905
810.799115292737910.401769414524180.20088470726209
820.7107333881016870.5785332237966260.289266611898313
830.5847484386012670.8305031227974660.415251561398733
840.5682418958145610.8635162083708770.431758104185439
850.4106287688690480.8212575377380970.589371231130952


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level160.197530864197531NOK
10% type I error level220.271604938271605NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/10pt7z1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/10pt7z1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/1ed1u1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/1ed1u1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/2bowv1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/2bowv1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/3u0bg1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/3u0bg1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/4onp71258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/4onp71258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/5s8yo1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/5s8yo1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/6wy071258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/6wy071258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/7poba1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/7poba1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/8ca0n1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/8ca0n1258722754.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/9yexz1258722754.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587232179px1963yn45jgsx/9yexz1258722754.ps (open in new window)


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