Home » date » 2009 » Nov » 22 »

Ws 7 link 2 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 14:56:19 -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/t1258927240cy07vnakrs5clye.htm/, Retrieved Sun, 22 Nov 2009 23:00:52 +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/t1258927240cy07vnakrs5clye.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 2 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 12578.3467133000 + 940.617859768512X[t] -9273.41189991766M1[t] -8171.45512129261M2[t] -3304.95713235452M3[t] + 1066.79085658356M4[t] -9907.20142016934M5[t] -6338.00379283771M6[t] -2779.3081961687M7[t] + 669.666289876279M8[t] -10768.7734064769M9[t] -9459.79795468256M10[t] -3727.14219083930M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)12578.34671330006086.4493342.06660.0421320.021066
X940.61785976851230.68503430.65400
M1-9273.411899917664718.068005-1.96550.0529610.026481
M2-8171.455121292614714.746288-1.73320.0870690.043534
M3-3304.957132354524714.031264-0.70110.4853610.24268
M41066.790856583564713.4480090.22630.8215450.410773
M5-9907.201420169344713.455984-2.10190.0388320.019416
M6-6338.003792837714712.480309-1.34490.1825930.091296
M7-2779.30819616874871.583131-0.57050.569990.284995
M8669.6662898762794869.8748830.13750.8909850.445493
M9-10768.77340647694868.963309-2.21170.0299520.014976
M10-9459.797954682564867.264228-1.94360.0556030.027802
M11-3727.142190839304867.109485-0.76580.4461470.223074


Multiple Linear Regression - Regression Statistics
Multiple R0.962400410778208
R-squared0.926214550666064
Adjusted R-squared0.914715519601035
F-TEST (value)80.5471822302383
F-TEST (DF numerator)12
F-TEST (DF denominator)77
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9105.2857716034
Sum Squared Residuals6383779631.65739


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110637097648.90614816448721.09385183561
2109375100255.8515024199119.14849758123
3116476105310.47306331111165.5269366895
4123297110716.90069799412580.099302006
5114813100213.21735112514599.7826488746
6117925106133.95962787811791.0403721217
7126466111103.582014215362.4179857999
8131235116621.91579173614613.0842082642
9120546106876.58824296613669.4117570341
10123791111195.54084601912595.4591539805
11129813117962.87625560811850.1237443919
12133463123853.4395239159609.56047608502
13122987116555.3251295116431.6748704888
14125418122924.741922842493.25807716008
15130199129766.537417292432.462582708131
16133016136019.521125767-3003.52112576698
17121454125703.961350852-4249.96135085205
18122044131906.888985535-9862.88898553549
19128313136029.955298066-7716.95529806561
20131556140701.733001810-9145.73300180967
21120027129921.725807294-9894.72580729445
22123001133958.493052417-10957.4930524175
23130111139597.087030284-9486.08703028389
24132524143888.599936984-11364.5999369843
25123742133768.631963275-10026.6319632750
26124931136939.948033391-12008.9480333907
27133646142182.693166236-8536.69316623624
28136557147024.750085059-10467.7500850586
29127509136238.881380259-8729.88138025937
30128945142159.623657012-13214.6236570123
31137191145812.381039658-8621.38103965815
32139716150107.911599495-10391.9115994948
33129083139892.275120841-10809.2751208407
34131604143740.91879401-12136.91879401
35139413149849.821701761-10436.8217017607
36143125153765.087464554-10640.0874645537
37133948145244.169852451-11296.1698524508
38137116148133.300564636-11017.3005646361
39144864153281.983911505-8417.98391150467
40149277158500.287974234-9223.28797423442
41138796148372.851771273-9576.8517712732
42143258153823.285118142-10565.2851181418
43150034158792.907504464-8758.90750446362
44154708163464.685208208-8756.68520820764
45144888152496.554441739-7608.55444173874
46148762156627.383472839-7865.3834728386
47156500162830.348166566-6330.34816656612
48161088167215.922859243-6127.92285924339
49152772157284.078457488-4512.07845748775
50158011160079.147383696-2068.14738369614
51163318165039.707158611-1721.70715861107
52169969170540.196579271-571.196579271382
53162269160224.6368043562044.36319564357
54165765166709.749796970-944.749796970428
55170600170550.6307515749.3692484299818
56174681175034.284883360-353.284883360355
57166364163407.7216150542956.2783849465
58170240166691.9945723623548.00542763831
59176150172518.7121221823631.28787781819
60182056176057.7307410675998.26925893259
61172218166878.3806271275339.6193728734
62177856169955.6349112667900.36508873449
63182253175386.5036160656866.4963839353
64188090181263.2401806326826.75981936761
65176863171229.8657636485633.13423635199
66183273176774.3608964946498.63910350648
67187969180803.3654230477165.6345769532
68194650185287.0195548379362.98044516286
69183036174695.1359322768340.86406772436
70189516178355.65603349111160.3439665087
71193805185122.991443088682.00855692013
72200499190543.2457815029955.75421849753
73188142181740.1428114696401.85718853093
74193732184911.4588815858820.54111841515
75197126190436.3893723616689.61062763911
76205140195842.8170070449297.18299295567
77191751185339.1336601766411.86633982431
78196700192106.4320107204593.56798927975
79199784197264.1779689962519.82203100424
80207360202688.4499605554671.55003944539
81196101192754.9988398313346.00116016894
82200824197168.0132288613655.98677113851
83205743203653.1632805202089.83671948046
84212489209919.9736927342569.02630726617
85200810201869.365010515-1059.36501051522
86203683206921.916800168-3238.91680016804
87207286213763.71229462-6477.71229461999
88210910216348.286349998-5438.28634999790
89194915201047.45191831-6132.45191830986
90217920206215.69990724811704.3000927521


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1790965167377570.3581930334755140.820903483262243
170.2148376597471520.4296753194943050.785162340252848
180.2492790356111040.4985580712222080.750720964388896
190.2764577632873810.5529155265747620.723542236712619
200.2888685233782190.5777370467564370.711131476621781
210.2822378039571770.5644756079143550.717762196042823
220.2623875037851320.5247750075702640.737612496214868
230.2138078009855150.4276156019710310.786192199014485
240.1793033527746910.3586067055493820.820696647225309
250.1278456295511210.2556912591022410.87215437044888
260.08606565842819570.1721313168563910.913934341571804
270.06292815569946190.1258563113989240.937071844300538
280.04079587820874620.08159175641749230.959204121791254
290.02681817006753950.0536363401350790.97318182993246
300.01857293838671890.03714587677343780.981427061613281
310.01226053018036650.02452106036073300.987739469819633
320.007598492374484180.01519698474896840.992401507625516
330.004895161291775260.009790322583550520.995104838708225
340.003344450006657560.006688900013315120.996655549993342
350.002268201039758650.00453640207951730.997731798960241
360.001805173181254980.003610346362509960.998194826818745
370.002325350536393510.004650701072787030.997674649463607
380.003695259316527620.007390518633055240.996304740683472
390.005199146228927520.01039829245785500.994800853771072
400.007418518479114530.01483703695822910.992581481520886
410.00854366354621320.01708732709242640.991456336453787
420.02035660475814210.04071320951628420.979643395241858
430.02869696619368510.05739393238737030.971303033806315
440.04946513612804660.09893027225609320.950534863871953
450.08829842575389320.1765968515077860.911701574246107
460.1785678575656820.3571357151313650.821432142434318
470.2828149139880890.5656298279761770.717185086011911
480.4740051983010330.9480103966020670.525994801698967
490.6397519767935550.7204960464128890.360248023206445
500.7945232333996510.4109535332006980.205476766600349
510.8523692916652720.2952614166694560.147630708334728
520.90706156841560.18587686316880.0929384315844
530.9308846483938870.1382307032122270.0691153516061135
540.9795829834546150.04083403309077050.0204170165453852
550.9864781224114420.02704375517711630.0135218775885581
560.9949884621386520.01002307572269510.00501153786134757
570.996972331709810.006055336580381390.00302766829019069
580.9987202912680010.002559417463997350.00127970873199867
590.9991986357539660.001602728492067800.000801364246033898
600.999524081307380.0009518373852393320.000475918692619666
610.9994937028669740.001012594266051520.000506297133025762
620.9993508105835230.001298378832953750.000649189416476873
630.9989029596227950.002194080754410950.00109704037720548
640.9983325727863450.003334854427309230.00166742721365462
650.996905865887540.006188268224919370.00309413411245968
660.9990663071440050.001867385711990060.000933692855995032
670.9980200809086150.003959838182770630.00197991909138532
680.9961539801473240.007692039705351740.00384601985267587
690.99227135720740.01545728558520040.00772864279260018
700.9836385579033450.03272288419331020.0163614420966551
710.9652812809649960.06943743807000840.0347187190350042
720.9290519738030940.1418960523938120.0709480261969062
730.8591485234358050.2817029531283890.140851476564195
740.7306104034541140.5387791930917730.269389596545886


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.305084745762712NOK
5% type I error level300.508474576271186NOK
10% type I error level350.593220338983051NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927240cy07vnakrs5clye/10rtlc1258926973.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927240cy07vnakrs5clye/10rtlc1258926973.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927240cy07vnakrs5clye/45vie1258926973.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927240cy07vnakrs5clye/45vie1258926973.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927240cy07vnakrs5clye/78pt51258926973.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t1258927240cy07vnakrs5clye/78pt51258926973.ps (open in new window)


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


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