Home » date » 2009 » Nov » 20 »

WS 7.1

*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 13:55:39 -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/t12587508432vtnhk81musgpax.htm/, Retrieved Fri, 20 Nov 2009 22:00:55 +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/t12587508432vtnhk81musgpax.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] = + 549627.29113924 -32412.9578059071Crisis[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)549627.291139244944.478592111.159800
Crisis-32412.957805907118610.34133-1.74170.0852720.042636


Multiple Linear Regression - Regression Statistics
Multiple R0.18777198628528
R-squared0.0352583188335194
Adjusted R-squared0.0236349250845257
F-TEST (value)3.03339279344054
F-TEST (DF numerator)1
F-TEST (DF denominator)83
p-value0.0852721030934667
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation43947.4870174879
Sum Squared Residuals160304674057.638


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1474605549627.291139245-75022.2911392455
2470390549627.29113924-79237.2911392404
3461251549627.29113924-88376.2911392404
4454724549627.29113924-94903.2911392404
5455626549627.29113924-94001.2911392404
6516847549627.29113924-32780.2911392404
7525192549627.29113924-24435.2911392404
8522975549627.29113924-26652.2911392404
9518585549627.29113924-31042.2911392404
10509239549627.29113924-40388.2911392404
11512238549627.29113924-37389.2911392404
12519164549627.29113924-30463.2911392404
13517009549627.29113924-32618.2911392404
14509933549627.29113924-39694.2911392404
15509127549627.29113924-40500.2911392404
16500875549627.29113924-48752.2911392404
17506971549627.29113924-42656.2911392404
18569323549627.2911392419695.7088607596
19579714549627.2911392430086.7088607596
20577992549627.2911392428364.7088607596
21565644549627.2911392416016.7088607596
22547344549627.29113924-2283.29113924044
23554788549627.291139245160.70886075956
24562325549627.2911392412697.7088607596
25560854549627.2911392411226.7088607596
26555332549627.291139245704.70886075956
27543599549627.29113924-6028.29113924044
28536662549627.29113924-12965.2911392404
29542722549627.29113924-6905.29113924044
30593530549627.2911392443902.7088607596
31610763549627.2911392461135.7088607595
32612613549627.2911392462985.7088607595
33611324549627.2911392461696.7088607595
34594167549627.2911392444539.7088607596
35595454549627.2911392445826.7088607596
36590865549627.2911392441237.7088607596
37589379549627.2911392439751.7088607596
38584428549627.2911392434800.7088607596
39573100549627.2911392423472.7088607596
40567456549627.2911392417828.7088607596
41569028549627.2911392419400.7088607596
42620735549627.2911392471107.7088607596
43628884549627.2911392479256.7088607596
44628232549627.2911392478604.7088607596
45612117549627.2911392462489.7088607595
46595404549627.2911392445776.7088607596
47597141549627.2911392447513.7088607596
48593408549627.2911392443780.7088607596
49590072549627.2911392440444.7088607596
50579799549627.2911392430171.7088607596
51574205549627.2911392424577.7088607596
52572775549627.2911392423147.7088607596
53572942549627.2911392423314.7088607596
54619567549627.2911392469939.7088607596
55625809549627.2911392476181.7088607596
56619916549627.2911392470288.7088607596
57587625549627.2911392437997.7088607596
58565724549627.2911392416096.7088607596
59557274549627.291139247646.70886075956
60560576549627.2911392410948.7088607596
61548854549627.29113924-773.291139240441
62531673549627.29113924-17954.2911392404
63525919549627.29113924-23708.2911392404
64511038549627.29113924-38589.2911392404
65498662549627.29113924-50965.2911392404
66555362549627.291139245734.70886075956
67564591549627.2911392414963.7088607596
68541667549627.29113924-7960.29113924044
69527070549627.29113924-22557.2911392404
70509846549627.29113924-39781.2911392404
71514258549627.29113924-35369.2911392404
72516922549627.29113924-32705.2911392404
73507561549627.29113924-42066.2911392404
74492622549627.29113924-57005.2911392404
75490243549627.29113924-59384.2911392404
76469357549627.29113924-80270.2911392404
77477580549627.29113924-72047.2911392404
78528379549627.29113924-21248.2911392404
79533590549627.29113924-16037.2911392404
80517945517214.333333333730.666666666674
81506174517214.333333333-11040.3333333333
82501866517214.333333333-15348.3333333333
83516441517214.333333333-773.333333333326
84528222517214.33333333311007.6666666667
85532638517214.33333333315423.6666666667


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.02325514410965750.0465102882193150.976744855890342
60.2193780167826120.4387560335652240.780621983217388
70.3444404851938530.6888809703877060.655559514806147
80.3668845299526540.7337690599053070.633115470047346
90.3359849383348410.6719698766696820.664015061665159
100.2713399478755060.5426798957510120.728660052124494
110.2199195079322980.4398390158645960.780080492067702
120.1875358183929790.3750716367859580.812464181607021
130.1526441300389220.3052882600778440.847355869961078
140.1159421444581360.2318842889162720.884057855541864
150.0868785194628090.1737570389256180.913121480537191
160.06454550712070460.1290910142414090.935454492879295
170.04795770785864550.09591541571729110.952042292141354
180.1471424330005960.2942848660011920.852857566999404
190.3149509564752330.6299019129504660.685049043524767
200.4459898608070010.8919797216140010.554010139192999
210.4841638328002660.9683276656005320.515836167199734
220.4540368028120980.9080736056241970.545963197187902
230.4372370540064610.8744741080129210.562762945993539
240.4350924008827920.8701848017655850.564907599117208
250.421805007711890.843610015423780.57819499228811
260.391586741235030.783173482470060.60841325876497
270.3445302618585190.6890605237170370.655469738141481
280.296540796724070.593081593448140.70345920327593
290.2543645259424290.5087290518848580.745635474057571
300.3276717404155830.6553434808311650.672328259584417
310.4709303110815360.9418606221630720.529069688918464
320.5997641707653650.800471658469270.400235829234635
330.694842890957470.610314218085060.30515710904253
340.7139389608441890.5721220783116220.286061039155811
350.7310991972241080.5378016055517840.268900802775892
360.7326256124755130.5347487750489740.267374387524487
370.7281461730613680.5437076538772640.271853826938632
380.7112511680328950.5774976639342090.288748831967104
390.6733038193694360.6533923612611270.326696180630564
400.6256895048274630.7486209903450750.374310495172537
410.577482325517460.845035348965080.42251767448254
420.6701924120644620.6596151758710750.329807587935538
430.78161425625090.4367714874981990.218385743749099
440.866932291884990.2661354162300180.133067708115009
450.8985103758987380.2029792482025240.101489624101262
460.9018208603944360.1963582792111280.0981791396055638
470.9086297684580960.1827404630838070.0913702315419036
480.9117993440524370.1764013118951260.0882006559475628
490.9123291357513920.1753417284972150.0876708642486077
500.9025734508482860.1948530983034280.097426549151714
510.8871069111850420.2257861776299150.112893088814958
520.869389121450570.2612217570988590.130610878549430
530.8512689411587770.2974621176824470.148731058841223
540.9282231311919250.1435537376161500.0717768688080751
550.9830349093514140.03393018129717240.0169650906485862
560.9980886706178230.003822658764354860.00191132938217743
570.9993668605544050.001266278891189250.000633139445594627
580.9995179251654960.0009641496690082440.000482074834504122
590.9995381245281060.0009237509437888060.000461875471894403
600.9996702412762680.0006595174474647390.000329758723732369
610.9996492722606840.0007014554786328990.000350727739316449
620.9994112841940830.001177431611834530.000588715805917266
630.9989534372660380.002093125467923770.00104656273396188
640.9981664509203460.003667098159308420.00183354907965421
650.9974415514860530.005116897027893770.00255844851394688
660.9981505602101960.003698879579607660.00184943978980383
670.9996011450185370.0007977099629251910.000398854981462596
680.9997259248910080.0005481502179833370.000274075108991669
690.9996263363227060.0007473273545870120.000373663677293506
700.999177518090550.001644963818902190.000822481909451097
710.9983672263552460.003265547289508010.00163277364475401
720.9971361215150380.005727756969923190.00286387848496159
730.9941030783402220.01179384331955630.00589692165977813
740.9882960540168610.02340789196627750.0117039459831387
750.9784810577122860.04303788457542770.0215189422877139
760.9884352600214960.02312947995700760.0115647399785038
770.9991932767768160.001613446446368300.000806723223184148
780.9966360831490360.006727833701928490.00336391685096424
790.9863661727417150.02726765451656960.0136338272582848
800.9499912143261240.1000175713477530.0500087856738765


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level190.25NOK
5% type I error level260.342105263157895NOK
10% type I error level270.355263157894737NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/10jj1p1258750534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/10jj1p1258750534.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/1jcr21258750534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/1jcr21258750534.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/4oysb1258750534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/4oysb1258750534.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/6959i1258750534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/6959i1258750534.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/87j1s1258750534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/87j1s1258750534.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/9lbcy1258750534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t12587508432vtnhk81musgpax/9lbcy1258750534.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by