Home » date » 2010 » Nov » 29 »

Multiple Regression Workshop 4

*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: Mon, 29 Nov 2010 14:00:19 +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/29/t129103914268e84ksboijfk60.htm/, Retrieved Mon, 29 Nov 2010 14:59:20 +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/29/t129103914268e84ksboijfk60.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:
Workshop 4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
30/11/2010 0 8 17 2 6 31/10/2010 -2 3 23 3 7 30/09/2010 -4 3 24 1 4 31/08/2010 -4 7 27 1 3 31/07/2010 -7 4 31 0 0 30/06/2010 -9 -4 40 1 6 31/05/2010 -13 -6 47 -1 3 30/04/2010 -8 8 43 2 1 31/03/2010 -13 2 60 2 6 28/02/2010 -15 -1 64 0 5 31/01/2010 -15 -2 65 1 7 31/12/2009 -15 0 65 1 4 30/11/2009 -10 10 55 3 3 31/10/2009 -12 3 57 3 6 30/09/2009 -11 6 57 1 6 31/08/2009 -11 7 57 1 5 31/07/2009 -17 -4 65 -2 2 30/06/2009 -18 -5 69 1 3 31/05/2009 -19 -7 70 1 -2 30/04/2009 -22 -10 71 -1 -4 31/03/2009 -24 -21 71 -4 0 28/02/2009 -24 -22 73 -2 1 31/01/2009 -20 -16 68 -1 4 31/12/2008 -25 -25 65 -5 -3 30/11/2008 -22 -22 57 -4 -3 31/10/2008 -17 -22 41 -5 0 30/09/2008 -9 -19 21 0 6 31/08/2008 -11 -21 21 -2 -1 31/07/2008 -13 -31 17 -4 0 30/06/2008 -11 -28 9 -6 -1 31/05/2008 -9 -23 11 -2 1 30/04/2008 -7 -17 6 -2 -4 31/03/2008 -3 -12 -2 -2 -1 29/02/2008 -3 -14 0 1 -1 31/01/2008 -6 -18 5 -2 0 31/12/2007 -4 -16 3 0 3 30/11/2007 -8 -22 7 -1 0 31/10/2007 -1 -9 4 2 8 30/09/2007 -2 -10 8 3 8 31 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
CVI[t] = + 0.0799791163793411 + 26.4477403759069Maand[t] + 0.253996016630743Econ.Sit.[t] -0.253388443883417Werkloos[t] + 0.27108634384964Fin.Sit.[t] + 0.219859137240139`Spaarverm. `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.07997911637934110.1127820.70910.481230.240615
Maand26.447740375906910.1812342.59770.0120190.00601
Econ.Sit.0.2539960166307430.00591642.93300
Werkloos-0.2533884438834170.0019-133.385500
Fin.Sit.0.271086343849640.0301928.978900
`Spaarverm. `0.2198591372401390.01401115.691800


Multiple Linear Regression - Regression Statistics
Multiple R0.999264848251209
R-squared0.99853023695051
Adjusted R-squared0.99839662212783
F-TEST (value)7473.19958157405
F-TEST (DF numerator)5
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.296240131543268
Sum Squared Residuals4.8267018545225


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
10-0.2984431133008590.298443113300859
2-2-2.592904003471210.59290400347121
3-4-4.044972328156890.0449723281568858
4-4-4.001885437305250.00188543730525317
5-7-6.70080708127515-0.299192918724847
6-9-9.41551113924480.415511139244800
7-13-12.8831826833631-0.116817316636904
8-8-7.92303841420467-0.0769615857953326
9-13-12.6180411477377-0.381958852262333
10-15-15.10736850554330.107368505543285
11-15-14.6802609913144-0.319739008685614
12-15-15.20573821739660.205738217396625
13-10-9.80768515302496-0.192314846975036
14-12-11.4279499290903-0.57205007090969
15-11-11.20506282004770.205062820047663
16-11-11.16379509975600.16379509975597
17-17-17.45040771435170.450407714351686
18-18-17.6773166923808-0.322683307619162
19-19-19.52219530049940.522195300499415
20-22-21.502348738292-0.497651261707988
21-24-24.19282762064360.192827620643640
22-24-24.14329839246370.143298392463668
23-20-20.19791761864260.197917618642585
24-25-24.7211537203774-0.278846279622633
25-22-21.6590759231176-0.340924076882425
26-17-17.21146049308220.211460493082190
27-9-8.70404374622848-0.295956253771521
28-11-11.28608803575350.286088035753545
29-13-13.12751678504300.127516785043033
30-11-11.09292661733940.0929266173393619
31-9-8.78985434953824-0.210145650461761
32-7-7.081109175457370.0811091754573694
33-3-3.087125770751760.0871257707517571
34-3-3.233755720872120.233755720872118
35-6-5.89275734125917-0.107242658740825
36-4-4.050502553795640.0505025537956398
37-8-7.51679938761318-0.483200612386816
38-1-0.877642004194529-0.122357995805471
39-2-1.87103064462637-0.128969355373631
40-2-2.388367485488330.388367485488334
41-1-0.836968369924042-0.163031630075958
4211.3699904650592-0.3699904650592
4321.842612364442020.157387635557976
4421.875804591690110.124195408309894
45-1-0.624010506096923-0.375989493903077
4610.9306298783574390.0693701216425612
47-1-0.974636845616245-0.0253631543837553
48-8-8.043286940255410.0432869402554104
4910.7487990756447560.251200924355244
5022.36039337696585-0.360393376965846
51-2-1.71395521421972-0.286044785780283
52-2-1.63910374796901-0.360896252030986
53-2-1.98274378671843-0.0172562132815725
54-2-2.263950359923530.263950359923532
55-6-5.69927625795652-0.300723742043484
56-4-3.72022121447945-0.27977878552055
57-5-5.42305544951740.423055449517398
58-2-2.348060314818570.348060314818572
59-1-0.990494356211112-0.00950564378888785
60-5-5.118420380239060.118420380239059
61-9-9.395878112169050.395878112169048


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.1292799041681420.2585598083362840.870720095831858
100.2429129865576580.4858259731153170.757087013442342
110.4297804938667550.859560987733510.570219506133245
120.3542593858054920.7085187716109830.645740614194508
130.267098683751360.534197367502720.73290131624864
140.6909490245520890.6181019508958220.309050975447911
150.6056655386394050.788668922721190.394334461360595
160.5165057655891590.9669884688216820.483494234410841
170.6035310094018290.7929379811963420.396468990598171
180.5391863756354230.9216272487291540.460813624364577
190.8911739755423060.2176520489153870.108826024457694
200.938706133661780.1225877326764420.0612938663382212
210.9132126733234810.1735746533530380.0867873266765188
220.8751335214884870.2497329570230250.124866478511512
230.8587007524401590.2825984951196820.141299247559841
240.8927518353683440.2144963292633110.107248164631656
250.9414094738208120.1171810523583770.0585905261791884
260.9134488769957670.1731022460084650.0865511230042327
270.9359414367869370.1281171264261260.064058563213063
280.924395137211290.1512097255774200.0756048627887099
290.893979960297460.2120400794050790.106020039702540
300.8788837213418140.2422325573163710.121116278658186
310.8532084649170810.2935830701658380.146791535082919
320.8066901644122420.3866196711755160.193309835587758
330.7846888843309660.4306222313380680.215311115669034
340.7612216152736340.4775567694527320.238778384726366
350.712192829628570.575614340742860.28780717037143
360.6891620743979240.6216758512041520.310837925602076
370.753474248435460.493051503129080.24652575156454
380.6872677326699920.6254645346600160.312732267330008
390.6286099613282870.7427800773434250.371390038671713
400.873512116820930.2529757663581410.126487883179070
410.8342965344883330.3314069310233340.165703465511667
420.8183552014077050.363289597184590.181644798592295
430.8282121053410820.3435757893178360.171787894658918
440.7905870501930420.4188258996139170.209412949806958
450.7300814873651160.5398370252697680.269918512634884
460.7383014228776620.5233971542446760.261698577122338
470.6944621316761030.6110757366477940.305537868323897
480.6911541412631930.6176917174736130.308845858736807
490.6512629416292790.6974741167414430.348737058370721
500.601032507339960.7979349853200790.398967492660039
510.6147255327308040.7705489345383920.385274467269196
520.4771226585393950.954245317078790.522877341460605


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/2010/Nov/29/t129103914268e84ksboijfk60/10yl5j1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/10yl5j1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/1rkq81291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/1rkq81291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/2rkq81291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/2rkq81291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/32bqs1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/32bqs1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/42bqs1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/42bqs1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/52bqs1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/52bqs1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/6vk7d1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/6vk7d1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/7ntoy1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/7ntoy1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/8ntoy1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/8ntoy1291039211.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/9ntoy1291039211.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t129103914268e84ksboijfk60/9ntoy1291039211.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 2 ; 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