Home » date » 2009 » Nov » 21 »

WS 7 Multiple Regression analysis

*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, 21 Nov 2009 02:48:52 -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/21/t1258797014adh4355gjyb7fhc.htm/, Retrieved Sat, 21 Nov 2009 10:50:26 +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/21/t1258797014adh4355gjyb7fhc.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:
WS 7 Multiple Regression analysis
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13,7 15 14,4 15,3 14,3 14,5 14,2 15,5 13,7 14,4 15,3 14,3 13,5 15,1 14,2 13,7 14,4 15,3 11,9 11,7 13,5 14,2 13,7 14,4 14,6 16,3 11,9 13,5 14,2 13,7 15,6 16,7 14,6 11,9 13,5 14,2 14,1 15 15,6 14,6 11,9 13,5 14,9 14,9 14,1 15,6 14,6 11,9 14,2 14,6 14,9 14,1 15,6 14,6 14,6 15,3 14,2 14,9 14,1 15,6 17,2 17,9 14,6 14,2 14,9 14,1 15,4 16,4 17,2 14,6 14,2 14,9 14,3 15,4 15,4 17,2 14,6 14,2 17,5 17,9 14,3 15,4 17,2 14,6 14,5 15,9 17,5 14,3 15,4 17,2 14,4 13,9 14,5 17,5 14,3 15,4 16,6 17,8 14,4 14,5 17,5 14,3 16,7 17,9 16,6 14,4 14,5 17,5 16,6 17,4 16,7 16,6 14,4 14,5 16,9 16,7 16,6 16,7 16,6 14,4 15,7 16 16,9 16,6 16,7 16,6 16,4 16,6 15,7 16,9 16,6 16,7 18,4 19,1 16,4 15,7 16,9 16,6 16,9 17,8 18,4 16,4 15,7 16,9 16,5 17,2 16,9 18,4 16,4 15,7 18,3 18,6 16,5 16,9 18,4 16,4 15,1 16,3 18,3 16,5 16,9 18,4 15,7 15,1 15,1 18,3 16,5 16,9 18,1 19,2 15,7 15,1 18,3 16,5 16,8 17,7 18,1 15,7 15,1 18,3 18,9 19,1 16,8 18,1 15,7 15,1 19 18 18,9 16,8 18,1 15,7 18,1 17,5 19 18,9 16,8 18,1 17,8 17,8 18, 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = -2.89999021216690 + 0.873627997570757X[t] + 0.0245492114319014Y1[t] + 0.145315150831421Y2[t] + 0.110701724083021Y3[t] -0.0225391490188104Y4[t] -0.361337024228986M1[t] -0.0556593556308913M2[t] -0.472649033262836M3[t] + 0.625633258667187M4[t] -0.223770882850354M5[t] + 0.365365125566834M6[t] + 0.360498507612941M7[t] + 0.676362526335275M8[t] + 0.420586202713588M9[t] + 0.0485506948041424M10[t] + 0.465680688403872M11[t] + 0.00673586861246828t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-2.899990212166900.61411-4.72231.6e-058e-06
X0.8736279975707570.04850618.010700
Y10.02454921143190140.052890.46420.6443380.322169
Y20.1453151508314210.0488012.97770.0042860.002143
Y30.1107017240830210.0504772.19310.0324690.016235
Y4-0.02253914901881040.057631-0.39110.6972120.348606
M1-0.3613370242289860.260616-1.38650.1710970.085549
M2-0.05565935563089130.27146-0.2050.8382860.419143
M3-0.4726490332628360.256836-1.84030.0710290.035514
M40.6256332586671870.2897132.15950.035110.017555
M5-0.2237708828503540.316335-0.70740.4822610.24113
M60.3653651255668340.296281.23320.2226610.111331
M70.3604985076129410.2436581.47950.1446030.072302
M80.6763625263352750.2840272.38130.0206740.010337
M90.4205862027135880.2685351.56620.122930.061465
M100.04855069480414240.2663580.18230.8560250.428012
M110.4656806884038720.2924021.59260.1168780.058439
t0.006735868612468280.0047651.41370.162990.081495


Multiple Linear Regression - Regression Statistics
Multiple R0.992141366913702
R-squared0.98434449194139
Adjusted R-squared0.979591926995026
F-TEST (value)207.118577662895
F-TEST (DF numerator)17
F-TEST (DF denominator)56
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.385429189322686
Sum Squared Residuals8.31911695898883


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
113.713.68287604173250.0171239582674963
214.214.3993450478646-0.199345047864642
313.513.42802333925730.0719766607427173
411.911.56097346273140.339026537268607
514.614.6671229011334-0.0671229011334472
615.615.35746382535970.242536174640255
714.114.1297202446051-0.0297202446051058
814.914.80840595932070.0915940406793455
914.214.14878976967080.0512102303291676
1014.614.30550566619280.294494333807151
1117.217.03127350387440.168726496125587
1215.415.28831817170920.111681828290779
1314.314.4537779240526-0.153777924052595
1417.516.94049887412670.559501125873268
1514.514.44383498983490.0561650101650815
1614.414.11175657534330.288243424656726
1716.616.6168757003131-0.0168757003130596
1816.716.9353566780576-0.235356678057576
1916.616.8791074575512-0.279107457551217
2016.916.84804204841100.0519579515890279
2115.715.9417792880156-0.241779288015571
2216.416.1014678514820.298532148517988
2318.418.5876744067525-0.187674406752515
2416.917.0042284049597-0.104228404959656
2516.516.48379512099640.0162048790036415
2618.317.99712148783900.302878512161034
2715.115.3524549204894-0.252454920489449
2815.715.58165731275650.118342687243487
2918.118.07886363704710.0211363629529026
3016.817.1155847303565-0.315584730356508
3118.918.79592187605810.104078123941907
321918.27233526237920.72766473762083
3318.117.69609134752070.403908652479327
3417.817.8470918465882-0.0470918465881536
3521.520.97951966107480.520480338925197
3617.117.05877772122950.0412222787705488
3718.719.0428824049365-0.342882404936517
381919.520997339621-0.520997339620994
3916.416.8581485033708-0.458148503370805
4016.916.9961490770563-0.0961490770563166
4118.618.6680562884838-0.068056288483806
4219.319.4331843720702-0.133184372070209
4319.419.9005892763920-0.50058927639203
4417.618.1454924534427-0.5454924534427
4518.619.3037743825785-0.703774382578548
4618.118.4346610520408-0.334661052040824
4720.421.2362088343153-0.836208834315295
4818.118.4661834245203-0.366183424520313
4919.619.35980751554730.240192484452722
5019.920.5143315604645-0.614331560464538
5119.218.97460763590260.225392364097358
5217.818.6640353271756-0.864035327175582
5319.219.5192981412791-0.319298141279137
542221.95855194575550.0414480542444776
5521.120.78295319382820.317046806171787
5619.519.23072004234670.269279957653273
5722.221.71091122481660.489088775183414
5820.921.2787374453993-0.378737445399308
5922.222.08092831509310.119071684906883
6023.523.19774986364980.302250136350196
6121.521.37403683944660.125963160553397
6224.324.27090757859060.0290924214094412
6322.822.44293061114490.357069388855098
6420.320.08542824493690.214571755063078
6523.723.24978333174350.450216668256547
6623.322.89985844840040.400141551599560
6719.619.21170795156530.388292048434659
681818.5950042340998-0.595004234099776
6917.317.29865398739780.00134601260221030
7016.816.63253613829690.167463861703146
7118.217.98439527888990.215604721110143
7216.516.48474241393160.0152575860684450
731615.90282415328810.0971758467118542
7418.417.95679811149360.44320188850643


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.06419711590493760.1283942318098750.935802884095062
220.04085153648639140.08170307297278280.959148463513609
230.01572856502223860.03145713004447720.984271434977761
240.00501951951934980.01003903903869960.99498048048065
250.001447172784733160.002894345569466310.998552827215267
260.000576060342238970.001152120684477940.99942393965776
270.0001694149788093410.0003388299576186820.99983058502119
280.0001027829982688910.0002055659965377820.99989721700173
293.32736923598257e-056.65473847196515e-050.99996672630764
301.10792150882343e-052.21584301764686e-050.999988920784912
313.28694967846295e-066.5738993569259e-060.999996713050322
322.22459011017784e-054.44918022035568e-050.999977754098898
330.0001529911735493700.0003059823470987410.99984700882645
347.3674708443508e-050.0001473494168870160.999926325291556
350.01094426718756130.02188853437512260.989055732812439
360.02981430172757020.05962860345514030.97018569827243
370.02060381281629470.04120762563258930.979396187183705
380.08129365073261050.1625873014652210.91870634926739
390.0575723034407490.1151446068814980.942427696559251
400.1081167883952170.2162335767904340.891883211604783
410.1132633667313810.2265267334627630.886736633268619
420.07624662625046440.1524932525009290.923753373749536
430.0815990918403010.1631981836806020.9184009081597
440.0650643377278020.1301286754556040.934935662272198
450.1145110837561970.2290221675123930.885488916243803
460.1103438093249460.2206876186498920.889656190675054
470.2515579766368250.503115953273650.748442023363175
480.2253758559349510.4507517118699020.77462414406505
490.4555392552144780.9110785104289570.544460744785522
500.539007908026380.9219841839472390.460992091973620
510.4575037238047770.9150074476095540.542496276195223
520.413832347299440.827664694598880.58616765270056
530.2677727669801620.5355455339603240.732227233019838


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.303030303030303NOK
5% type I error level140.424242424242424NOK
10% type I error level160.484848484848485NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/10bm851258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/10bm851258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/16oab1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/16oab1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/2n4v21258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/2n4v21258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/3bblo1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/3bblo1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/49c9s1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/49c9s1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/5vzdu1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/5vzdu1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/6sysq1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/6sysq1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/7lmxo1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/7lmxo1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/8nu3f1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/8nu3f1258796927.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/9grks1258796927.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258797014adh4355gjyb7fhc/9grks1258796927.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