Home » date » 2009 » Nov » 18 »

*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, 18 Nov 2009 09:29:33 -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/18/t1258561810mp949xtjuso2a0m.htm/, Retrieved Wed, 18 Nov 2009 17:30:23 +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/18/t1258561810mp949xtjuso2a0m.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
274412 244752 272433 244576 268361 241572 268586 240541 264768 236089 269974 236997 304744 264579 309365 270349 308347 269645 298427 267037 289231 258113 291975 262813 294912 267413 293488 267366 290555 264777 284736 258863 281818 254844 287854 254868 316263 277267 325412 285351 326011 286602 328282 283042 317480 276687 317539 277915 313737 277128 312276 277103 309391 275037 302950 270150 300316 267140 304035 264993 333476 287259 337698 291186 335932 292300 323931 288186 313927 281477 314485 282656 313218 280190 309664 280408 302963 276836 298989 275216 298423 274352 301631 271311 329765 289802 335083 290726 327616 292300 309119 278506 295916 269826 291413 265861 291542 269034 284678 264176 276475 255198 272566 253353 264981 246057 263290 235372 296806 258556 303598 260993 286994 254663 276427 250643 266424 243422 267153 247105 268381 248541 262522 245039 255542 237080 253158 237085 243803 225554 250741 226839 280445 247934 285257 248333 2709 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] = + 3078.3269626413 + 1.08313220981157X[t] -961.335706115605M1[t] -3251.10389194446M2[t] -4303.81391593477M3[t] -5366.09598507172M4[t] -4286.31027493667M5[t] + 1616.39275132285M6[t] + 8035.3196709235M7[t] + 15681.9071435834M8[t] + 9730.68823084167M9[t] + 5371.39205274557M10[t] + 2220.71659826559M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)3078.326962641325064.6609060.12280.9026260.451313
X1.083132209811570.09246811.713600
M1-961.3357061156056975.557974-0.13780.8908060.445403
M2-3251.103891944466976.460471-0.4660.6427420.321371
M3-4303.813915934776989.472234-0.61580.5401730.270086
M4-5366.095985071727004.209797-0.76610.4463340.223167
M5-4286.310274936677067.004043-0.60650.5462470.273124
M61616.392751322857087.304710.22810.8202980.410149
M78035.31967092357020.9387061.14450.2565590.128279
M815681.90714358347287.5397042.15190.035070.017535
M99730.688230841677279.892671.33670.1859260.092963
M105371.392052745577245.2194450.74140.4610990.230549
M112220.716598265597242.7691810.30660.7601040.380052


Multiple Linear Regression - Regression Statistics
Multiple R0.879926325621267
R-squared0.774270338521344
Adjusted R-squared0.73322858188886
F-TEST (value)18.8654288230085
F-TEST (DF numerator)12
F-TEST (DF denominator)66
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12537.2715860660
Sum Squared Residuals10374089802.3033


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1274412267215.7658723287196.23412767223
2272433264735.3664175727697.63358242789
3268361260428.9272353087932.07276469219
4268586258249.93585785510336.0641421449
5264768254507.61696990910260.3830300910
6269974261393.8040426778580.19595732252
7304744297687.6835733017056.3164266991
8309365311583.943896574-2218.94389657356
9308347304870.1999081253476.80009187549
10298427297686.09492684740.905073160178
11289231284869.5476320014361.45236799862
12291975287739.552419854235.44758014982
13294912291760.6248788683151.37512113221
14293488289419.9494791784068.0505208222
15290555285563.0101639854991.98983601467
16284736278095.0842060236640.91579397725
17281818274821.7615649256996.23843507491
18287854280750.459764227103.54023577992
19316263311430.465051394832.53494860986
20325412327833.093308167-2421.09330816676
21326011323236.8727898992774.12721010067
22328282315021.62594487413260.3740551260
23317480304987.64529704212492.3547029585
24317539304097.01505242513441.9849475755
25313737302283.25429718711453.7457028128
26312276299966.40780611312309.5921938869
27309391296675.94663665212715.0533633479
28302950290320.39745816612629.6025418340
29300316288139.95521676812176.0447832318
30304035291717.17338856212317.8266114378
31333476322253.12209182711222.8779081726
32337698334153.1697524173544.83024758272
33335932329408.5601214066523.43987859433
34323931320593.2580321453337.74196785524
35313927310175.8485820393751.15141796105
36314485309232.1448591415252.8551408588
37313218305599.805123637618.19487636974
38309664303546.1597595406117.84024045968
39302963298624.5014821034338.49851789692
40298989295807.5452330713181.45476692862
41298423295951.5047139292471.49528607077
42301631298560.4026901523070.59730984824
43329765325007.5273013784757.4726986218
44335083333654.9289359041428.07106409604
45327616329408.560121406-1792.56012140567
46309119310108.538241169-989.53824116874
47295916297556.275205524-1640.27520552432
48291413291040.939395356372.060604644147
49291542293516.382190972-1974.38219097236
50284678285964.757729879-1286.75772987889
51276475275187.6867262001287.31327379972
52272566272127.025729961438.974270039016
53264981265304.278837311-323.278837310803
54263290259633.7142017343656.28579826633
55296806291163.9782736065642.02172639418
56303598301450.1589415762147.84105842352
57286994288642.713140728-1648.71314072754
58276427279929.225479189-3502.22547918891
59266424268957.252337660-2533.25233765957
60267153270725.71166813-3572.71166813000
61268381271319.753815304-2938.75381530381
62262522265236.856630715-2714.85663071483
63255542255563.497348834-21.4973488342223
64253158254506.630940746-1348.63094074633
65243803243096.819139544706.180860455863
66250741250391.347055412349.652944588481
67280445279658.947940987786.052059012698
68285257287737.705165362-2480.70516536198
69270976280309.093918437-9333.0939184373
70261076273923.257375784-12847.2573757837
71255603272034.430945734-16431.4309457343
72260376280105.636605098-19729.6366050982
73263903288409.413821711-24506.4138217108
74264291290482.502177003-26191.5021770030
75263276294519.430406917-31243.4304069172
76262572294450.380574177-31878.3805741775
77256167288454.063557614-32287.0635576135
78264221299299.098857243-35078.0988572433
79293860328157.27576751-34297.2757675103


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
165.7207133695348e-050.0001144142673906960.999942792866305
171.70342598241517e-063.40685196483034e-060.999998296574018
183.74585589660166e-077.49171179320333e-070.99999962541441
191.42839766216999e-082.85679532433998e-080.999999985716023
208.2560940858686e-091.65121881717372e-080.999999991743906
211.3534045091508e-092.7068090183016e-090.999999998646596
224.63293594591837e-059.26587189183674e-050.99995367064054
235.10772904393807e-050.0001021545808787610.99994892270956
245.33274119991281e-050.0001066548239982560.999946672588001
252.92112245145796e-055.84224490291591e-050.999970788775485
261.51749045272047e-053.03498090544095e-050.999984825095473
277.27738349206225e-061.45547669841245e-050.999992722616508
282.8385652726953e-065.6771305453906e-060.999997161434727
291.05991474341712e-062.11982948683425e-060.999998940085257
304.3465293534018e-078.6930587068036e-070.999999565347065
311.91032491350543e-073.82064982701085e-070.999999808967509
327.20405863871459e-081.44081172774292e-070.999999927959414
332.25210225448778e-084.50420450897557e-080.999999977478977
341.28622964255499e-082.57245928510997e-080.999999987137704
359.93604380500276e-091.98720876100055e-080.999999990063956
366.0381869581386e-091.20763739162772e-080.999999993961813
372.92191725443628e-095.84383450887257e-090.999999997078083
381.92006722985033e-093.84013445970066e-090.999999998079933
391.95863853602547e-093.91727707205094e-090.999999998041361
404.2397026184458e-098.4794052368916e-090.999999995760297
411.1763895803834e-082.3527791607668e-080.999999988236104
422.40896516120065e-084.8179303224013e-080.999999975910348
433.21049914528154e-086.42099829056308e-080.999999967895009
442.20040651643811e-084.40081303287622e-080.999999977995935
457.41990489896872e-081.48398097979374e-070.99999992580095
464.12681043886369e-078.25362087772739e-070.999999587318956
473.9873295947815e-067.974659189563e-060.999996012670405
482.43583328230076e-054.87166656460153e-050.999975641667177
490.0002365799643509390.0004731599287018790.99976342003565
500.001391403431221090.002782806862442190.99860859656878
510.004196979747017030.008393959494034060.995803020252983
520.01180588224374790.02361176448749580.988194117756252
530.03467536427439750.06935072854879510.965324635725602
540.03690193303906390.07380386607812790.963098066960936
550.06424164073444970.1284832814688990.93575835926555
560.1308236405048720.2616472810097440.869176359495128
570.2518426421291240.5036852842582480.748157357870876
580.5145940185526450.970811962894710.485405981447355
590.7493829120873470.5012341758253060.250617087912653
600.882304167891190.2353916642176190.117695832108809
610.9845362079537480.03092758409250410.0154637920462520
620.9959571340850360.008085731829928770.00404286591496438
630.9973962668926150.00520746621477030.00260373310738515


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level380.791666666666667NOK
5% type I error level400.833333333333333NOK
10% type I error level420.875NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/107rhj1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/107rhj1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/1z6gg1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/1z6gg1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/2k1bw1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/2k1bw1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/3ak9g1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/3ak9g1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/4qo7s1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/4qo7s1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/56oob1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/56oob1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/6bdrr1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/6bdrr1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/7uuyc1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/7uuyc1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/8p1ak1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/8p1ak1258561768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/96j0p1258561768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258561810mp949xtjuso2a0m/96j0p1258561768.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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