Home » date » 2010 » Dec » 22 »

Workshop 7: Multiple Regression

*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: Wed, 22 Dec 2010 07:54:08 +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/Dec/22/t1293004371muhucfzyo4d1fkt.htm/, Retrieved Wed, 22 Dec 2010 08:52:54 +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/Dec/22/t1293004371muhucfzyo4d1fkt.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 7
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-5 -6 33 5 15 -1 -3 24 6 17 -2 -4 24 6 13 -5 -7 31 5 12 -4 -7 25 5 13 -6 -7 28 3 10 -2 -3 24 5 14 -2 0 25 5 13 -2 -5 16 5 10 -2 -3 17 3 11 2 3 11 6 12 1 2 12 6 7 -8 -7 39 4 11 -1 -1 19 6 9 1 0 14 5 13 -1 -3 15 4 12 2 4 7 5 5 2 2 12 5 13 1 3 12 4 11 -1 0 14 3 8 -2 -10 9 2 8 -2 -10 8 3 8 -1 -9 4 2 8 -8 -22 7 -1 0 -4 -16 3 0 3 -6 -18 5 -2 0 -3 -14 0 1 -1 -3 -12 -2 -2 -1 -7 -17 6 -2 -4 -9 -23 11 -2 1 -11 -28 9 -6 -1 -13 -31 17 -4 0 -11 -21 21 -2 -1 -9 -19 21 0 6 -17 -22 41 -5 0 -22 -22 57 -4 -3 -25 -25 65 -5 -3 -20 -16 68 -1 4 -24 -22 73 -2 1 -24 -21 71 -4 0 -22 -10 71 -1 -4 -19 -7 70 1 -2 -18 -5 69 1 3 -17 -4 65 -2 2 -11 7 57 1 5 -11 6 57 1 6 -12 3 57 3 6 -10 10 55 3 3 -15 0 65 1 4 -15 -2 65 1 7 -15 -1 64 0 5 -13 2 60 2 6 -8 8 43 2 1 -13 -6 47 -1 3 -9 -4 40 1 6 -7 4 31 0 0 -4 7 27 1 3 -4 3 24 1 4 -2 3 23 3 7 0 8 17 2 6
 
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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
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.130074320935853 + 0.252862994160068EconSit[t] -0.252878563273482Werkloos[t] + 0.268135621609646FinSit[t] + 0.224848607252311`Sparen `[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.1300743209358530.1179331.1030.2748510.137425
EconSit0.2528629941600680.0063140.075400
Werkloos-0.2528785632734820.001989-127.138900
FinSit0.2681356216096460.0330698.108400
`Sparen `0.2248486072523110.01500914.98100


Multiple Linear Regression - Regression Statistics
Multiple R0.999189462068346
R-squared0.99837958110843
Adjusted R-squared0.998261732461772
F-TEST (value)8471.71019275742
F-TEST (DF numerator)4
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.311004478600877
Sum Squared Residuals5.31980821403917


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1-5-5.018689015216570.0186890152165668
2-1-1.266360127160760.266360127160759
3-2-2.418617550330060.418617550330064
4-5-5.44034070458660.440340704586605
5-4-3.6982207176934-0.301779282306598
6-6-5.66767347249007-0.332326527509928
7-2-2.209041570527340.209041570527336
8-2-1.92817975857292-0.0718202414270764
9-2-1.59113348166886-0.408866518331139
10-2-1.64970869258919-0.350291307410813
1122.41399612409336-0.413996124093363
1210.7840115303982590.215988469601741
13-8-7.95635343963642-0.0436465603635842
14-1-1.29503018049170.295030180491698
1510.8534844374353770.146515562564623
16-1-0.650967337180266-0.349032662819734
1721.836297498971540.163702501028463
1821.864967552302480.135032447697522
1911.39999771034828-0.399997710348279
20-1-0.80702984204547-0.192970157954531
21-2-2.339402588888390.339402588888389
22-2-1.81838840400526-0.181611595994739
23-1-0.82214677836091-0.17785322163909
24-8-7.47119711510967-0.528802884890334
25-4-3.99982345368875-0.00017654631124835
26-6-6.222123633532080.222123633532077
27-3-3.366720582947770.366720582947768
28-3-3.15964433290960.159644332909603
29-7-7.121533631654730.121533631654732
30-9-8.778861376721-0.221138623279003
31-11-11.05965892191760.0596589219175801
32-13-13.0801565601140.0801565601140388
33-11-11.25161823564030.251618235640302
34-9-8.6356807533347-0.364319246665302
35-17-17.14161075284660.141610752846634
36-22-21.5940779653696-0.405922034630368
37-25-24.6438310756473-0.356168924352662
38-20-20.48021708082240.48021708082241
39-24-24.20446930551680.204469305516808
40-24-24.20696903528140.206969035281379
41-22-21.5204636637009-0.47953633629907
42-19-19.52302766022330.523027660223331
43-18-17.6401800723682-0.359819927631842
44-17-17.40505829719540.405058297195412
45-11-11.12158416866090.121584168660938
46-11-11.14959855556870.149598555568694
47-12-11.3719162948296-0.628083705170392
48-10-9.7706640309191-0.229335969080901
49-15-15.13950224122160.13950224122158
50-15-14.9706824077848-0.0293175922152171
51-15-15.18277368646550.182773686465501
52-13-12.6515506004198-0.348449399580232
53-8-7.95968009607172-0.0403199039282814
54-13-12.8659859177309-0.134014082269082
55-9-9.379292921520180.379292921520184
56-7-6.69770916390181-0.302290836098189
57-4-3.9849244849611-0.0150755150388999
58-4-4.012892164528620.0128921645286169
59-2-2.549196536278910.549196536278911
600-0.2605944146996350.260594414699635


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.5498611112677840.9002777774644320.450138888732216
90.4557713593861050.911542718772210.544228640613895
100.4532158412817620.9064316825635240.546784158718238
110.4322689542726290.8645379085452580.567731045727371
120.4174309447808330.8348618895616650.582569055219167
130.3900847488358170.7801694976716330.609915251164183
140.3219472223401550.643894444680310.678052777659845
150.3369538888554230.6739077777108460.663046111144577
160.2638725917334220.5277451834668450.736127408266578
170.2399437651858250.479887530371650.760056234814175
180.2077064226223550.415412845244710.792293577377645
190.1894367493907790.3788734987815590.81056325060922
200.1581862209973990.3163724419947970.841813779002601
210.3915215065513320.7830430131026640.608478493448668
220.3426750887868930.6853501775737860.657324911213107
230.2809479356179740.5618958712359490.719052064382026
240.3181970217806820.6363940435613650.681802978219318
250.3036031761679460.6072063523358930.696396823832054
260.3896282682537070.7792565365074140.610371731746293
270.3995462244155170.7990924488310340.600453775584483
280.3825016399339370.7650032798678740.617498360066063
290.3281011445546250.6562022891092490.671898855445375
300.284802687186770.569605374373540.71519731281323
310.2463743582154790.4927487164309590.75362564178452
320.1889990218975850.377998043795170.811000978102415
330.1695231297678370.3390462595356740.830476870232163
340.2330830262771280.4661660525542570.766916973722872
350.1778815714989020.3557631429978040.822118428501098
360.2356514937829010.4713029875658020.764348506217099
370.2887415520982090.5774831041964180.711258447901791
380.3450228016180830.6900456032361650.654977198381917
390.2755669898381290.5511339796762590.72443301016187
400.2167400767673270.4334801535346540.783259923232673
410.3113383096093210.6226766192186420.688661690390679
420.6916612910724120.6166774178551760.308338708927588
430.6331645675738250.733670864852350.366835432426175
440.7030637441782880.5938725116434230.296936255821712
450.6204666286061770.7590667427876460.379533371393823
460.5313271954475180.9373456091049640.468672804552482
470.8646941141032740.2706117717934510.135305885896726
480.7975582355500360.4048835288999280.202441764449964
490.7739370724513380.4521258550973240.226062927548662
500.6622513603382360.6754972793235270.337748639661764
510.8994094509942530.2011810980114940.100590549005747
520.9931491774830760.01370164503384760.00685082251692381


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0222222222222222OK
10% type I error level10.0222222222222222OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/108bx31293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/108bx31293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/1cjzu1293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/1cjzu1293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/2cjzu1293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/2cjzu1293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/3cjzu1293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/3cjzu1293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/45agx1293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/45agx1293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/55agx1293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/55agx1293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/65agx1293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/65agx1293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/7x2x01293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/7x2x01293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/88bx31293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/88bx31293004438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/98bx31293004438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293004371muhucfzyo4d1fkt/98bx31293004438.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