Home » date » 2009 » Dec » 19 »

*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: Sat, 19 Dec 2009 04:07:28 -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/Dec/19/t1261220919fy7jhmspm103tqt.htm/, Retrieved Sat, 19 Dec 2009 12:08:51 +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/Dec/19/t1261220919fy7jhmspm103tqt.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 «
97,4 0 97 0 105,4 0 102,7 0 98,1 0 104,5 0 87,4 0 89,9 0 109,8 0 111,7 0 98,6 0 96,9 0 95,1 0 97 0 112,7 0 102,9 0 97,4 0 111,4 0 87,4 0 96,8 0 114,1 0 110,3 0 103,9 0 101,6 0 94,6 0 95,9 0 104,7 0 102,8 0 98,1 0 113,9 0 80,9 0 95,7 0 113,2 0 105,9 0 108,8 0 102,3 0 99 0 100,7 0 115,5 0 100,7 0 109,9 0 114,6 0 85,4 0 100,5 0 114,8 0 116,5 0 112,9 0 102 0 106 0 105,3 0 118,8 0 106,1 0 109,3 0 117,2 0 92,5 0 104,2 0 112,5 0 122,4 0 113,3 0 100 0 110,7 0 112,8 0 109,8 0 117,3 0 109,1 0 115,9 0 96 0 99,8 0 116,8 0 115,7 1 99,4 1 94,3 1 91 1 93,2 1 103,1 1 94,1 1 91,8 1 102,7 1 82,6 1 89,1 1 104,5 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Industriële_Productie[t] = + 104.566666666667 -7.775Dummy_Crisis[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)104.5666666666671.07053197.677400
Dummy_Crisis-7.7752.78132-2.79540.0065040.003252


Multiple Linear Regression - Regression Statistics
Multiple R0.300022170207439
R-squared0.0900133026159816
Adjusted R-squared0.0784944836617535
F-TEST (value)7.81445588941576
F-TEST (DF numerator)1
F-TEST (DF denominator)79
p-value0.00650407935519393
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.89249612548536
Sum Squared Residuals6247.0425


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197.4104.566666666667-7.16666666666667
297104.566666666667-7.56666666666667
3105.4104.5666666666670.83333333333334
4102.7104.566666666667-1.86666666666666
598.1104.566666666667-6.46666666666667
6104.5104.566666666667-0.0666666666666667
787.4104.566666666667-17.1666666666667
889.9104.566666666667-14.6666666666667
9109.8104.5666666666675.23333333333333
10111.7104.5666666666677.13333333333334
1198.6104.566666666667-5.96666666666667
1296.9104.566666666667-7.66666666666666
1395.1104.566666666667-9.46666666666667
1497104.566666666667-7.56666666666667
15112.7104.5666666666678.13333333333334
16102.9104.566666666667-1.66666666666666
1797.4104.566666666667-7.16666666666666
18111.4104.5666666666676.83333333333334
1987.4104.566666666667-17.1666666666667
2096.8104.566666666667-7.76666666666667
21114.1104.5666666666679.53333333333333
22110.3104.5666666666675.73333333333333
23103.9104.566666666667-0.66666666666666
24101.6104.566666666667-2.96666666666667
2594.6104.566666666667-9.96666666666667
2695.9104.566666666667-8.66666666666666
27104.7104.5666666666670.133333333333336
28102.8104.566666666667-1.76666666666667
2998.1104.566666666667-6.46666666666667
30113.9104.5666666666679.33333333333334
3180.9104.566666666667-23.6666666666667
3295.7104.566666666667-8.86666666666666
33113.2104.5666666666678.63333333333334
34105.9104.5666666666671.33333333333334
35108.8104.5666666666674.23333333333333
36102.3104.566666666667-2.26666666666667
3799104.566666666667-5.56666666666667
38100.7104.566666666667-3.86666666666666
39115.5104.56666666666710.9333333333333
40100.7104.566666666667-3.86666666666666
41109.9104.5666666666675.33333333333334
42114.6104.56666666666710.0333333333333
4385.4104.566666666667-19.1666666666667
44100.5104.566666666667-4.06666666666667
45114.8104.56666666666710.2333333333333
46116.5104.56666666666711.9333333333333
47112.9104.5666666666678.33333333333334
48102104.566666666667-2.56666666666667
49106104.5666666666671.43333333333333
50105.3104.5666666666670.73333333333333
51118.8104.56666666666714.2333333333333
52106.1104.5666666666671.53333333333333
53109.3104.5666666666674.73333333333333
54117.2104.56666666666712.6333333333333
5592.5104.566666666667-12.0666666666667
56104.2104.566666666667-0.366666666666664
57112.5104.5666666666677.93333333333333
58122.4104.56666666666717.8333333333333
59113.3104.5666666666678.73333333333333
60100104.566666666667-4.56666666666667
61110.7104.5666666666676.13333333333334
62112.8104.5666666666678.23333333333333
63109.8104.5666666666675.23333333333333
64117.3104.56666666666712.7333333333333
65109.1104.5666666666674.53333333333333
66115.9104.56666666666711.3333333333333
6796104.566666666667-8.56666666666667
6899.8104.566666666667-4.76666666666667
69116.8104.56666666666712.2333333333333
70115.796.791666666666718.9083333333333
7199.496.79166666666672.60833333333334
7294.396.7916666666667-2.49166666666667
739196.7916666666667-5.79166666666666
7493.296.7916666666667-3.59166666666666
75103.196.79166666666676.30833333333333
7694.196.7916666666667-2.69166666666667
7791.896.7916666666667-4.99166666666667
78102.796.79166666666675.90833333333334
7982.696.7916666666667-14.1916666666667
8089.196.7916666666667-7.69166666666667
81104.596.79166666666677.70833333333334


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1219690516927570.2439381033855130.878030948307243
60.07078792663701830.1415758532740370.929212073362982
70.2740930735275890.5481861470551790.72590692647241
80.3001252233733510.6002504467467020.699874776626649
90.3878138452487250.7756276904974490.612186154751275
100.474584640886820.949169281773640.52541535911318
110.3778973942895100.7557947885790190.62210260571049
120.3037478983886170.6074957967772350.696252101611383
130.2566137205901920.5132274411803830.743386279409808
140.1983895167477330.3967790334954650.801610483252267
150.2870503848276680.5741007696553370.712949615172332
160.2220675493595880.4441350987191760.777932450640412
170.1764325789953130.3528651579906260.823567421004687
180.2074706301343990.4149412602687980.792529369865601
190.3320620237549630.6641240475099250.667937976245037
200.2875198987044390.5750397974088790.71248010129556
210.3761880863353720.7523761726707440.623811913664628
220.373847049912610.747694099825220.62615295008739
230.3114087927633440.6228175855266890.688591207236656
240.2533195459990190.5066390919980380.746680454000981
250.248565482302520.497130964605040.75143451769748
260.2304737174007120.4609474348014240.769526282599288
270.1880811204774640.3761622409549270.811918879522536
280.1481295440998830.2962590881997670.851870455900117
290.1250379321841270.2500758643682530.874962067815873
300.1600666026087860.3201332052175720.839933397391214
310.5150019792921280.9699960414157430.484998020707872
320.5163422865457480.9673154269085040.483657713454252
330.5478587462865120.9042825074269770.452141253713488
340.4966313901158720.9932627802317430.503368609884128
350.4622778078113080.9245556156226160.537722192188692
360.4105645109868240.8211290219736480.589435489013176
370.3825808889119820.7651617778239650.617419111088018
380.3446015661500310.6892031323000620.655398433849969
390.3975453613992290.7950907227984580.602454638600771
400.360713855742610.721427711485220.63928614425739
410.3315024041942280.6630048083884570.668497595805772
420.3546942095101820.7093884190203650.645305790489818
430.6617320095611540.6765359808776920.338267990438846
440.642324937389620.7153501252207610.357675062610381
450.6571797012427080.6856405975145840.342820298757292
460.6927368816464780.6145262367070440.307263118353522
470.6756286402939670.6487427194120670.324371359706033
480.6414854779295790.7170290441408420.358514522070421
490.5879429373394260.8241141253211480.412057062660574
500.5347729340075890.9304541319848210.465227065992411
510.6009456831689930.7981086336620150.399054316831007
520.5429912648377280.9140174703245450.457008735162273
530.4864612302934540.9729224605869070.513538769706546
540.5140091389866620.9719817220266770.485990861013338
550.6591306889341180.6817386221317640.340869311065882
560.6166681275468610.7666637449062790.383331872453139
570.5713615937160990.8572768125678030.428638406283901
580.6940623805041920.6118752389916150.305937619495808
590.6577164289905010.6845671420189980.342283571009499
600.6525783195364170.6948433609271670.347421680463583
610.5892525387723250.821494922455350.410747461227675
620.5366188011894110.9267623976211780.463381198810589
630.4637995781284970.9275991562569950.536200421871503
640.479664190867130.959328381734260.52033580913287
650.4037460479488370.8074920958976740.596253952051163
660.4263839329620040.8527678659240080.573616067037996
670.4385298706680100.8770597413360190.56147012933199
680.487205743375210.974411486750420.51279425662479
690.4156070177815480.8312140355630960.584392982218452
700.7636098889424520.4727802221150970.236390111057548
710.7118325436710760.5763349126578480.288167456328924
720.6175023462773870.7649953074452250.382497653722613
730.530114564593770.939770870812460.46988543540623
740.4086341837315180.8172683674630370.591365816268482
750.3721643311027330.7443286622054660.627835668897267
760.2337443270849030.4674886541698060.766255672915097


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/2009/Dec/19/t1261220919fy7jhmspm103tqt/10y0c81261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/10y0c81261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/11lqh1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/11lqh1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/2pt7z1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/2pt7z1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/3ffyu1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/3ffyu1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/4augt1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/4augt1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/51dq11261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/51dq11261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/6xl1k1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/6xl1k1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/7x6mq1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/7x6mq1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/8h69x1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/8h69x1261220843.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/9mmaa1261220843.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261220919fy7jhmspm103tqt/9mmaa1261220843.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