Home » date » 2009 » Nov » 20 »

WS 7.3

*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, 20 Nov 2009 15:04:53 -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/20/t12587548700032orglez0s8fj.htm/, Retrieved Fri, 20 Nov 2009 23:08:02 +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/20/t12587548700032orglez0s8fj.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
474605 0 470390 0 461251 0 454724 0 455626 0 516847 0 525192 0 522975 0 518585 0 509239 0 512238 0 519164 0 517009 0 509933 0 509127 0 500875 0 506971 0 569323 0 579714 0 577992 0 565644 0 547344 0 554788 0 562325 0 560854 0 555332 0 543599 0 536662 0 542722 0 593530 0 610763 0 612613 0 611324 0 594167 0 595454 0 590865 0 589379 0 584428 0 573100 0 567456 0 569028 0 620735 0 628884 0 628232 0 612117 0 595404 0 597141 0 593408 0 590072 0 579799 0 574205 0 572775 0 572942 0 619567 0 625809 0 619916 0 587625 0 565724 0 557274 0 560576 0 548854 0 531673 0 525919 0 511038 0 498662 0 555362 0 564591 0 541667 0 527070 0 509846 0 514258 0 516922 0 507561 0 492622 0 490243 0 469357 0 477580 0 528379 0 533590 0 517945 1 506174 1 501866 1 516441 1 528222 1 532638 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkzoekend[t] = + 547894.545081966 -54536.8842213115Crisis[t] -12570.6784586022M1[t] -26133.4516552008M2[t] -33079.7048356996M3[t] -42572.2437304839M4[t] -41321.7826252682M5[t] + 12724.107051376M6[t] + 21711.1395851631M7[t] + 22488.7270077089M8[t] + 8961.33097006743M9[t] -6301.49363900264M10[t] -3142.46110521557M11[t] + 270.110323355782t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)547894.54508196617618.58754631.097500
Crisis-54536.884221311519779.076066-2.75730.0074040.003702
M1-12570.678458602220955.558696-0.59990.55050.27525
M2-26133.451655200821785.417137-1.19960.2342890.117144
M3-33079.704835699621779.247823-1.51890.1332380.066619
M4-42572.243730483921774.916487-1.95510.0545080.027254
M5-41321.782625268221772.424226-1.89790.0617760.030888
M612724.10705137621771.7716710.58440.5607830.280391
M721711.139585163121772.9589880.99720.3220730.161036
M822488.727007708921637.4446581.03930.3021720.151086
M98961.3309700674321630.964010.41430.6799160.339958
M10-6301.4936390026421626.333787-0.29140.771610.385805
M11-3142.4611052155721623.555178-0.14530.8848650.442433
t270.110323355782200.1454131.34960.1814410.090721


Multiple Linear Regression - Regression Statistics
Multiple R0.548442358230699
R-squared0.300789020301651
Adjusted R-squared0.17276447472308
F-TEST (value)2.34946368247057
F-TEST (DF numerator)13
F-TEST (DF denominator)71
p-value0.0113830623123323
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40452.2345635065
Sum Squared Residuals116183212963.847


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1474605535593.976946726-60988.9769467255
2470390522301.314073478-51911.3140734776
3461251515625.171216335-54374.1712163348
4454724506402.742644906-51678.7426449063
5455626507923.314073478-52297.3140734775
6516847562239.314073478-45392.3140734776
7525192571496.45693062-46304.4569306204
8522975572544.154676522-49569.1546765221
9518585559286.868962236-40701.8689622364
10509239544294.154676522-35055.1546765221
11512238547723.297533665-35485.297533665
12519164551135.868962236-31971.8689622363
13517009538835.30082699-21826.3008269899
14509933525542.637953747-15609.6379537470
15509127518866.495096604-9739.4950966041
16500875509644.066525176-8769.06652517551
17506971511164.637953747-4193.63795374696
18569323565480.6379537473842.36204625303
19579714574737.780810894976.2191891102
20577992575785.4785567912206.52144320857
21565644562528.1928425063115.80715749427
22547344547535.478556791-191.478556791467
23554788550964.6214139343823.3785860657
24562325554377.1928425067947.80715749434
25560854542076.62470725918777.3752927408
26555332528783.96183401626548.0381659836
27543599522107.81897687321491.1810231265
28536662512885.39040544523776.6095945551
29542722514405.96183401628316.0381659837
30593530568721.96183401624808.0381659837
31610763577979.10469115932783.8953088408
32612613579026.80243706133586.1975629392
33611324565769.51672277545554.4832772248
34594167550776.80243706143390.1975629392
35595454554205.94529420441248.0547057963
36590865557618.51672277533246.4832772250
37589379545317.94858752944061.0514124714
38584428532025.28571428652402.7142857143
39573100525349.14285714347750.8571428572
40567456516126.71428571451329.2857142857
41569028517647.28571428651380.7142857143
42620735571963.28571428648771.7142857142
43628884581220.42857142947663.5714285714
44628232582268.1263173345963.8736826698
45612117569010.84060304443106.1593969555
46595404554018.1263173341385.8736826698
47597141557447.26917447339693.7308255269
48593408560859.84060304432548.1593969556
49590072548559.27246779841512.727532202
50579799535266.60959455544532.3904054449
51574205528590.46673741245614.5332625878
52572775519368.03816598453406.9618340164
53572942520888.60959455552053.3904054449
54619567575204.60959455544362.3904054449
55625809584461.75245169841347.247548302
56619916585509.450197634406.5498024004
57587625572252.16448331415372.8355166861
58565724557259.45019768464.5498024004
59557274560688.593054742-3414.59305474245
60560576564101.164483314-3525.16448331379
61548854551800.596348067-2946.59634806739
62531673538507.933474825-6834.9334748245
63525919531831.790617682-5912.79061768161
64511038522609.362046253-11571.3620462530
65498662524129.933474824-25467.9334748245
66555362578445.933474825-23083.9334748245
67564591587703.076331967-23112.0763319673
68541667588750.774077869-47083.774077869
69527070575493.488363583-48423.4883635833
70509846560500.774077869-50654.774077869
71514258563929.916935012-49671.9169350118
72516922567342.488363583-50420.4883635832
73507561555041.920228337-47480.9202283368
74492622541749.257355094-49127.2573550939
75490243535073.114497951-44830.114497951
76469357525850.685926522-56493.6859265224
77477580527371.257355094-49791.2573550939
78528379581687.257355094-53308.2573550939
79533590590944.400212237-57354.4002122367
80517945537455.213736827-19510.2137368268
81506174524197.928022541-18023.9280225411
82501866509205.213736827-7339.21373682682
83516441512634.356593973806.64340603034
84528222516046.92802254112175.0719774590
85532638503746.35988729528891.6401127054


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.002851033423509960.005702066847019920.99714896657649
180.000702150045668820.001404300091337640.999297849954331
190.0002220292803723210.0004440585607446420.999777970719628
206.63979426628915e-050.0001327958853257830.999933602057337
211.16197437744086e-052.32394875488172e-050.999988380256226
228.4511313592429e-061.69022627184858e-050.99999154886864
232.49800476908221e-064.99600953816442e-060.99999750199523
247.07506729370806e-071.41501345874161e-060.99999929249327
252.68149950694364e-075.36299901388728e-070.99999973185005
268.2455309414264e-081.64910618828528e-070.99999991754469
271.22458850699506e-072.44917701399013e-070.99999987754115
281.23429418026245e-072.46858836052489e-070.999999876570582
297.51472220865512e-081.50294444173102e-070.999999924852778
307.46294995202157e-071.49258999040431e-060.999999253705005
318.3231299303966e-071.66462598607932e-060.999999167687007
324.5283627036236e-079.0567254072472e-070.99999954716373
332.29726090926200e-074.59452181852401e-070.99999977027391
349.41811414063898e-081.88362282812780e-070.999999905818859
354.46741678102294e-088.93483356204589e-080.999999955325832
362.86509496495823e-075.73018992991645e-070.999999713490503
371.25233139116123e-062.50466278232246e-060.99999874766861
381.66595086397308e-063.33190172794617e-060.999998334049136
396.34079227666844e-061.26815845533369e-050.999993659207723
401.18002812142076e-052.36005624284152e-050.999988199718786
413.00110984863519e-056.00221969727038e-050.999969988901514
420.0002185711894408160.0004371423788816330.99978142881056
430.002152775973180770.004305551946361550.99784722402682
440.003901063752290210.007802127504580430.99609893624771
450.01474035228536910.02948070457073820.98525964771463
460.03551219169140670.07102438338281340.964487808308593
470.06825726697718370.1365145339543670.931742733022816
480.1719641550185290.3439283100370580.828035844981471
490.2881557087787250.576311417557450.711844291221275
500.3616928936458310.7233857872916620.638307106354169
510.3872569100740240.7745138201480480.612743089925976
520.3784104279376020.7568208558752030.621589572062398
530.3936458211337250.7872916422674510.606354178866275
540.4259004606225530.8518009212451070.574099539377447
550.4668735760164930.9337471520329870.533126423983507
560.8639543692531640.2720912614936710.136045630746835
570.9802233879736810.03955322405263730.0197766120263187
580.9962977611593330.007404477681333520.00370223884066676
590.997635215684210.00472956863157910.00236478431578955
600.9974800691168050.005039861766389630.00251993088319482
610.9968110717903020.006377856419396190.00318892820969809
620.9959284360568150.00814312788636940.0040715639431847
630.9932098012012820.01358039759743650.00679019879871823
640.9907580933767260.01848381324654870.00924190662327436
650.9840808270646460.03183834587070830.0159191729353542
660.9671970445133150.06560591097336980.0328029554866849
670.9289437084104690.1421125831790610.0710562915895307
680.9099628017006660.1800743965986680.090037198299334


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level330.634615384615385NOK
5% type I error level380.730769230769231NOK
10% type I error level400.769230769230769NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/10ilm91258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/10ilm91258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/15ivq1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/15ivq1258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/2cn3u1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/2cn3u1258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/3tzjj1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/3tzjj1258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/46ov91258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/46ov91258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/5evtz1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/5evtz1258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/6ck851258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/6ck851258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/77zmv1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/77zmv1258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/8a05h1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/8a05h1258754687.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/93k1a1258754687.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587548700032orglez0s8fj/93k1a1258754687.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