Home » date » 2010 » Nov » 30 »

*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, 30 Nov 2010 09:39:53 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7.htm/, Retrieved Tue, 30 Nov 2010 10:38: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/2010/Nov/30/t1291109922onyg43xiplfgiq7.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
31.514 0 27.071 0 29.462 0 26.105 0 22.397 0 23.843 0 21.705 0 18.089 0 20.764 0 25.316 0 17.704 0 15.548 0 28.029 0 29.383 0 36.438 0 32.034 0 22.679 0 24.319 0 18.004 0 17.537 0 20.366 0 22.782 0 19.169 0 13.807 0 29.743 0 25.591 0 29.096 0 26.482 0 22.405 0 27.044 0 17.970 0 18.730 0 19.684 0 19.785 0 18.479 0 10.698 0 31.956 0 29.506 0 34.506 0 27.165 0 26.736 0 23.691 0 18.157 0 17.328 0 18.205 0 20.995 0 17.382 0 9.367 0 31.124 0 26.551 0 30.651 0 25.859 0 25.100 0 25.778 0 20.418 0 18.688 0 20.424 0 24.776 0 19.814 0 12.738 0 31.566 0 30.111 0 30.019 0 31.934 0 25.826 0 26.835 0 20.205 0 17.789 0 20.520 1 22.518 1 15.572 1 11.509 1 25.447 1 24.090 1 27.786 1 26.195 1 20.516 1 22.759 1 19.028 1 16.971 1 20.036 1 22.485 1 18.730 1 14.538 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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 23.5437058823530 -2.99995588235294X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)23.54370588235300.68114734.564800
X-2.999955882352941.560704-1.92220.0580560.029028


Multiple Linear Regression - Regression Statistics
Multiple R0.207642873485771
R-squared0.0431155629094279
Adjusted R-squared0.0314462405058843
F-TEST (value)3.69477861853703
F-TEST (DF numerator)1
F-TEST (DF denominator)82
p-value0.0580559022521918
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.61688408882437
Sum Squared Residuals2587.04972311765


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
131.51423.54370588235287.97029411764718
227.07123.54370588235293.52729411764706
329.46223.54370588235295.91829411764706
426.10523.54370588235292.56129411764706
522.39723.5437058823529-1.14670588235294
623.84323.54370588235290.299294117647057
721.70523.5437058823529-1.83870588235294
818.08923.5437058823529-5.45470588235294
920.76423.5437058823529-2.77970588235294
1025.31623.54370588235291.77229411764706
1117.70423.5437058823529-5.83970588235294
1215.54823.5437058823529-7.99570588235294
1328.02923.54370588235294.48529411764706
1429.38323.54370588235295.83929411764706
1536.43823.543705882352912.8942941176471
1632.03423.54370588235298.49029411764706
1722.67923.5437058823529-0.864705882352944
1824.31923.54370588235290.775294117647056
1918.00423.5437058823529-5.53970588235294
2017.53723.5437058823529-6.00670588235294
2120.36623.5437058823529-3.17770588235294
2222.78223.5437058823529-0.761705882352943
2319.16923.5437058823529-4.37470588235294
2413.80723.5437058823529-9.73670588235294
2529.74323.54370588235296.19929411764706
2625.59123.54370588235292.04729411764706
2729.09623.54370588235295.55229411764706
2826.48223.54370588235292.93829411764706
2922.40523.5437058823529-1.13870588235294
3027.04423.54370588235293.50029411764706
3117.9723.5437058823529-5.57370588235294
3218.7323.5437058823529-4.81370588235294
3319.68423.5437058823529-3.85970588235294
3419.78523.5437058823529-3.75870588235294
3518.47923.5437058823529-5.06470588235294
3610.69823.5437058823529-12.8457058823529
3731.95623.54370588235298.41229411764706
3829.50623.54370588235295.96229411764706
3934.50623.543705882352910.9622941176471
4027.16523.54370588235293.62129411764706
4126.73623.54370588235293.19229411764706
4223.69123.54370588235290.147294117647056
4318.15723.5437058823529-5.38670588235294
4417.32823.5437058823529-6.21570588235294
4518.20523.5437058823529-5.33870588235294
4620.99523.5437058823529-2.54870588235294
4717.38223.5437058823529-6.16170588235294
489.36723.5437058823529-14.1767058823529
4931.12423.54370588235297.58029411764706
5026.55123.54370588235293.00729411764706
5130.65123.54370588235297.10729411764706
5225.85923.54370588235292.31529411764706
5325.123.54370588235291.55629411764706
5425.77823.54370588235292.23429411764706
5520.41823.5437058823529-3.12570588235294
5618.68823.5437058823529-4.85570588235294
5720.42423.5437058823529-3.11970588235294
5824.77623.54370588235291.23229411764706
5919.81423.5437058823529-3.72970588235294
6012.73823.5437058823529-10.8057058823529
6131.56623.54370588235298.02229411764706
6230.11123.54370588235296.56729411764706
6330.01923.54370588235296.47529411764706
6431.93423.54370588235298.39029411764706
6525.82623.54370588235292.28229411764706
6626.83523.54370588235293.29129411764706
6720.20523.5437058823529-3.33870588235294
6817.78923.5437058823529-5.75470588235294
6920.5220.54375-0.0237500000000008
7022.51820.543751.97425
7115.57220.54375-4.97175
7211.50920.54375-9.03475
7325.44720.543754.90325
7424.0920.543753.54625
7527.78620.543757.24225
7626.19520.543755.65125
7720.51620.54375-0.0277500000000022
7822.75920.543752.21525
7919.02820.54375-1.51575000000000
8016.97120.54375-3.57275
8120.03620.54375-0.507749999999999
8222.48520.543751.94125
8318.7320.54375-1.81375
8414.53820.54375-6.00575


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3164659503195030.6329319006390060.683534049680497
60.2259803280835170.4519606561670340.774019671916483
70.2140017058680960.4280034117361910.785998294131904
80.3356307969051010.6712615938102010.6643692030949
90.2851036025563880.5702072051127750.714896397443612
100.1945500974379820.3891001948759650.805449902562018
110.2435223837250410.4870447674500830.756477616274959
120.3554357887368740.7108715774737490.644564211263126
130.3263431361140840.6526862722281680.673656863885916
140.3283823039329690.6567646078659380.671617696067031
150.6382624386596280.7234751226807440.361737561340372
160.6835589652979670.6328820694040670.316441034702033
170.6193481545403590.7613036909192830.380651845459641
180.5424523555739990.9150952888520030.457547644426001
190.5677391071672060.8645217856655890.432260892832794
200.5954079588065460.8091840823869090.404592041193454
210.5516867386645790.8966265226708420.448313261335421
220.4806331104583370.9612662209166750.519366889541663
230.4569238395618020.9138476791236040.543076160438198
240.5951792372698410.8096415254603180.404820762730159
250.6041464841753750.791707031649250.395853515824625
260.5431606799055780.9136786401888430.456839320094422
270.5345489224714590.9309021550570820.465451077528541
280.4815844427835910.9631688855671810.518415557216409
290.4184710027957380.8369420055914760.581528997204262
300.3752034856984240.7504069713968480.624796514301576
310.3779944941740380.7559889883480760.622005505825962
320.3626588531743190.7253177063486370.637341146825682
330.3307108366364440.6614216732728870.669289163363556
340.2981871980101100.5963743960202210.70181280198989
350.2865001083717810.5730002167435620.713499891628219
360.5369331039719520.9261337920560970.463066896028048
370.610591382401060.778817235197880.38940861759894
380.6153333361740990.7693333276518020.384666663825901
390.7637188560520120.4725622878959760.236281143947988
400.7339623397829320.5320753204341360.266037660217068
410.6979836400842140.6040327198315730.302016359915786
420.6406266746128610.7187466507742780.359373325387139
430.6318639228243830.7362721543512350.368136077175617
440.6412153533595150.717569293280970.358784646640485
450.6334652105320580.7330695789358850.366534789467942
460.5846754700540680.8306490598918630.415324529945932
470.5984406080065750.803118783986850.401559391993425
480.8810603060850340.2378793878299330.118939693914966
490.8998282472368660.2003435055262670.100171752763134
500.8751069008143610.2497861983712780.124893099185639
510.8909501112648480.2180997774703040.109049888735152
520.8616587154889570.2766825690220860.138341284511043
530.8237182685718360.3525634628563280.176281731428164
540.7836253330526240.4327493338947520.216374666947376
550.7492706779549010.5014586440901980.250729322045099
560.742481040579640.515037918840720.25751895942036
570.711390260110830.5772194797783390.288609739889170
580.6497810670456730.7004378659086550.350218932954327
590.630805901360160.738388197279680.36919409863984
600.8704157558358550.259168488328290.129584244164145
610.8791418021601590.2417163956796830.120858197839841
620.8727046024508840.2545907950982330.127295397549116
630.8725779873608580.2548440252782830.127422012639142
640.9250553191699220.1498893616601560.0749446808300779
650.9078380738137880.1843238523724240.092161926186212
660.9213658929605670.1572682140788670.0786341070394334
670.890649812444810.2187003751103810.109350187555191
680.8507503179569860.2984993640860280.149249682043014
690.7917764281476860.4164471437046280.208223571852314
700.7295551438302590.5408897123394820.270444856169741
710.7175469637834960.5649060724330070.282453036216504
720.8778465689697240.2443068620605520.122153431030276
730.8639239116115070.2721521767769860.136076088388493
740.8219466531798790.3561066936402420.178053346820121
750.9035982213867740.1928035572264530.0964017786132263
760.9544847546968790.09103049060624280.0455152453031214
770.908505128694060.1829897426118810.0914948713059405
780.8928014798274810.2143970403450380.107198520172519
790.7751515312157290.4496969375685420.224848468784271


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 level10.0133333333333333OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/10cg131291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/10cg131291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/15w491291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/15w491291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/2f6lc1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/2f6lc1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/3f6lc1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/3f6lc1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/4f6lc1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/4f6lc1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/58fke1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/58fke1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/68fke1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/68fke1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/7j6kh1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/7j6kh1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/8j6kh1291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/8j6kh1291109984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/9cg131291109984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291109922onyg43xiplfgiq7/9cg131291109984.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