Home » date » 2008 » Dec » 23 »

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: Tue, 23 Dec 2008 13:22:18 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h.htm/, Retrieved Tue, 23 Dec 2008 21:24:08 +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/2008/Dec/23/t1230063848f4f2czh3o741r0h.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
104.3 0 103.9 0 103.9 0 103.9 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 0 108.0 1 108.0 1 108.0 1 108.0 1 108.0 1 108.2 1 112.3 1 111.3 1 111.3 1 115.3 1 117.2 1 118.3 1 118.3 1 118.3 1 119.0 1 120.6 1 122.6 1 122.6 1 127.4 1 125.9 1 121.5 1 118.8 1 121.6 1 122.3 1 122.7 1 120.8 1 120.1 1 120.1 1 120.1 1 120.1 1 128.4 1 129.8 1 129.8 1 128.6 1 128.6 1 133.7 1 130.0 1 125.9 1 129.4 1 129.4 1 130.6 1 130.6 1 130.6 1 130.8 1 129.7 1 125.8 1 126.0 1 125.6 1 125.4 1 124.7 1 126.9 1 129.1 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 100.760435897436 + 0.370153846153845x[t] + 0.925943223443226M1[t] + 1.01766300366300M2[t] + 1.52430952380952M3[t] + 1.16364835164835M4[t] + 4.31965384615385M5[t] + 3.77565934065935M6[t] + 2.46499816849817M7[t] + 1.43767032967033M8[t] + 1.86034249084249M9[t] + 2.54968131868132M10[t] + 1.51066117216117M11[t] + 0.393994505494505t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)100.7604358974361.65030561.055600
x0.3701538461538451.4754390.25090.8027660.401383
M10.9259432234432261.9503240.47480.6366790.318339
M21.017663003663001.9502830.52180.6037290.301864
M31.524309523809522.0282880.75150.4552750.227637
M41.163648351648352.0271550.5740.5680930.284047
M54.319653846153852.0265112.13160.0371470.018574
M63.775659340659352.0263581.86330.067320.03366
M72.464998168498172.0266961.21630.2286480.114324
M81.437670329670332.0275240.70910.4810230.240512
M91.860342490842492.0288410.91690.3628410.18142
M102.549681318681322.0306481.25560.2141290.107064
M111.510661172161172.021060.74750.4577060.228853
t0.3939945054945050.0315312.49600


Multiple Linear Regression - Regression Statistics
Multiple R0.938648554720469
R-squared0.881061109278825
Adjusted R-squared0.855291016289237
F-TEST (value)34.189287156814
F-TEST (DF numerator)13
F-TEST (DF denominator)60
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.50015320700787
Sum Squared Residuals735.064348351648


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1104.3102.0803736263742.21962637362638
2103.9102.5660879120881.33391208791209
3103.9103.4667289377290.433271062271068
4103.9103.5000622710620.399937728937733
5108107.0500622710620.949937728937727
6108106.9000622710621.09993772893772
7108105.9833956043962.01660439560439
8108105.3500622710622.64993772893773
9108106.1667289377291.83327106227106
10108107.2500622710620.749937728937732
11108106.6050366300371.39496336996337
12108105.488369963372.51163003663003
13108106.8083076923081.19169230769230
14108107.2940219780220.705978021978017
15108108.194663003663-0.194663003663004
16108108.227996336996-0.227996336996338
17108111.777996336996-3.77799633699634
18108111.627996336996-3.62799633699634
19108110.711329670330-2.71132967032967
20108110.077996336996-2.07799633699634
21108110.894663003663-2.894663003663
22108111.977996336996-3.97799633699633
23108111.703124542125-3.70312454212454
24108110.586457875458-2.58645787545787
25108111.906395604396-3.9063956043956
26108112.39210989011-4.39210989010989
27108113.292750915751-5.29275091575091
28108.2113.326084249084-5.12608424908424
29112.3116.876084249084-4.57608424908425
30111.3116.726084249084-5.42608424908426
31111.3115.809417582418-4.50941758241759
32115.3115.1760842490840.123915750915752
33117.2115.9927509157511.20724908424909
34118.3117.0760842490841.22391575091575
35118.3116.4310586080591.86894139194139
36118.3115.3143919413922.98560805860806
37119116.6343296703302.36567032967033
38120.6117.1200439560443.47995604395604
39122.6118.0206849816854.57931501831502
40122.6118.0540183150184.54598168498168
41127.4121.6040183150185.79598168498169
42125.9121.4540183150184.44598168498169
43121.5120.5373516483520.962648351648353
44118.8119.904018315018-1.10401831501832
45121.6120.7206849816850.879315018315014
46122.3121.8040183150180.495981684981686
47122.7121.1589926739931.54100732600733
48120.8120.0423260073260.757673992673989
49120.1121.362263736264-1.26226373626374
50120.1121.847978021978-1.74797802197803
51120.1122.748619047619-2.64861904761905
52120.1122.781952380952-2.68195238095239
53128.4126.3319523809522.06804761904762
54129.8126.1819523809523.61804761904763
55129.8125.2652857142864.5347142857143
56128.6124.6319523809523.96804761904762
57128.6125.4486190476193.15138095238095
58133.7126.5319523809527.16804761904761
59130125.8869267399274.11307326007326
60125.9124.770260073261.12973992673993
61129.4126.0901978021983.30980219780220
62129.4126.5759120879122.82408791208792
63130.6127.4765531135533.12344688644688
64130.6127.5098864468863.09011355311355
65130.6131.059886446886-0.459886446886451
66130.8130.909886446886-0.109886446886437
67129.7129.993219780220-0.293219780219789
68125.8129.359886446886-3.55988644688645
69126130.176553113553-4.17655311355311
70125.6131.259886446886-5.65988644688645
71125.4130.614860805861-5.2148608058608
72124.7129.498194139194-4.79819413919413
73126.9130.818131868132-3.91813186813187
74129.1131.303846153846-2.20384615384616


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0695798047623080.1391596095246160.930420195237692
180.05262038549408580.1052407709881720.947379614505914
190.03170325947930100.06340651895860210.968296740520699
200.01712558152571110.03425116305142220.982874418474289
210.008458694798708890.01691738959741780.991541305201291
220.003866482232119170.007732964464238340.99613351776788
230.001417545529154880.002835091058309770.998582454470845
240.0004726890761991050.000945378152398210.9995273109238
250.0001790066279387910.0003580132558775820.999820993372061
267.10306331255767e-050.0001420612662511530.999928969366874
273.41332265617906e-056.82664531235813e-050.999965866773438
281.85056790732549e-053.70113581465098e-050.999981494320927
293.54273957076497e-057.08547914152994e-050.999964572604292
305.3986836641093e-050.0001079736732821860.999946013163359
317.96051582885303e-050.0001592103165770610.999920394841711
320.0007095691816215910.001419138363243180.999290430818378
330.006477514002851870.01295502800570370.993522485997148
340.02920258234458790.05840516468917590.970797417655412
350.0673119586899850.134623917379970.932688041310015
360.09627795799031870.1925559159806370.903722042009681
370.1231964349506480.2463928699012970.876803565049352
380.1672569476240520.3345138952481040.832743052375948
390.2438657462665280.4877314925330550.756134253733472
400.282148862704650.56429772540930.71785113729535
410.3567501465140000.7135002930280010.643249853486
420.3520765347382090.7041530694764180.647923465261791
430.3058958759748530.6117917519497070.694104124025147
440.2768931803557370.5537863607114740.723106819644263
450.2131711465816520.4263422931633050.786828853418348
460.1751466955486960.3502933910973930.824853304451304
470.1265315163785510.2530630327571020.873468483621449
480.09047703377729930.1809540675545990.9095229662227
490.09568685062187580.1913737012437520.904313149378124
500.1559615258451260.3119230516902510.844038474154874
510.3616957342056740.7233914684113470.638304265794326
520.8733167592843340.2533664814313320.126683240715666
530.8883879351835330.2232241296329330.111612064816467
540.8871773476833720.2256453046332570.112822652316629
550.8639344537568040.2721310924863920.136065546243196
560.7571508827643080.4856982344713840.242849117235692
570.5980360283994440.8039279432011120.401963971600556


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.268292682926829NOK
5% type I error level140.341463414634146NOK
10% type I error level160.390243902439024NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/107hee1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/107hee1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/1p7c21230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/1p7c21230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/2gk6c1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/2gk6c1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/3atwt1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/3atwt1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/4259e1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/4259e1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/5lb8k1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/5lb8k1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/6idyr1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/6idyr1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/7r0mg1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/7r0mg1230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/894251230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/894251230063727.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/95n7r1230063727.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230063848f4f2czh3o741r0h/95n7r1230063727.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