Home » date » 2010 » Dec » 21 »

paper - trend

*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: Tue, 21 Dec 2010 21:12:09 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w.htm/, Retrieved Tue, 21 Dec 2010 22:10:11 +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/2010/Dec/21/t1292965800i8abhgoavucy65w.htm/},
    year = {2010},
}
@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 = {2010},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99.2 96.7 101.0 99.0 98.1 100.1 631 923 -12 -10.8 654 294 -13 -12.2 671 833 -16 -14.1 586 840 -10 -15.2 600 969 -4 -15.8 625 568 -9 -15.8 558 110 -8 -14.9 630 577 -9 -12.6 628 654 -3 -9.9 603 184 -13 -7.8 656 255 -3 -6 600 730 -1 -5 670 326 -2 -4.5 678 423 0 -3.9 641 502 0 -2.9 625 311 -3 -1.5 628 177 0 -0.5 589 767 5 0 582 471 3 0.5 636 248 4 0.9 599 885 3 0.8 621 694 1 0.1 637 406 -1 -1 595 994 0 -2 696 308 -2 -3 674 201 -1 -3.7 648 861 2 -4.7 649 605 0 -6.4 672 392 -6 -7.5 598 396 -7 -7.8 613 177 -6 -7.7 638 104 -4 -6.6 615 632 -9 -4.2 634 465 -2 -2 638 686 -3 -0.7 604 243 2 0.1 706 669 3 0.9 677 185 1 2.1 644 328 0 3.5 644 825 1 4.9 605 707 1 5.7 600 136 3 6.2 612 166 5 6.5 599 659 5 6.5 634 210 4 6.3 618 234 11 6.2 613 576 8 6.4 627 200 -1 6.3 668 973 4 5.8 651 479 4 5.1 619 661 4 5.1 644 260 6 5.8 579 936 6 6.7 601 752 6 7.1 595 376 6 6.7 588 902 4 5.5 634 341 1 4.2 594 305 6 3 606 200 0 2.2 610 926 2 2 633 685 -2 1.8 639 696 0 1.8 659 451 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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 31.3387138937592 + 0.0155462258573491Consumenten[t] -0.0412319081503414Ondernemers[t] + 20.6242720552282M1[t] + 490.964313243321M2[t] + 602.654800306586M3[t] -10.2499624707208M4[t] + 9.92761684711484M5[t] + 515.658777319681M6[t] + 604.420100331333M7[t] -6.33585887284848M8[t] + 11.2580469861704M9[t] + 618.072553059809M10[t] + 610.932913672097M11[t] -0.395084604896918t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)31.3387138937592126.290720.24810.8047370.402368
Consumenten0.01554622585734910.1331460.11680.9073790.45369
Ondernemers-0.04123190815034140.119592-0.34480.7312860.365643
M120.6242720552282112.5401830.18330.8551150.427558
M2490.964313243321133.4384673.67930.0004520.000226
M3602.654800306586106.0832765.68100
M4-10.249962470720881.586061-0.12560.9003770.450188
M59.92761684711484115.4140270.0860.9316950.465847
M6515.658777319681137.2673143.75660.000350.000175
M7604.420100331333104.209525.800
M8-6.3358588728484880.277466-0.07890.9373150.468657
M911.2580469861704115.3140630.09760.9225020.461251
M10618.072553059809137.2789014.50232.6e-051.3e-05
M11610.932913672097113.5216835.38161e-060
t-0.3950846048969180.662975-0.59590.5531190.27656


Multiple Linear Regression - Regression Statistics
Multiple R0.910034073036408
R-squared0.828162014087235
Adjusted R-squared0.794278467569225
F-TEST (value)24.4414206655447
F-TEST (DF numerator)14
F-TEST (DF denominator)71
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation148.827411824352
Sum Squared Residuals1572621.49423381


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
199.248.906798661313150.2932013386869
299518.910628678044-419.910628678044
3631647.652209749791-16.6522097497911
4-10.817.5534637179568-28.3534637179568
5-1311.4346333920497-24.4346333920497
6833544.959613875261288.040386124739
7586646.46437079249-60.4643707924905
8-15.2-8.7838053015356-6.41619469846439
9-413.0254264733486-17.0254264733486
10568645.971969020659-77.9719690206588
11558639.965637021501-81.9656370215013
12-14.912.6010099223793-27.5010099223793
13-920.7373653211106-29.7373653211106
14654517.13339988164136.866600118360
15603631.463765490598-28.4637654905980
16-7.814.4515853287716-22.2515853287716
17-39.71747021227763-12.7174702122776
18730540.07658164019189.923418359810
19670633.40274017784736.5972598221529
20-4.510.2004069066609-14.7004069066609
2107.80970077188205-7.80970077188205
22502640.838978179472-138.838978179472
23625638.143253619314-13.1432536193139
24-1.524.3216654720381-25.8216654720381
25017.7925038130849-17.7925038130849
26767512.108558539047254.891441460953
27582630.524806522489-48.5248065224888
280.59.6882689099141-9.1882689099141
2945.12495582008065-1.12495582008065
30885535.158606217584349.841393782416
31621634.259040310137-13.2590403101375
320.15.52293882630234-5.42293882630234
33-15.01043734302107-6.01043734302107
34994636.060854203374357.939145796626
35696633.31436777482862.6856322251715
36-319.3062108071049-22.3062108071049
37-110.5690580507082-11.5690580507082
38861507.514694571019353.485305428981
39649627.99068125306221.0093187469385
40-6.4-0.430476991633618-5.96952300836638
41-60.294584172266221-6.29458417226622
42396530.616723110341-134.616723110341
43613621.769249640177-8.76924964017737
44-7.713.2495060547998-20.9495060547998
45-4-0.642274943549959-3.35772505645004
46632631.2706331098260.729366890174338
47634631.0141099756692.98589002433083
48-2-5.991944035438223.99194403543822
49-37.68888542813224-10.6888854281322
50243502.575766153134-259.575766153134
51706624.12092872471881.8790712752822
520.93.44124386601085-2.54124386601085
531-6.193855093181857.19385509318185
54328525.51861087048-197.51861087048
55644626.81356537992417.1864346200757
564.9-16.867375271911621.7673752719116
571-4.573593002012465.57359300201246
58136626.287360716587-490.287360716587
59612621.336149828506-9.3361498285065
606.5-10.226000582578616.7260005825786
6151.822845751031893.17715424896811
62210497.610205515554-287.610205515554
63618612.2874499528055.71255004719471
646.2-18.41640593440624.616405934406
658-10.167079142202518.1670791422025
66200520.646600043039-320.646600043039
67668624.24969582359843.7503041764023
685.8-11.492389082958817.2923890829588
694-10.107342251146314.1073422511463
70661621.60724678264739.3927532173529
71644618.01524789218425.9847521078162
725.8-26.699178916133132.4991789161331
736-1.554407293598377.55440729359837
74752492.867297181985259.132702818015
75595609.960158306538-14.9601583065376
766.7-36.987678896613943.6876788966139
774-15.210709361289519.2107093612895
78341516.023264243106-175.023264243106
79594609.041337875825-15.041337875825
803-5.429282131357238.42928213135723
810-14.522354391542614.5223543915426
82926616.962957987435309.037042012565
83633620.21123388799712.7887661120031
841.8-20.611762667373322.4117626673733
850-8.76304973178228.7630497317822
86451488.279449479577-37.2794494795773


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.854063983841070.2918720323178590.145936016158929
190.7462780025036080.5074439949927850.253721997496392
200.7210618638414070.5578762723171870.278938136158593
210.604856724241270.7902865515174610.395143275758730
220.5247818268484920.9504363463030170.475218173151508
230.4172128598775140.8344257197550280.582787140122486
240.3279153591256490.6558307182512990.67208464087435
250.2421419186699290.4842838373398580.757858081330071
260.4233174214931820.8466348429863640.576682578506818
270.3645345812391930.7290691624783860.635465418760807
280.2874536610069880.5749073220139760.712546338993012
290.2192619556788540.4385239113577080.780738044321146
300.3241501965045590.6483003930091180.675849803495441
310.2571245168742160.5142490337484310.742875483125784
320.2072445875234910.4144891750469810.79275541247651
330.1553829988067660.3107659976135310.844617001193234
340.5088628479832640.9822743040334710.491137152016736
350.4367919584779670.8735839169559340.563208041522033
360.3734662702268250.7469325404536510.626533729773175
370.3168719009478500.6337438018956990.68312809905215
380.654955948613160.690088102773680.34504405138684
390.5891270469554130.8217459060891740.410872953044587
400.5247851162344730.9504297675310550.475214883765527
410.4670797674835510.9341595349671020.532920232516449
420.7666051397393930.4667897205212130.233394860260607
430.7200464811682860.5599070376634290.279953518831714
440.6688488141251860.6623023717496270.331151185874813
450.6038208599029550.792358280194090.396179140097045
460.5645878430344180.8708243139311650.435412156965582
470.495748569845570.991497139691140.50425143015443
480.4271220748946990.8542441497893970.572877925105301
490.3668118883758170.7336237767516340.633188111624183
500.4870396466105040.9740792932210080.512960353389496
510.439079365560710.878158731121420.56092063443929
520.3683395933485290.7366791866970570.631660406651471
530.3012546294184580.6025092588369170.698745370581542
540.3845669358977760.7691338717955520.615433064102224
550.3219149729526910.6438299459053830.678085027047309
560.2620358476563930.5240716953127860.737964152343607
570.2103670034218620.4207340068437230.789632996578138
580.8790862682354150.2418274635291700.120913731764585
590.8260002783642750.3479994432714510.173999721635725
600.7648856236833630.4702287526332750.235114376316637
610.6921291393767240.6157417212465520.307870860623276
620.921644389879860.1567112202402810.0783556101201406
630.8699170832932370.2601658334135260.130082916706763
640.7936588459787480.4126823080425040.206341154021252
650.6889862704049780.6220274591900440.311013729595022
660.6740403037694270.6519193924611460.325959696230573
670.5307448735641460.9385102528717070.469255126435854
680.3635835228671820.7271670457343640.636416477132818


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/10ph1d1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/10ph1d1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/11gm11292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/11gm11292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/2b73m1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/2b73m1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/3b73m1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/3b73m1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/4b73m1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/4b73m1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/5b73m1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/5b73m1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/6mhl71292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/6mhl71292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/7xqka1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/7xqka1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/8xqka1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/8xqka1292965921.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/9ph1d1292965921.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292965800i8abhgoavucy65w/9ph1d1292965921.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