Home » date » 2008 » Nov » 27 »

Case Seatbelt law Q3

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 27 Nov 2008 07:07:44 -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/Nov/27/t1227795053smd8igim4w3sq3e.htm/, Retrieved Thu, 27 Nov 2008 14:10:53 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93.7 105.7 109.5 105.3 102.8 100.6 97.6 110.3 107.2 107.2 108.1 97.1 92.2 112.2 111.6 115.7 111.3 104.2 103.2 112.7 106.4 102.6 110.6 95.2 89 112.5 116.8 107.2 113.6 101.8 102.6 122.7 110.3 110.5 121.6 100.3 100.7 123.4 127.1 124.1 131.2 111.6 114.2 130.1 125.9 119 133.8 107.5 113.5 134.4 126.8 135.6 139.9 129.8 131 153.1 134.1 144.1 155.9 123.3 128.1 144.3 153 149.9 150.9 141 138.9 157.4 142.9 151.7 161 138.5 135.9 151.5 164 159.1 157 142.1 144.8 152.1 154.6 148.7 157.7 146.4 136.5
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
omzet[t] = + 80.276 -0.605238095238104M1[t] + 18.1466666666667M2[t] + 20.9562857142857M3[t] + 18.5230476190476M4[t] + 19.1898095238095M5[t] + 7.65657142857143M6[t] + 7.0947619047619M7[t] + 21.5186666666667M8[t] + 12.6425714285714M9[t] + 12.2521904761905M10[t] + 20.7903809523809M11[t] + 0.733238095238095t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)80.2762.63294530.48900
M1-0.6052380952381043.140923-0.19270.8477410.42387
M218.14666666666673.2521655.579900
M320.95628571428573.2500346.44800
M418.52304761904763.2481265.702700
M519.18980952380953.2464415.91100
M67.656571428571433.244982.35950.0210140.010507
M77.09476190476193.2437442.18720.0319760.015988
M821.51866666666673.2427326.63600
M912.64257142857143.2419443.89970.0002140.000107
M1012.25219047619053.2413823.77990.0003210.00016
M1120.79038095238093.2410446.414700
t0.7332380952380950.02700827.149200


Multiple Linear Regression - Regression Statistics
Multiple R0.960511433070904
R-squared0.922582213059921
Adjusted R-squared0.909679248569908
F-TEST (value)71.5015695636452
F-TEST (DF numerator)12
F-TEST (DF denominator)72
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.0632278322715
Sum Squared Residuals2646.91668571429


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
193.780.40413.2960000000000
2105.799.88914285714285.81085714285715
3109.5103.4326.06799999999999
4105.3101.7323.56799999999999
5102.8103.132-0.331999999999998
6100.692.3328.268
797.692.50342857142865.09657142857142
8110.3107.6605714285712.63942857142856
9107.299.51771428571437.68228571428573
10107.299.86057142857147.33942857142857
11108.1109.132-1.03199999999999
1297.189.07485714285718.02514285714285
1392.289.20285714285712.9971428571429
14112.2108.6883.51199999999999
15111.6112.230857142857-0.630857142857143
16115.7110.5308571428575.16914285714286
17111.3111.930857142857-0.630857142857147
18104.2101.1308571428573.06914285714286
19103.2101.3022857142861.89771428571428
20112.7116.459428571429-3.75942857142857
21106.4108.316571428571-1.91657142857142
22102.6108.659428571429-6.05942857142858
23110.6117.930857142857-7.33085714285715
2495.297.8737142857143-2.67371428571428
258998.0017142857143-9.00171428571429
26112.5117.486857142857-4.98685714285715
27116.8121.029714285714-4.22971428571428
28107.2119.329714285714-12.1297142857143
29113.6120.729714285714-7.12971428571429
30101.8109.929714285714-8.12971428571429
31102.6110.101142857143-7.50114285714286
32122.7125.258285714286-2.55828571428571
33110.3117.115428571429-6.81542857142858
34110.5117.458285714286-6.95828571428571
35121.6126.729714285714-5.12971428571429
36100.3106.672571428571-6.37257142857144
37100.7106.800571428571-6.10057142857143
38123.4126.285714285714-2.88571428571428
39127.1129.828571428571-2.72857142857143
40124.1128.128571428571-4.02857142857143
41131.2129.5285714285711.67142857142857
42111.6118.728571428571-7.12857142857143
43114.2118.9-4.7
44130.1134.057142857143-3.95714285714286
45125.9125.914285714286-0.0142857142857130
46119126.257142857143-7.25714285714286
47133.8135.528571428571-1.72857142857141
48107.5115.471428571429-7.97142857142857
49113.5115.599428571429-2.09942857142857
50134.4135.084571428571-0.684571428571427
51126.8138.627428571429-11.8274285714286
52135.6136.927428571429-1.32742857142857
53139.9138.3274285714291.57257142857144
54129.8127.5274285714292.27257142857144
55131127.6988571428573.30114285714286
56153.1142.85610.244
57134.1134.713142857143-0.613142857142862
58144.1135.0569.044
59155.9144.32742857142911.5725714285714
60123.3124.270285714286-0.970285714285722
61128.1124.3982857142863.70171428571428
62144.3143.8834285714290.416571428571444
63153147.4262857142865.57371428571429
64149.9145.7262857142864.1737142857143
65150.9147.1262857142863.77371428571429
66141136.3262857142864.67371428571428
67138.9136.4977142857142.40228571428572
68157.4151.6548571428575.74514285714286
69142.9143.512-0.612000000000001
70151.7143.8548571428577.84514285714285
71161153.1262857142867.87371428571428
72138.5133.0691428571435.43085714285715
73135.9133.1971428571432.70285714285715
74151.5152.682285714286-1.18228571428572
75164156.2251428571437.77485714285715
76159.1154.5251428571434.57485714285714
77157155.9251428571431.07485714285714
78142.1145.125142857143-3.02514285714286
79144.8145.296571428571-0.496571428571425
80152.1160.453714285714-8.35371428571429
81154.6152.3108571428572.28914285714284
82148.7152.653714285714-3.95371428571429
83157.7161.925142857143-4.22514285714288
84146.4141.8684.53200000000001
85136.5141.996-5.496


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.3199686506116130.6399373012232260.680031349388387
170.2201630636629680.4403261273259360.779836936337032
180.1365277110615060.2730554221230120.863472288938494
190.07784750433594610.1556950086718920.922152495664054
200.04461690229195580.08923380458391170.955383097708044
210.0443948920949210.0887897841898420.955605107905079
220.08308840184883710.1661768036976740.916911598151163
230.04869398453739190.09738796907478390.951306015462608
240.04183172765711350.0836634553142270.958168272342886
250.06518716097555540.1303743219511110.934812839024445
260.03961686466918610.07923372933837220.960383135330814
270.02824960753919290.05649921507838590.971750392460807
280.03812594189238390.07625188378476770.961874058107616
290.03147029797294010.06294059594588030.96852970202706
300.02297034590776550.04594069181553090.977029654092235
310.01392222237124540.02784444474249070.986077777628755
320.02544738222098170.05089476444196340.974552617779018
330.01581730923057350.0316346184611470.984182690769427
340.01093674545265420.02187349090530830.989063254547346
350.02077130643613440.04154261287226890.979228693563866
360.0132352030597740.0264704061195480.986764796940226
370.009901450928004610.01980290185600920.990098549071995
380.01253281393062750.02506562786125500.987467186069372
390.01623511602801150.03247023205602310.983764883971988
400.01980217650617940.03960435301235870.98019782349382
410.06448906947263820.1289781389452760.935510930527362
420.05198526551062170.1039705310212430.948014734489378
430.04346397854413040.08692795708826080.95653602145587
440.04084233803705630.08168467607411260.959157661962944
450.04295775005451190.08591550010902380.957042249945488
460.05115438140728960.1023087628145790.94884561859271
470.07836737666291620.1567347533258320.921632623337084
480.1097309953722470.2194619907444930.890269004627753
490.1054958891548480.2109917783096960.894504110845152
500.09744102535203470.1948820507040690.902558974647965
510.4660062528408920.9320125056817850.533993747159108
520.6054918764607020.7890162470785970.394508123539298
530.6667566082963170.6664867834073660.333243391703683
540.68121678079780.6375664384043990.318783219202199
550.6915468975256140.6169062049487720.308453102474386
560.8225021155281120.3549957689437760.177497884471888
570.824209560243770.3515808795124600.175790439756230
580.8485440330079070.3029119339841850.151455966992093
590.8912985524328860.2174028951342280.108701447567114
600.956367395357890.087265209284220.04363260464211
610.9338519969862390.1322960060275230.0661480030137615
620.9015386824348860.1969226351302280.0984613175651142
630.9133262679669370.1733474640661260.086673732033063
640.9063964063298930.1872071873402140.0936035936701068
650.8661329790539230.2677340418921550.133867020946077
660.7873225246719180.4253549506561650.212677475328082
670.7044341971073990.5911316057852030.295565802892601
680.6830740711433630.6338518577132730.316925928856637
690.7889658912129080.4220682175741830.211034108787092


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level100.185185185185185NOK
10% type I error level230.425925925925926NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/10v0jd1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/10v0jd1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/1u55k1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/1u55k1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/26dez1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/26dez1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/32cxn1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/32cxn1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/4b1v21227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/4b1v21227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/5mgzu1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/5mgzu1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/61xdi1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/61xdi1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/76lx11227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/76lx11227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/8vhqg1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/8vhqg1227794852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/9gjmc1227794852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227795053smd8igim4w3sq3e/9gjmc1227794852.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