Home » date » 2008 » Dec » 05 »

Paper - Regression Analyse - Met trend en seizonaliteit

*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: Fri, 05 Dec 2008 08:26:04 -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/Dec/05/t1228490822x01jlghwavevpwv.htm/, Retrieved Fri, 05 Dec 2008 15:27:12 +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/Dec/05/t1228490822x01jlghwavevpwv.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 «
95.2 0 95.00 0 94.00 0 92.2 0 91.00 0 91.2 0 103.4 1 105.00 0 104.6 0 103.8 0 101.8 0 102.4 0 103.8 0 103.4 0 102.00 0 101.8 0 100.2 0 101.4 0 113.8 0 116.00 0 115.6 0 113.00 0 109.4 0 111.00 0 112.4 0 112.2 0 111.00 0 108.8 0 107.4 0 108.6 0 118.8 0 122.2 1 122.6 0 122.2 0 118.8 0 119.00 0 118.2 0 117.8 0 116.8 0 114.6 0 113.4 0 113.8 0 124.2 0 125.8 0 125.6 0 122.4 0 119.00 0 119.4 0 118.6 0 118.00 0 116.00 0 114.8 0 114.6 0 114.6 0 124.00 0 125.2 0 124.00 0 117.6 1 113.2 0 111.4 0 112.2 0 109.8 0 106.4 0 105.2 0 102.2 0 99.8 0 111.00 0 113.00 0 108.4 0 105.4 0 102.00 0 102.8 0
 
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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 103.498852223816 -0.554088952654242Dumivariabele[t] + 1.03125298900049M1[t] + 0.152654232424681M2[t] -1.69261119081780M3[t] -3.33787661406025M4[t] -4.94980870396939M5[t] -5.02840746054521M6[t] + 5.85200860832138M7[t] + 7.67340985174558M8[t] + 6.3357962697274M9[t] + 3.51621233859398M10[t] -0.121401243424195M11[t] + 0.178598756575801t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)103.4988522238163.60098828.741800
Dumivariabele-0.5540889526542424.808957-0.11520.9086690.454334
M11.031252989000494.4068660.2340.8158010.4079
M20.1526542324246814.4023090.03470.9724570.486229
M3-1.692611190817804.398181-0.38480.7017610.35088
M4-3.337876614060254.394484-0.75960.4505940.225297
M5-4.949808703969394.39122-1.12720.2642970.132149
M6-5.028407460545214.388389-1.14580.2565660.128283
M75.852008608321384.456051.31330.1942630.097131
M87.673409851745584.4546331.72260.0902950.045148
M96.33579626972744.3825041.44570.1536430.076821
M103.516212338593984.4530880.78960.4329710.216485
M11-0.1214012434241954.380758-0.02770.9779870.488993
t0.1785987565758010.0437254.08460.0001376.9e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.640784343492286
R-squared0.410604574864839
Adjusted R-squared0.278498703713855
F-TEST (value)3.10814781574362
F-TEST (DF numerator)13
F-TEST (DF denominator)58
p-value0.00149136738186972
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.58731818362793
Sum Squared Residuals3338.90903873744


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
195.2104.708703969393-9.50870396939259
295104.008703969393-9.00870396939262
394102.342037302726-8.34203730272597
492.2100.875370636059-8.67537063605931
59199.442037302726-8.44203730272597
691.299.542037302726-8.34203730272596
7103.4110.046963175514-6.64696317551412
8105112.601052128168-7.60105212816832
9104.6111.442037302726-6.84203730272598
10103.8108.801052128168-5.00105212816834
11101.8105.342037302726-3.54203730272597
12102.4105.642037302726-3.24203730272596
13103.8106.851889048302-3.05188904830226
14103.4106.151889048302-2.75188904830223
15102104.485222381636-2.48522238163558
16101.8103.018555714969-1.21855571496892
17100.2101.585222381636-1.38522238163558
18101.4101.685222381636-0.285222381635574
19113.8112.7442372070781.05576279292204
20116114.7442372070781.25576279292204
21115.6113.5852223816362.01477761836441
22113110.9442372070782.05576279292204
23109.4107.4852223816361.91477761836442
24111107.7852223816363.21477761836442
25112.4108.9950741272123.40492587278813
26112.2108.2950741272123.90492587278814
27111106.6284074605454.37159253945481
28108.8105.1617407938793.63825920612147
29107.4103.7284074605453.67159253945481
30108.6103.8284074605454.7715925394548
31118.8114.8874222859883.91257771401243
32122.2116.3333333333335.86666666666665
33122.6115.7284074605456.8715925394548
34122.2113.0874222859889.11257771401244
35118.8109.6284074605459.1715925394548
36119109.9284074605459.07159253945481
37118.2111.1382592061217.06174079387852
38117.8110.4382592061217.36174079387852
39116.8108.7715925394558.02840746054519
40114.6107.3049258727887.29507412721185
41113.4105.8715925394557.5284074605452
42113.8105.9715925394557.8284074605452
43124.2117.0306073648977.16939263510282
44125.8119.0306073648976.7693926351028
45125.6117.8715925394557.7284074605452
46122.4115.2306073648977.16939263510283
47119111.7715925394557.2284074605452
48119.4112.0715925394557.3284074605452
49118.6113.2814442850315.3185557149689
50118112.5814442850315.41855571496891
51116110.9147776183645.08522238163559
52114.8109.4481109516985.35188904830225
53114.6108.0147776183646.58522238163558
54114.6108.1147776183646.48522238163558
55124119.1737924438074.82620755619321
56125.2121.1737924438074.02620755619320
57124120.0147776183643.98522238163559
58117.6116.8197034911530.78029650884743
59113.2113.914777618364-0.714777618364414
60111.4114.214777618364-2.81477761836441
61112.2115.424629363941-3.22462936394070
62109.8114.724629363941-4.9246293639407
63106.4113.057962697274-6.65796269727402
64105.2111.591296030607-6.39129603060736
65102.2110.157962697274-7.95796269727402
6699.8110.257962697274-10.4579626972740
67111121.316977522716-10.3169775227164
68113123.316977522716-10.3169775227164
69108.4122.157962697274-13.7579626972740
70105.4119.516977522716-14.1169775227164
71102116.057962697274-14.0579626972740
72102.8116.357962697274-13.5579626972740


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0009281522052962760.001856304410592550.999071847794704
180.0003092471134162120.0006184942268324250.999690752886584
193.23567820170955e-056.47135640341909e-050.999967643217983
202.63287329633982e-055.26574659267964e-050.999973671267037
211.11294142787016e-052.22588285574032e-050.999988870585721
221.87000273854808e-063.74000547709617e-060.999998129997261
231.13387395547069e-062.26774791094139e-060.999998866126045
242.52555021935058e-075.05110043870116e-070.999999747444978
257.58710922260604e-081.51742184452121e-070.999999924128908
261.99854627580138e-083.99709255160276e-080.999999980014537
275.17699671165076e-091.03539934233015e-080.999999994823003
285.59091398559214e-091.11818279711843e-080.999999994409086
295.79748195802338e-091.15949639160468e-080.999999994202518
303.25917723480674e-096.51835446961349e-090.999999996740823
311.02810985201841e-072.05621970403681e-070.999999897189015
321.15146406786644e-072.30292813573287e-070.999999884853593
338.6333596503733e-081.72667193007466e-070.999999913666404
343.7742201394031e-087.5484402788062e-080.999999962257799
351.54123613434915e-083.08247226869830e-080.999999984587639
366.85435007286094e-091.37087001457219e-080.99999999314565
375.25496176270613e-081.05099235254123e-070.999999947450382
382.28603290733624e-074.57206581467248e-070.99999977139671
393.96015106869575e-077.9203021373915e-070.999999603984893
402.29280955736129e-064.58561911472257e-060.999997707190443
411.07099269519224e-052.14198539038449e-050.999989290073048
424.34355453913659e-058.68710907827318e-050.99995656445461
430.0005619410926596830.001123882185319370.99943805890734
440.01122112276910900.02244224553821790.98877887723089
450.04898819695267020.09797639390534050.95101180304733
460.1205920831586430.2411841663172860.879407916841357
470.286294637441510.572589274883020.71370536255849
480.4888762769950720.9777525539901430.511123723004928
490.7508417584248060.4983164831503890.249158241575194
500.8446857895939430.3106284208121150.155314210406057
510.867720621802860.2645587563942790.132279378197139
520.881427137996270.2371457240074610.118572862003730
530.8072494710210320.3855010579579360.192750528978968
540.7743667298798710.4512665402402590.225633270120129
550.6637855859961790.6724288280076420.336214414003821


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level270.692307692307692NOK
5% type I error level280.717948717948718NOK
10% type I error level290.743589743589744NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/10cdv31228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/10cdv31228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/1pr6p1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/1pr6p1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/2obl21228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/2obl21228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/3gesp1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/3gesp1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/4cg2f1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/4cg2f1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/5qerd1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/5qerd1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/6opwg1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/6opwg1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/7auax1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/7auax1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/818mw1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/818mw1228490759.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/9ptpw1228490759.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490822x01jlghwavevpwv/9ptpw1228490759.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