Home » date » 2009 » Nov » 22 »

Ws 7 link 3 verbetering

*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: Sun, 22 Nov 2009 15:03:08 -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/22/t1258927458uk4erilyx1pk3u2.htm/, Retrieved Sun, 22 Nov 2009 23:04: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/22/t1258927458uk4erilyx1pk3u2.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:
Ws 7 link 3 verbetering
 
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 time10 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 208567.107938821 -921.004563567302X[t] -11949.1975185385M1[t] -8082.79076424465M2[t] -3965.65512368413M3[t] -343.269483123576M4[t] -13602.4626075061M5[t] -7617.86920888109M6[t] -4314.85008049639M7[t] -468.345557023851M8[t] -12413.4718215697M9[t] -8127.28954572532M10[t] -3619.37471336142M11[t] + 2261.93056733788t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)208567.10793882116132.4896512.928400
X-921.004563567302150.601916-6.115500
M1-11949.19751853852732.774495-4.37263.8e-051.9e-05
M2-8082.790764244652722.398061-2.9690.0039950.001998
M3-3965.655123684132722.493331-1.45660.1493390.074669
M4-343.2694831235762723.995504-0.1260.9000510.450026
M5-13602.46260750612737.786077-4.96844e-062e-06
M6-7617.869208881092723.022221-2.79760.006520.00326
M7-4314.850080496392815.653101-1.53250.1295640.064782
M8-468.3455570238512813.448906-0.16650.8682320.434116
M9-12413.47182156972814.539857-4.41053.3e-051.7e-05
M10-8127.289545725322812.493631-2.88970.0050230.002511
M11-3619.374713361422810.379633-1.28790.2017020.100851
t2261.93056733788181.71533512.447700


Multiple Linear Regression - Regression Statistics
Multiple R0.987784594200056
R-squared0.97571840453897
Adjusted R-squared0.971564973736425
F-TEST (value)234.918661445175
F-TEST (DF numerator)13
F-TEST (DF denominator)76
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5257.57399585094
Sum Squared Residuals2100798408.46045


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1106370106503.083261820-133.083261819800
2109375111157.813281744-1782.81328174364
3116476117352.678576929-876.678576928715
4123297122223.8897649031073.11023509688
5114813110766.1249260754046.87507392511
6117925116710.1374831191214.86251688052
7126466120893.5803334915572.41966650889
8131235124975.8053844536259.19461554652
9120546113634.8014728246911.19852717565
10123791117235.6997125916555.30028740875
11129813122992.4400923696820.559907631
12133463126755.4348768646707.56512313648
13122987115134.0583421727852.94165782846
14125418116104.7701078269313.22989217358
15130199120549.7267322339649.2732677665
16133016124592.0338129978423.96618700268
17121454112950.0680614568503.9319385444
18122044118617.779249433426.22075056998
19128313123630.1262070124682.87379298777
20131556128541.2553651853014.74463481485
21120027118213.356473481813.64352651992
22123001122090.556082317910.443917682825
23130111128952.5019383761158.49806162433
24132524134281.204480935-1757.20448093461
25123742125422.841636945-1680.84163694455
26124931129524.968918728-4593.96891872821
27133646135535.633301200-1889.63330119970
28136557140959.447227314-4402.44722731448
29127509129777.983757556-2268.98375755644
30128945135721.996314601-6776.99631460102
31137191141194.845553967-4003.8455539669
32139716146474.376537567-6758.37653756674
33129083135593.874907721-6510.87490772127
34131604139655.275429272-8051.27542927183
35139413146056.719003547-6643.71900354668
36143125151753.823371533-8628.82337153254
37133948141329.752769478-7381.75276947805
38137116145708.181420332-8592.18142033193
39144864151810.946259160-6946.94625916016
40149277156866.358359848-7589.35835984802
41138796145040.191695593-6244.19169559285
42143258151444.706534421-8186.7065344211
43150034155628.149384793-5594.14938479273
44154708160539.278542966-5831.27854296567
45144888150395.580563974-5507.58056397406
46148762154180.679716454-5418.67971645442
47156500160490.022834373-3990.02283437255
48161088165726.624920575-4638.62492057473
49152772156684.061163871-3912.06116387121
50158011161154.590271082-3143.59027108181
51163318167441.556022623-4123.5560226235
52169969172220.666754241-2251.66675424115
53162269160578.7010026991690.29899730054
54165765165970.110821604-205.110821603674
55170600171258.759148256-658.759148256062
56174681176354.089219142-1673.08921914246
57166364166855.094434648-491.094434647949
58170240171469.097694339-1229.09769433888
59176150178146.842637684-1996.84263768394
60182056184212.348831097-2156.34883109670
61172218174432.981423539-2214.98142353933
62177856178627.209161680-771.20916167975
63182253184453.672631438-2200.67263143779
64188090188864.381537629-774.381537628538
65176863176946.114417017-83.1144170166443
66183273183258.52879948814.4712005118637
67187969188362.976213427-393.976213427077
68194650193458.3062843131191.69371568653
69183036182946.20647989589.7935201050704
70189516187191.8079141592324.19208584106
71193805192948.548293937856.45170606331
72200499197172.0453602153326.95463978512
73188142187024.2761272311117.72387276941
74193732191126.4034090142605.59659098575
75197126196860.766422416265.233577584431
76205140201731.977610393408.02238961003
77191751190274.2127715621476.78722843826
78196700195389.3212213961310.67877860426
79199784199388.563159054395.436840946102
80207360203562.8886663733797.11133362698
81196101192406.0856674573694.91433254264
82200824195914.8834508684909.11654913249
83205743201947.9251997153795.07480028453
84212489205342.5181587837146.48184121697
85200810194457.9452749456352.05472505507
86203683196718.0634295946964.936570406
87207286201163.0200540016122.97994599892
88210910208797.2449326772112.75506732260
89194915202036.603368042-7121.60336804239
90217920208717.4195759419202.58042405917


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2112062159852690.4224124319705380.788793784014731
180.2610143862534730.5220287725069470.738985613746527
190.4911433283336810.9822866566673620.508856671666319
200.7707100927129270.4585798145741470.229289907287073
210.9374073337352480.1251853325295050.0625926662647524
220.9808134946451180.03837301070976320.0191865053548816
230.994189396883020.01162120623396020.00581060311698009
240.9975865132460270.004826973507946830.00241348675397342
250.9973710154301650.005257969139669870.00262898456983494
260.9957843050964460.008431389807108840.00421569490355442
270.9964478370443640.007104325911272470.00355216295563623
280.9952536648700730.009492670259854090.00474633512992704
290.9974647780696450.005070443860709920.00253522193035496
300.99546950318130.009060993637398920.00453049681869946
310.9948712831633260.01025743367334860.00512871683667431
320.9914942309999570.01701153800008600.00850576900004298
330.9862606779574350.02747864408512950.0137393220425647
340.9790645842962470.04187083140750650.0209354157037532
350.9679065549342480.06418689013150440.0320934450657522
360.9582437927592040.0835124144815910.0417562072407955
370.9517114251253110.09657714974937780.0482885748746889
380.954867245964350.09026550807130210.0451327540356511
390.9486384930088920.1027230139822150.0513615069911076
400.9420464544671350.1159070910657300.0579535455328648
410.9258902334305730.1482195331388550.0741097665694274
420.947109314221560.1057813715568780.0528906857784389
430.9363784820240930.1272430359518130.0636215179759065
440.93577297970130.1284540405973990.0642270202986997
450.9370396563244750.1259206873510490.0629603436755247
460.9491504748077110.1016990503845770.0508495251922886
470.9494497594332120.1011004811335770.0505502405667884
480.9660088040380210.06798239192395770.0339911959619789
490.9757379712859940.04852405742801110.0242620287140056
500.986006540915140.02798691816972100.0139934590848605
510.9858863868530330.0282272262939330.0141136131469665
520.9867209663338370.02655806733232660.0132790336661633
530.9969658782116440.006068243576712480.00303412178835624
540.9974328466070750.005134306785850790.00256715339292539
550.9968151087405220.0063697825189560.003184891259478
560.9956052071889980.008789585622004510.00439479281100225
570.9939464120464760.01210717590704810.00605358795352404
580.9919302768461180.01613944630776440.00806972315388218
590.9875031615163270.02499367696734570.0124968384836728
600.987385644856860.02522871028628210.0126143551431411
610.983279425367720.03344114926455860.0167205746322793
620.9776583328887070.04468333422258550.0223416671112928
630.9660461110643640.06790777787127260.0339538889356363
640.9477959427523440.1044081144953120.0522040572476562
650.948517626838610.1029647463227810.0514823731613903
660.9342199706278580.1315600587442840.0657800293721418
670.8937168932600730.2125662134798540.106283106739927
680.8398775953726610.3202448092546780.160122404627339
690.7651023524244260.4697952951511480.234897647575574
700.6718396036372740.6563207927254530.328160396362726
710.5492307606083450.901538478783310.450769239391655
720.4305186519470180.8610373038940360.569481348052982
730.3080035494943930.6160070989887870.691996450505607


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.192982456140351NOK
5% type I error level270.473684210526316NOK
10% type I error level330.578947368421053NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/107y821258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/107y821258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/1tbf01258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/1tbf01258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/2g68f1258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/2g68f1258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/3a3691258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/3a3691258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/4pks61258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/4pks61258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/5p0q01258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/5p0q01258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/6k3vp1258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/6k3vp1258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/748a51258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/748a51258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/8b3cd1258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/8b3cd1258927376.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/9ceqn1258927376.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927458uk4erilyx1pk3u2/9ceqn1258927376.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