Home » date » 2009 » Dec » 20 »

*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: Sun, 20 Dec 2009 13:40:51 -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/Dec/20/t1261341719e23936tx2ow3702.htm/, Retrieved Sun, 20 Dec 2009 21:42:12 +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/Dec/20/t1261341719e23936tx2ow3702.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 «
87.4 0 104.5 98.1 102.7 105.4 97 97.4 89.9 0 87.4 104.5 98.1 102.7 105.4 97 109.8 0 89.9 87.4 104.5 98.1 102.7 105.4 111.7 0 109.8 89.9 87.4 104.5 98.1 102.7 98.6 0 111.7 109.8 89.9 87.4 104.5 98.1 96.9 0 98.6 111.7 109.8 89.9 87.4 104.5 95.1 0 96.9 98.6 111.7 109.8 89.9 87.4 97 0 95.1 96.9 98.6 111.7 109.8 89.9 112.7 0 97 95.1 96.9 98.6 111.7 109.8 102.9 0 112.7 97 95.1 96.9 98.6 111.7 97.4 0 102.9 112.7 97 95.1 96.9 98.6 111.4 0 97.4 102.9 112.7 97 95.1 96.9 87.4 0 111.4 97.4 102.9 112.7 97 95.1 96.8 0 87.4 111.4 97.4 102.9 112.7 97 114.1 0 96.8 87.4 111.4 97.4 102.9 112.7 110.3 0 114.1 96.8 87.4 111.4 97.4 102.9 103.9 0 110.3 114.1 96.8 87.4 111.4 97.4 101.6 0 103.9 110.3 114.1 96.8 87.4 111.4 94.6 0 101.6 103.9 110.3 114.1 96.8 87.4 95.9 0 94.6 101.6 103.9 110.3 114.1 96.8 104.7 0 95.9 94.6 101.6 103.9 110.3 114.1 102.8 0 104.7 95.9 94.6 101.6 103.9 110.3 98.1 0 102.8 104.7 95.9 94.6 101.6 103.9 113.9 0 98.1 102.8 104.7 95.9 94.6 101.6 80.9 0 113.9 98.1 102.8 104.7 95.9 94.6 95.7 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
Productie[t] = + 70.843171659092 -12.1409361201919Dummy[t] -0.170535875011005`Yt-1`[t] + 0.127341252226174`Yt-2`[t] + 0.406670131624456`Yt-3`[t] -0.115932126741984`Yt-4`[t] -0.0322030815182641`Yt-5`[t] + 0.125704389082812`Yt-6`[t] -19.0624672402896M1[t] -15.1805417856902M2[t] -0.526451480378921M3[t] + 14.7571552687538M4[t] -1.15645418805891M5[t] -16.4847096765184M6[t] -11.7529419581613M7[t] -7.21825953770693M8[t] + 2.70776198327648M9[t] -3.68093564071264M10[t] -7.4642631479732M11[t] + 0.128245177155806t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)70.84317165909215.4569064.58332.7e-051.3e-05
Dummy-12.14093612019192.59814-4.67292e-051e-05
`Yt-1`-0.1705358750110050.127664-1.33580.187110.093555
`Yt-2`0.1273412522261740.1278420.99610.3235730.161786
`Yt-3`0.4066701316244560.1315093.09230.0031170.001558
`Yt-4`-0.1159321267419840.121414-0.95480.3438330.171916
`Yt-5`-0.03220308151826410.120282-0.26770.7899090.394955
`Yt-6`0.1257043890828120.1281680.98080.3309950.165498
M1-19.06246724028962.382462-8.001200
M2-15.18054178569023.051581-4.97467e-063e-06
M3-0.5264514803789213.479885-0.15130.8803050.440153
M414.75715526875384.4554223.31220.001640.00082
M5-1.156454188058914.751963-0.24340.8086290.404315
M6-16.48470967651843.512189-4.69361.8e-059e-06
M7-11.75294195816133.371446-3.4860.0009710.000486
M8-7.218259537706933.443448-2.09620.0406760.020338
M92.707761983276484.2817350.63240.5297470.264873
M10-3.680935640712644.096295-0.89860.3727820.186391
M11-7.46426314797322.88189-2.59010.0122590.006129
t0.1282451771558060.0386193.32080.0015990.000799


Multiple Linear Regression - Regression Statistics
Multiple R0.956037433079494
R-squared0.914007573449228
Adjusted R-squared0.884301098822598
F-TEST (value)30.7679583301975
F-TEST (DF numerator)19
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.24878213411558
Sum Squared Residuals580.502194522171


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
187.485.24581244931662.15418755068342
289.991.1086770543519-1.20867705435185
3109.8107.5659792500282.23402074997159
4111.7112.015227856697-0.315227856696888
598.6100.654711118671-2.05471111867122
696.997.0887552358055-0.188755235805451
795.196.8060798854834-1.70607988548339
89795.68526181473231.31473818526770
9112.7108.4539992207654.24600077923484
10102.999.88385900117283.01614099882724
1197.499.288654725945-1.88865472594506
12111.4112.579884202804-1.17988420280436
1387.484.464827567272.93517243273008
1496.892.98333580801333.81666419198670
15114.1111.7266016592512.37339834074884
16110.3112.947271720740-2.64727172073952
17103.9105.475800427504-1.57580042750357
18101.699.3616896471372.23831035286297
1994.696.9283644438593-2.32836444385928
2095.9100.954519472762-5.05451947276176
21104.7111.999382717118-7.29938271711795
22102.8101.5521342114191.24786578858060
2398.199.9514281190936-1.85142811909361
24113.9111.4677935468132.43220645318740
2580.986.5259300780725-5.62593007807252
2695.796.3647263809863-0.664726380986282
27113.2112.5585231439940.641476856006124
28105.9111.531321988285-5.6313219882853
29108.8107.9642003240160.835799675983572
30102.399.78980769918752.51019230081246
319996.50523878868152.49476121131850
32100.7104.225735573141-3.52573557314125
33115.5113.0252154323372.47478456766280
34100.7102.857828576880-2.15782857688021
35109.9105.2591057301054.64089426989528
36114.6114.5088584447380.0911415552623357
3785.487.7405741431553-2.34057414315528
38100.5102.523148752392-2.02314875239176
39114.8114.1938325746930.60616742530706
40116.5114.5135322494241.98646775057574
41112.9110.7902998739042.10970012609582
42102102.016647218873-0.0166472188729180
43106103.1537477631992.84625223680116
44105.3105.523047331630-0.223047331629558
45118.8113.9335328980494.86646710195109
46106.1108.501676524901-2.40167652490070
47109.3107.8815869012351.41841309876503
48117.2117.383355621630-0.183355621630165
4992.591.30495748377981.19504251622018
50104.2102.7843078788611.41569212113938
51112.5117.373744315871-4.87374431587117
52122.4120.1999294760192.20007052398130
53113.3111.5526061988341.74739380116604
54100102.972587744027-2.97258774402668
55110.7108.5240455689422.17595443105776
56112.8106.0236301724666.77636982753436
57109.8113.453128457005-3.65312845700514
58117.3115.4024894526661.89751054733407
59109.1108.9842888671120.115711132888437
60115.9115.4503415509490.449658449051261
619698.9875101288926-2.98751012889258
6299.8103.413667620248-3.61366762024811
63116.8118.111239914068-1.31123991406762
64115.7111.2927167088354.40728329116467
6599.4100.462382057071-1.06238205707065
6694.395.8705124549704-1.57051245497038
679194.4825235498348-3.48252354983475
6893.292.48780563526950.712194364730514
69103.1103.734741274726-0.634741274725637
7094.195.702012232961-1.60201223296099
7191.894.23493565651-2.43493565651008
72102.7104.309766633066-1.60976663306648
7382.677.93038814951334.66961185048669
7489.186.82213650514812.27786349485193
75104.5104.1700791420950.329920857905177


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
230.7589497830207080.4821004339585840.241050216979292
240.6948077907708590.6103844184582810.305192209229141
250.7159134175749330.5681731648501340.284086582425067
260.7961560719737520.4076878560524960.203843928026248
270.7584851521130290.4830296957739420.241514847886971
280.8332945736280020.3334108527439970.166705426371998
290.7948731081699190.4102537836601620.205126891830081
300.8047284241779960.3905431516440090.195271575822004
310.7835918328431860.4328163343136280.216408167156814
320.8118522178659040.3762955642681930.188147782134096
330.8406491307424430.3187017385151150.159350869257557
340.8099502582326440.3800994835347110.190049741767356
350.8719528304449720.2560943391100560.128047169555028
360.815452710933650.3690945781326990.184547289066350
370.81436893136260.3712621372748010.185631068637401
380.7877504979608390.4244990040783230.212249502039161
390.7221803527843430.5556392944313140.277819647215657
400.6924187121056480.6151625757887040.307581287894352
410.6185666992441850.762866601511630.381433300755815
420.5248262860068060.9503474279863890.475173713993194
430.4581740907626540.9163481815253080.541825909237346
440.5578657001802630.8842685996394750.442134299819737
450.5601575474682410.8796849050635180.439842452531759
460.578081036698670.843837926602660.42191896330133
470.5774706664164660.8450586671670690.422529333583534
480.4938023450920070.9876046901840140.506197654907993
490.436883149728950.87376629945790.56311685027105
500.3271959850539990.6543919701079980.672804014946001
510.2603820910852080.5207641821704150.739617908914792
520.2224405069848590.4448810139697180.777559493015141


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/2009/Dec/20/t1261341719e23936tx2ow3702/10pwta1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/10pwta1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/19cvg1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/19cvg1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/2ywbb1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/2ywbb1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/33htw1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/33htw1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/41ps21261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/41ps21261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/5ngmb1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/5ngmb1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/6dyko1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/6dyko1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/7lnrc1261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/7lnrc1261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/85ys41261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/85ys41261341644.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/9q3481261341644.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261341719e23936tx2ow3702/9q3481261341644.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by