Home » date » 2009 » Nov » 18 »

*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: Wed, 18 Nov 2009 05:06:02 -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/18/t1258546123wn4pb1jj4kb9etl.htm/, Retrieved Wed, 18 Nov 2009 13:09:00 +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/18/t1258546123wn4pb1jj4kb9etl.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
149657 0 142773 0 133639 0 128332 0 120297 0 118632 0 155276 0 169316 0 167395 0 157939 0 149601 0 146310 0 141579 0 136473 0 129818 0 124226 0 116428 0 116440 0 147747 0 160069 0 163129 0 151108 0 141481 0 139174 0 134066 0 130104 0 123090 0 116598 0 109627 0 105428 0 137272 0 159836 0 155283 0 141514 0 131852 0 130691 0 128461 0 123066 0 117599 0 111599 0 105395 0 102334 0 131305 0 149033 0 144954 0 132404 0 122104 0 118755 0 116222 1 110924 1 103753 1 99983 1 93302 1 91496 1 119321 1 139261 1 133739 1 123913 1 113438 1 109416 1 109406 1 105645 1 101328 1 97686 1 93093 1 91382 1 122257 1 139183 1 139887 1 131822 1 116805 1 113706 1 113012 1 110452 1 107005 1 102841 1 98173 1 98181 1 137277 1 147579 1 146571 1 138920 1 130340 1 128140 1 127059 1 122860 1 117702 1 113537 1 108366 1 111078 1 150739 1 159129 1 157928 1 147768 1 137507 1 136919 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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 135213.4375 -14649.1250000000X[t] -456.124999999875M1[t] -5101.74999999997M2[t] -11147.1250000000M3[t] -16038.625M4[t] -22303.75M5[t] -23517.5000000000M6[t] + 9760.37499999999M7[t] + 25036.875M8[t] + 23221.8750000000M9[t] + 12784.625M10[t] + 2502.12500000000M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)135213.43753374.05034340.074500
X-14649.12500000001871.586388-7.827100
M1-456.1249999998754584.431659-0.09950.9209860.460493
M2-5101.749999999974584.431659-1.11280.2689890.134494
M3-11147.12500000004584.431659-2.43150.0171880.008594
M4-16038.6254584.431659-3.49850.0007550.000377
M5-22303.754584.431659-4.86515e-063e-06
M6-23517.50000000004584.431659-5.12992e-061e-06
M79760.374999999994584.4316592.1290.0362160.018108
M825036.8754584.4316595.461300
M923221.87500000004584.4316595.06542e-061e-06
M1012784.6254584.4316592.78870.0065610.00328
M112502.125000000004584.4316590.54580.5866760.293338


Multiple Linear Regression - Regression Statistics
Multiple R0.895492940373178
R-squared0.8019076062582
Adjusted R-squared0.773267742102758
F-TEST (value)27.9997000651224
F-TEST (DF numerator)12
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9168.86331797323
Sum Squared Residuals6977648527.12503


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1149657134757.31249999914899.6875000008
2142773130111.687512661.3125
3133639124066.31259572.68749999997
4128332119174.81259157.1874999999
5120297112909.68757387.31250000003
6118632111695.93756936.06249999996
7155276144973.812510302.1875
8169316160250.31259065.68750000006
9167395158435.31258959.68750000002
10157939147998.06259940.9375
11149601137715.562511885.4375000000
12146310135213.437511096.5625
13141579134757.31256821.68749999987
14136473130111.68756361.31249999998
15129818124066.31255751.68749999998
16124226119174.81255051.1875
17116428112909.68753518.31249999998
18116440111695.93754744.06249999999
19147747144973.81252773.18749999999
20160069160250.3125-181.312500000025
21163129158435.31254693.68749999998
22151108147998.06253109.93749999999
23141481137715.56253765.43749999999
24139174135213.43753960.5625
25134066134757.3125-691.312500000135
26130104130111.6875-7.68750000001614
27123090124066.3125-976.312500000013
28116598119174.8125-2576.8125
29109627112909.6875-3282.68750000002
30105428111695.9375-6267.93750000001
31137272144973.8125-7701.8125
32159836160250.3125-414.312500000025
33155283158435.3125-3152.31250000002
34141514147998.0625-6484.06250000001
35131852137715.5625-5863.56250000001
36130691135213.4375-4522.4375
37128461134757.3125-6296.31250000013
38123066130111.6875-7045.68750000002
39117599124066.3125-6467.31250000001
40111599119174.8125-7575.8125
41105395112909.6875-7514.68750000001
42102334111695.9375-9361.9375
43131305144973.8125-13668.8125
44149033160250.3125-11217.3125000000
45144954158435.3125-13481.3125000000
46132404147998.0625-15594.0625
47122104137715.5625-15611.5625
48118755135213.4375-16458.4375
49116222120108.187500000-3886.18750000011
50110924115462.5625-4538.56249999999
51103753109417.1875-5664.18749999999
5299983104525.6875-4542.68749999997
539330298260.5625-4958.5625
549149697046.8125-5550.81249999999
55119321130324.6875-11003.6875
56139261145601.1875-6340.18750000001
57133739143786.1875-10047.1875
58123913133348.9375-9435.9375
59113438123066.4375-9628.43749999999
60109416120564.3125-11148.3125000000
61109406120108.187500000-10702.1875000001
62105645115462.5625-9817.56249999999
63101328109417.1875-8089.18749999999
6497686104525.6875-6839.68749999997
659309398260.5625-5167.5625
669138297046.8125-5664.81249999999
67122257130324.6875-8067.68749999999
68139183145601.1875-6418.18750000001
69139887143786.1875-3899.1875
70131822133348.9375-1526.93749999999
71116805123066.4375-6261.43749999999
72113706120564.3125-6858.31249999999
73113012120108.187500000-7096.18750000011
74110452115462.5625-5010.56249999999
75107005109417.1875-2412.18749999999
76102841104525.6875-1684.68749999997
779817398260.5625-87.5624999999964
789818197046.81251134.18750000001
79137277130324.68756952.31250000001
80147579145601.18751977.81249999999
81146571143786.18752784.8125
82138920133348.93755571.06250000001
83130340123066.43757273.56250000001
84128140120564.31257575.68750000001
85127059120108.1875000006950.81249999989
86122860115462.56257397.43750
87117702109417.18758284.81250000001
88113537104525.68759011.31250000003
8910836698260.562510105.4375
9011107897046.812514031.1875
91150739130324.687520414.3125
92159129145601.187513527.8125
93157928143786.187514141.8125
94147768133348.937514419.0625
95137507123066.437514440.5625
96136919120564.312516354.6875


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1873237494259930.3746474988519850.812676250574007
170.0998183389946440.1996366779892880.900181661005356
180.04660669211671020.09321338423342040.95339330788329
190.04146906787135400.08293813574270810.958530932128646
200.04629994005469260.09259988010938530.953700059945307
210.02822394841534180.05644789683068360.971776051584658
220.02240747172079510.04481494344159030.977592528279205
230.02165853188132030.04331706376264070.97834146811868
240.01855062467710880.03710124935421760.981449375322891
250.03716908480319940.07433816960639880.9628309151968
260.04570710192266690.09141420384533380.954292898077333
270.04775996137550330.09551992275100660.952240038624497
280.05353299284711030.1070659856942210.94646700715289
290.0525766503703560.1051533007407120.947423349629644
300.06930435274962940.1386087054992590.930695647250371
310.1036984012184700.2073968024369400.89630159878153
320.08381571444350860.1676314288870170.916184285556491
330.08595583713985170.1719116742797030.914044162860148
340.1042187367879500.2084374735758990.89578126321205
350.1277351630309260.2554703260618520.872264836969074
360.1383041564073950.276608312814790.861695843592605
370.1696798440372860.3393596880745710.830320155962714
380.1994862249414960.3989724498829920.800513775058504
390.208588670098980.417177340197960.79141132990102
400.2147046790331290.4294093580662590.78529532096687
410.2085780902449880.4171561804899750.791421909755012
420.2051673797926250.4103347595852490.794832620207375
430.2319452122475230.4638904244950460.768054787752477
440.2451057453685630.4902114907371260.754894254631437
450.2806582259750450.5613164519500890.719341774024955
460.3170919524099450.634183904819890.682908047590055
470.3585480193288170.7170960386576340.641451980671183
480.4037439754845240.8074879509690490.596256024515476
490.3391801671410780.6783603342821550.660819832858922
500.2799099116495280.5598198232990560.720090088350472
510.2300086398046450.460017279609290.769991360195355
520.1857275492519180.3714550985038370.814272450748082
530.150357273567230.300714547134460.84964272643277
540.1241511594512810.2483023189025620.87584884054872
550.1324604245635850.2649208491271690.867539575436415
560.1103413093381560.2206826186763110.889658690661844
570.107364091708670.214728183417340.89263590829133
580.1101641454724490.2203282909448970.889835854527551
590.1112825228962270.2225650457924550.888717477103773
600.1269184363982660.2538368727965320.873081563601734
610.1167156942565670.2334313885131340.883284305743433
620.1054989567714480.2109979135428960.894501043228552
630.09280385067757620.1856077013551520.907196149322424
640.07946784543706820.1589356908741360.920532154562932
650.06735046900841160.1347009380168230.932649530991588
660.06541403251643570.1308280650328710.934585967483564
670.1166675289112500.2333350578225010.88333247108875
680.1258813015870280.2517626031740550.874118698412972
690.1276107516674250.2552215033348500.872389248332575
700.1300894878473210.2601789756946410.86991051215268
710.1840016559995050.368003311999010.815998344000495
720.3099830307799930.6199660615599860.690016969220007
730.3353222099311920.6706444198623840.664677790068808
740.3393397780920810.6786795561841610.66066022190792
750.3216151086548240.6432302173096480.678384891345176
760.3049393053278430.6098786106556860.695060694672157
770.2829393214274370.5658786428548730.717060678572563
780.3121543146097040.6243086292194090.687845685390295
790.388477750600580.776955501201160.61152224939942
800.3981540140025450.796308028005090.601845985997455


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.0461538461538462OK
10% type I error level100.153846153846154NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/10yexh1258545955.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/10yexh1258545955.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/1m7291258545954.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/1m7291258545954.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/2s6a41258545954.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/2s6a41258545954.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/3gl0n1258545954.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/3gl0n1258545954.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/45rm91258545954.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/45rm91258545954.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/5rxzx1258545955.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/5rxzx1258545955.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/60vup1258545955.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/60vup1258545955.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/7sdk01258545955.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/7sdk01258545955.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/8eas51258545955.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/8eas51258545955.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/9gylc1258545955.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258546123wn4pb1jj4kb9etl/9gylc1258545955.ps (open in new window)


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