Home » date » 2009 » Nov » 25 »

WS 7

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 24 Nov 2009 16:14:58 -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/25/t1259104578nzi0ai2ucvf64lx.htm/, Retrieved Wed, 25 Nov 2009 00:16:31 +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/25/t1259104578nzi0ai2ucvf64lx.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:
WS 7
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13.7 15 15.3 14.3 14.2 15.5 14.4 15.3 13.5 15.1 13.7 14.4 11.9 11.7 14.2 13.7 14.6 16.3 13.5 14.2 15.6 16.7 11.9 13.5 14.1 15 14.6 11.9 14.9 14.9 15.6 14.6 14.2 14.6 14.1 15.6 14.6 15.3 14.9 14.1 17.2 17.9 14.2 14.9 15.4 16.4 14.6 14.2 14.3 15.4 17.2 14.6 17.5 17.9 15.4 17.2 14.5 15.9 14.3 15.4 14.4 13.9 17.5 14.3 16.6 17.8 14.5 17.5 16.7 17.9 14.4 14.5 16.6 17.4 16.6 14.4 16.9 16.7 16.7 16.6 15.7 16 16.6 16.7 16.4 16.6 16.9 16.6 18.4 19.1 15.7 16.9 16.9 17.8 16.4 15.7 16.5 17.2 18.4 16.4 18.3 18.6 16.9 18.4 15.1 16.3 16.5 16.9 15.7 15.1 18.3 16.5 18.1 19.2 15.1 18.3 16.8 17.7 15.7 15.1 18.9 19.1 18.1 15.7 19 18 16.8 18.1 18.1 17.5 18.9 16.8 17.8 17.8 19 18.9 21.5 21.1 18.1 19 17.1 17.2 17.8 18.1 18.7 19.4 21.5 17.8 19 19.8 17.1 21.5 16.4 17.6 18.7 17.1 16.9 16.2 19 18.7 18.6 19.5 16.4 19 19.3 19.9 16.9 16.4 19.4 20 18.6 16.9 17.6 17.3 19.3 18.6 18.6 18.9 19.4 19.3 18.1 18.6 17.6 19.4 20.4 21.4 18.6 17.6 18.1 18.6 18.1 18.6 19.6 19.8 20.4 18.1 19.9 20.8 18.1 20 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.98974717065154 + 0.887683960481875X[t] + 0.144018071360225Y2[t] + 0.109167909345324Y3[t] -0.402453762506518M1[t] -0.116179718351996M2[t] -0.52698664707924M3[t] + 0.594705637013487M4[t] -0.321163975730627M5[t] + 0.284771208347894M6[t] + 0.354028397539171M7[t] + 0.695979012366943M8[t] + 0.367144520312719M9[t] -0.0207176829835056M10[t] + 0.375399406309265M11[t] + 0.00595760122729083t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-2.989747170651540.522119-5.726200
X0.8876839604818750.0388822.831300
Y20.1440180713602250.0421873.41380.0011740.000587
Y30.1091679093453240.0452622.41190.0190550.009527
M1-0.4024537625065180.231647-1.73740.0876320.043816
M2-0.1161797183519960.221844-0.52370.6024830.301242
M3-0.526986647079240.222852-2.36470.021410.010705
M40.5947056370134870.2670522.22690.0298490.014924
M5-0.3211639757306270.233584-1.37490.1744380.087219
M60.2847712083478940.2327491.22350.2260830.113041
M70.3540283975391710.2383181.48550.1428190.071409
M80.6959790123669430.2454122.8360.0062810.003141
M90.3671445203127190.236671.55130.1262710.063136
M10-0.02071768298350560.22416-0.09240.926680.46334
M110.3753994063092650.2260671.66060.1021970.051099
t0.005957601227290830.0041711.42840.1585490.079275


Multiple Linear Regression - Regression Statistics
Multiple R0.992105899409369
R-squared0.984274115642872
Adjusted R-squared0.980207076584995
F-TEST (value)242.012457130536
F-TEST (DF numerator)15
F-TEST (DF denominator)58
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.379575850739525
Sum Squared Residuals8.3565139349488


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
113.713.69359367074690.00640632925307883
214.214.4092189414908-0.209218941490816
313.513.45023226143520.0497677385648431
411.911.55534818025520.344651819744814
514.614.6825536916755-0.0825536916754956
615.615.34267361045600.257326389544032
714.114.1230058057754-0.0230058057754395
814.914.82091705237490.0790829476250858
914.214.12487577570840.075124224291595
1014.614.31581253904700.284187460953021
1117.217.0123872043440.187612795655985
1215.415.29260915054160.107390849458411
1314.314.4265431780552-0.126543178055204
1417.516.96258876049110.537411239508858
1514.514.42744939670960.0725506032903916
1614.414.12050448913870.27949551086126
1716.616.58984301932560.0101569806744103
1816.716.9485986655076-0.248598665507595
1916.616.8858944417432-0.285894441743187
2016.916.86699509315670.0330049068433241
2115.715.9192544137909-0.219254413790940
2216.416.10224881848470.297751181515332
2318.418.5834620973807-0.183462097380744
2416.917.0298423024101-0.129842302410100
2516.516.46518944410390.034810555896078
2618.318.00248734581070.297512654189328
2715.115.3346058166403-0.23460581664033
2815.715.61260031409240.0873996859076265
2918.118.07783694902010.0221630509799018
3016.817.0952773265142-0.295277326514196
3118.918.82439377847910.0756062215208716
321918.27062912766460.729370872335388
3318.117.66442992430430.435570075695710
3417.817.79248492714110.00751507285887725
3521.521.00521721396170.494782786038296
3617.117.03235142318160.067648576818446
3718.719.0888764661917-0.388876466191689
381919.5064234463590-0.506423446358962
3916.416.8987595188558-0.498759518855819
4016.917.0015259358618-0.101525935861796
4118.618.6792743812022-0.0792743812021703
4219.319.434413222083-0.134413222083002
4319.419.8978110845348-0.497811084534806
4417.618.135370703128-0.535370703128013
4518.619.3236074927498-0.723607492749826
4618.118.4270819650225-0.327081965022460
4720.421.2621875794304-0.862187579430414
4818.118.4443895586644-0.344389558664401
4919.619.38977175941930.210228240580721
5019.920.4895319926487-0.589531992648697
5119.218.98440282811660.215597171883414
5217.818.6324104739471-0.832410473947091
5319.219.5185725022936-0.318572502293647
542221.98286395630990.0171360436900842
5521.120.77534303282650.324656967173468
5619.519.19382183242440.306178167575571
5722.221.71005070498580.489949295014173
5820.921.2657712584743-0.365771258474305
5922.222.05956287881080.140437121189171
6023.523.21794527296390.282054727036063
6121.521.35769158948490.142308410515105
6224.324.28704330703680.0129566929632053
6322.822.40455017824250.395449821757501
6420.320.07761060670480.222389393295187
6523.723.2519194564830.448080543517001
6623.322.89617321912930.403826780870677
6719.619.19355185664090.406448143359093
681818.6122661912514-0.612266191251356
6917.317.3577816884607-0.0577816884607114
7016.816.69660049183050.103399508169533
7118.217.97718302607230.222816973927707
7216.516.48286229223840.0171377077615822
731615.87833389199810.121666108001909
7418.417.94270620616290.457293793837084


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1408925919588670.2817851839177350.859107408041133
200.08169275645880420.1633855129176080.918307243541196
210.03215896087814970.06431792175629950.96784103912185
220.02702944250650190.05405888501300370.972970557493498
230.01565144287761320.03130288575522630.984348557122387
240.006711615049756730.01342323009951350.993288384950243
250.002664219601122990.005328439202245990.997335780398877
260.001317809148721470.002635618297442940.998682190851279
270.0005144792660981160.001028958532196230.999485520733902
280.0003138507864624280.0006277015729248560.999686149213538
290.0001827483982988250.0003654967965976510.999817251601701
306.48234554235487e-050.0001296469108470970.999935176544577
312.89211500530379e-055.78423001060759e-050.999971078849947
328.78169117727839e-050.0001756338235455680.999912183088227
330.0006847597968104310.001369519593620860.99931524020319
340.0005646594308880750.001129318861776150.999435340569112
350.008392229099605890.01678445819921180.991607770900394
360.02676746603544950.05353493207089890.97323253396455
370.0237552078538850.047510415707770.976244792146115
380.09398260319317150.1879652063863430.906017396806828
390.0820942452065790.1641884904131580.91790575479342
400.1468317254420350.293663450884070.853168274557965
410.1626073002822500.3252146005645010.83739269971775
420.1176015415146010.2352030830292020.8823984584854
430.124205456257030.248410912514060.87579454374297
440.1125542353499540.2251084706999090.887445764650046
450.2654657929153710.5309315858307420.734534207084629
460.2877466173916250.575493234783250.712253382608375
470.4895867682153120.9791735364306240.510413231784688
480.4144665471972680.8289330943945350.585533452802733
490.5952813757254230.8094372485491540.404718624274577
500.6449076239203630.7101847521592730.355092376079637
510.6015653743807670.7968692512384660.398434625619233
520.5745031316031960.8509937367936090.425496868396804
530.4434403782401940.8868807564803880.556559621759806
540.3590947349065360.7181894698130730.640905265093464
550.3928012833810740.7856025667621480.607198716618926


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.270270270270270NOK
5% type I error level140.378378378378378NOK
10% type I error level170.459459459459459NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/10oh4c1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/10oh4c1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/1dg6e1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/1dg6e1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/2wtul1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/2wtul1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/36wom1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/36wom1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/4wtjp1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/4wtjp1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/5iqlz1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/5iqlz1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/6asmr1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/6asmr1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/743gk1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/743gk1259104493.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/8jolq1259104493.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259104578nzi0ai2ucvf64lx/8jolq1259104493.ps (open in new window)


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