Home » date » 2008 » Nov » 27 »

Investeringen met dummy variabele

*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: Thu, 27 Nov 2008 13:00:49 -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/t1227816570ntoagqivt7ok4wv.htm/, Retrieved Thu, 27 Nov 2008 20:09:39 +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/t1227816570ntoagqivt7ok4wv.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 «
119,5 0 125 0 145 0 105,3 0 116,9 0 120,1 0 88,9 0 78,4 0 114,6 0 113,3 0 117 0 99,6 0 99,4 0 101,9 0 115,2 0 108,5 0 113,8 0 121 0 92,2 0 90,2 0 101,5 0 126,6 0 93,9 0 89,8 0 93,4 0 101,5 0 110,4 0 105,9 0 108,4 0 113,9 0 86,1 0 69,4 0 101,2 0 100,5 0 98 0 106,6 0 90,1 0 96,9 0 109,9 0 99 0 106,3 0 128,9 0 111,1 0 102,9 0 130 0 87 0 87,5 0 117,6 0 103,4 0 110,8 0 112,6 0 102,5 1 112,4 1 135,6 1 105,1 1 127,7 1 137 1 91 1 90,5 1 122,4 1 123,3 1 124,3 1 120 1 118,1 1 119 1 142,7 1 123,6 1 129,6 1 151,6 1 110,4 1 99,2 1 130,5 1 136,2 1 129,7 1 128 1 121,6 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 time24 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
invest[t] = + 107.824598610113 + 18.7627965492451dummyvar[t] -1.21790621113053M1[t] + 2.39627309346937M2[t] + 9.75330954092637M3[t] -4.31291066150878M4[t] + 1.21741153446764M5[t] + 15.5220670295437M6[t] -10.2732774753803M7[t] -11.6686219803042M8[t] + 11.3527001814385M9[t] -6.42597765681877M10[t] -13.4713221617427M11[t] -0.0713221617427219t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)107.8245986101136.1745417.462800
dummyvar18.76279654924515.3131563.53140.0007860.000393
M1-1.217906211130536.955825-0.17510.8615780.430789
M22.396273093469376.9508230.34470.7314520.365726
M39.753309540926376.9476831.40380.1653610.082681
M4-4.312910661508786.980498-0.61790.5389360.269468
M51.217411534467647.2509540.16790.8672110.433605
M615.52206702954377.2393222.14410.0359510.017975
M7-10.27327747538037.229465-1.4210.1603190.080159
M8-11.66862198030427.22139-1.61580.1112060.055603
M911.35270018143857.2151041.57350.1207010.060351
M10-6.425977656818777.21061-0.89120.3762760.188138
M11-13.47132216174277.207912-1.8690.0663530.033177
t-0.07132216174272190.113866-0.62640.5333740.266687


Multiple Linear Regression - Regression Statistics
Multiple R0.713721327038836
R-squared0.509398132670077
Adjusted R-squared0.406529999197674
F-TEST (value)4.95195271339044
F-TEST (DF numerator)13
F-TEST (DF denominator)62
p-value7.17369109004551e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.4829117508561
Sum Squared Residuals9661.03131833897


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1119.5106.53537023724012.9646297627604
2125110.07822738009714.9217726199035
3145117.36394166581127.6360583341892
4105.3103.2263993016332.07360069836706
5116.9108.6853993358678.21460066413341
6120.1122.9187326692-2.81873266919994
788.997.0520660025333-8.1520660025333
878.495.5853993358666-17.1853993358666
9114.6118.535399335867-3.93539933586661
10113.3100.68539933586712.6146006641334
1111793.568732669223.4312673308000
1299.6106.9687326692-7.36873266919994
1399.4105.679504296327-6.27950429632668
14101.9109.222361439184-7.32236143918386
15115.2116.508075724898-1.30807572489815
16108.5102.3705333607206.12946663927973
17113.8107.8295333949545.97046660504604
18121122.062866728287-1.06286672828728
1992.296.1962000616206-3.99620006162062
2090.294.729533394954-4.52953339495395
21101.5117.679533394954-16.1795333949539
22126.699.82953339495426.7704666050460
2393.992.71286672828731.18713327171272
2489.8106.112866728287-16.3128667282873
2593.4104.823638355414-11.423638355414
26101.5108.366495498271-6.8664954982712
27110.4115.652209783985-5.25220978398549
28105.9101.5146674198084.3853325801924
29108.4106.9736674540411.42633254595871
30113.9121.207000787375-7.30700078737462
3186.195.340334120708-9.24033412070796
3269.493.8736674540413-24.4736674540413
33101.2116.823667454041-15.6236674540413
34100.598.97366745404131.52633254595872
359891.85700078737466.14299921262538
36106.6105.2570007873751.34299921262538
3790.1103.967772414501-13.8677724145014
3896.9107.510629557359-10.6106295573585
39109.9114.796343843073-4.89634384307282
4099100.658801478895-1.65880147889494
41106.3106.1178015131290.182198486871365
42128.9120.3511348464628.54886515353805
43111.194.484468179795316.6155318202047
44102.993.01780151312869.88219848687138
45130115.96780151312914.0321984868714
468798.1178015131286-11.1178015131286
4787.591.001134846462-3.50113484646196
48117.6104.40113484646213.1988651535380
49103.4103.1119064735890.288093526411324
50110.8106.6547636164464.14523638355412
51112.6113.940477902160-1.34047790216017
52102.5118.565732087227-16.0657320872274
53112.4124.024732121461-11.6247321214611
54135.6138.258065454794-2.65806545479442
55105.1112.391398788128-7.29139878812776
56127.7110.92473212146116.7752678785389
57137133.8747321214613.12526787853891
5891116.024732121461-25.0247321214611
5990.5108.908065454794-18.4080654547944
60122.4122.3080654547940.091934545205594
61123.3121.0188370819212.28116291807885
62124.3124.561694224778-0.261694224778342
63120131.847408510493-11.8474085104926
64118.1117.7098661463150.390133853685246
65119123.168866180548-4.16886618054843
66142.7137.4021995138825.29780048611823
67123.6111.53553284721512.0644671527849
68129.6110.06886618054819.5311338194516
69151.6133.01886618054818.5811338194516
70110.4115.168866180548-4.76886618054842
7199.2108.052199513882-8.85219951388176
72130.5121.4521995138829.04780048611825
73136.2120.16297114100816.0370288589915
74129.7123.7058282838665.99417171613431
75128130.99154256958-2.99154256957996
76121.6116.8540002054024.74599979459791


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6197935412668660.7604129174662670.380206458733134
180.5673343944724750.865331211055050.432665605527525
190.5197923043733450.960415391253310.480207695626655
200.5635515751523350.8728968496953290.436448424847665
210.4664976820257210.9329953640514410.533502317974279
220.7596002014640180.4807995970719640.240399798535982
230.8077076066085290.3845847867829420.192292393391471
240.7454947291796870.5090105416406260.254505270820313
250.6678735136066210.6642529727867580.332126486393379
260.5835998375976380.8328003248047250.416400162402362
270.5564302393441380.8871395213117230.443569760655862
280.6073910703628240.7852178592743510.392608929637176
290.5850005461722140.8299989076555720.414999453827786
300.5063049659781470.9873900680437050.493695034021853
310.4499231329381320.8998462658762630.550076867061868
320.697582393054750.6048352138905010.302417606945251
330.8001040311872070.3997919376255860.199895968812793
340.9077483040798770.1845033918402470.0922516959201233
350.9876667148583770.02466657028324590.0123332851416230
360.9942860501514720.01142789969705530.00571394984852764
370.9964712900868950.007057419826210490.00352870991310524
380.9955191615272220.008961676945556590.00448083847277829
390.995092913596780.009814172806438340.00490708640321917
400.992227960762750.01554407847450030.00777203923725013
410.9886113498668150.02277730026636920.0113886501331846
420.9934516641230050.01309667175398950.00654833587699477
430.9994096852845750.001180629430849650.000590314715424824
440.99993126648610.0001374670277996466.8733513899823e-05
450.999942650502650.0001146989946986825.73494973493412e-05
460.9999072341522270.0001855316955453049.2765847772652e-05
470.9998895047197840.0002209905604328120.000110495280216406
480.9999270406002430.0001459187995140587.29593997570288e-05
490.9999667960509266.64078981476907e-053.32039490738453e-05
500.9999182312903670.0001635374192657828.17687096328908e-05
510.9997367609048450.0005264781903107940.000263239095155397
520.99928333209680.001433335806397770.000716667903198886
530.9981161453920650.003767709215870430.00188385460793521
540.9955146900661120.008970619867776260.00448530993388813
550.9947709534892740.01045809302145220.00522904651072609
560.9951050597151680.009789880569662970.00489494028483149
570.9886010195056210.02279796098875760.0113989804943788
580.9967723674887110.006455265022577320.00322763251128866
590.9841195115678510.0317609768642970.0158804884321485


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.395348837209302NOK
5% type I error level250.581395348837209NOK
10% type I error level250.581395348837209NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/109k9i1227816023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/109k9i1227816023.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/2oy8g1227816023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/2oy8g1227816023.ps (open in new window)


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/55d0b1227816023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/55d0b1227816023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/6xgzp1227816023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/6xgzp1227816023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/7x0mk1227816023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227816570ntoagqivt7ok4wv/7x0mk1227816023.ps (open in new window)


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


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