Home » date » 2010 » Dec » 14 »

WS10: MR

*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, 14 Dec 2010 15:57:38 +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/14/t1292342238taas2sje9nkjap4.htm/, Retrieved Tue, 14 Dec 2010 16:57:18 +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/14/t1292342238taas2sje9nkjap4.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.6000 1.0800 1.0100 1.6100 1.7700 1.3900 1.7700 0.6000 1.0900 1.0000 1.5800 1.7700 1.3500 1.9800 0.6000 1.1000 1.0000 1.6900 1.7700 1.3900 1.9400 0.6000 1.1000 1.0000 1.7800 1.7700 1.3700 1.8500 0.6000 1.1100 1.0600 1.7600 1.7400 1.3800 1.8400 0.6000 1.1000 1.2200 1.8300 1.7800 1.5100 1.8200 0.6000 1.1000 1.2400 1.8000 1.7800 1.5100 1.8300 0.6000 1.1100 1.3400 1.5700 1.7800 1.4500 1.9100 0.6100 1.1100 1.3000 1.4500 1.7800 1.3000 1.8500 0.6100 1.1100 1.0500 1.4000 1.8100 1.2900 1.8100 0.6100 1.1100 1.0000 1.5500 1.8400 1.4400 1.8300 0.6100 1.1100 1.0000 1.5800 1.8000 1.4600 1.7900 0.6100 1.1200 1.0100 1.5800 1.7800 1.5000 1.8000 0.6100 1.1100 1.0200 1.5900 1.7600 1.3900 1.8200 0.6200 1.1100 1.0600 1.8000 1.7400 1.4800 1.8800 0.6200 1.1200 1.0900 1.9900 1.7200 1.5200 2.0100 0.6200 1.1200 1.0900 2.0600 1.7300 1.6800 1.9700 0.6300 1.1100 1.1500 2.0600 1.7700 1.7400 1.9200 0.6300 1.1200 1.2500 2.0800 1.8100 1.7200 1.9800 0.6300 1.1100 1.3700 2.0000 1.8300 1.7400 2.0200 0.6300 1.1100 1.5100 1.8 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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Vruchtesappen[t] = + 0.779774004422962 + 0.546101358198386Mineraalwater[t] + 0.020559397509594Jonagold[t] -0.0531403430145952Sinaasappelen[t] + 0.0514045587408016Citroenen[t] + 0.00879691427214595Pompelmoezen[t] -0.0290627050312829Bananen[t] + 0.00304698650932119M1[t] + 0.00415091425424844M2[t] + 0.0177519317642119M3[t] + 0.0255370161567975M4[t] + 0.0263002308460657M5[t] + 0.0250378353896985M6[t] + 0.0201921664759066M7[t] + 0.0107364495530763M8[t] -0.00110314307674761M9[t] + 0.00187196514910997M10[t] + 0.00263498573687797M11[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.7797740044229620.05314614.672400
Mineraalwater0.5461013581983860.097545.59881e-060
Jonagold0.0205593975095940.0105871.94190.0573770.028688
Sinaasappelen-0.05314034301459520.021163-2.5110.0150630.007532
Citroenen0.05140455874080160.0401791.27940.2062330.103117
Pompelmoezen0.008796914272145950.0169260.51970.6053840.302692
Bananen-0.02906270503128290.0256-1.13530.2612710.130636
M10.003046986509321190.0078380.38870.6990030.349502
M20.004150914254248440.0079310.52340.602850.301425
M30.01775193176421190.0086862.04370.0458760.022938
M40.02553701615679750.0096522.64570.0106570.005329
M50.02630023084606570.0101112.6010.0119670.005984
M60.02503783538969850.0103242.42530.0186710.009336
M70.02019216647590660.0096072.10180.0402540.020127
M80.01073644955307630.0087331.22940.2242480.112124
M9-0.001103143076747610.008563-0.12880.8979690.448984
M100.001871965149109970.0077650.24110.810420.40521
M110.002634985736877970.0080190.32860.7437260.371863


Multiple Linear Regression - Regression Statistics
Multiple R0.788425925938382
R-squared0.621615440691795
Adjusted R-squared0.502494375724397
F-TEST (value)5.21835026291886
F-TEST (DF numerator)17
F-TEST (DF denominator)54
p-value1.53782326195451e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0131791131493992
Sum Squared Residuals0.00937920726385202


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11.081.09746363698664-0.0174636369866352
21.091.09350113641945-0.00350113641945134
31.11.10277110096995-0.00277110096994645
41.11.10821325965859-0.008213259658591
51.111.11010930448954-0.000109304489537039
61.11.11219762392932-0.0121976239293199
71.11.10906672620585-0.00906672620584494
81.111.1110363966685-0.00103639666849946
91.111.11063650804308-0.000636508043082194
101.111.11374545986302-0.00374545986302495
111.111.107789878925540.00221012107445575
121.111.102842947035290.00715705296470941
131.121.105128685865460.0148713141345353
141.111.103329798309960.00667020169003581
151.111.11007460207703-7.46020770304142e-05
161.121.103925436964130.0160745630358663
171.121.104052887714580.015947112285417
181.111.1135222021483-0.0035222021483003
191.121.109806147887490.0101938521125119
201.111.107110307365980.00288969263401576
211.111.11245551107757-0.00245551107757197
221.11.11766543240017-0.0176654324001702
231.11.11612035386309-0.0161203538630898
241.11.12111071989385-0.0211107198938528
251.111.11861593915964-0.00861593915964032
261.11.11915105821195-0.0191510582119503
271.11.11647273613244-0.0164727361324386
281.091.11778464636738-0.0277846463673784
291.11.11491014612512-0.0149101461251176
301.11.10800360512865-0.00800360512865321
311.111.11462420031612-0.00462420031612207
321.131.125299972307830.00470002769216908
331.131.120009270878470.00999072912153351
341.131.124113695292890.00588630470710852
351.131.121359370766680.00864062923331539
361.141.122733378859110.0172666211408879
371.141.121627008236320.0183729917636822
381.141.121288785384030.0187112146159731
391.151.123586404493990.0264135955060138
401.151.126911622175250.0230883778247523
411.151.133806629753820.0161933702461836
421.151.132577995685500.0174220043145016
431.151.139570933058750.0104290669412504
441.151.144741589406190.00525841059381253
451.141.137637256623580.00236274337641909
461.141.126303945572360.0136960544276440
471.141.125073154067660.0149268459323446
481.131.12201179888210.00798820111789947
491.121.119551691046570.000448308953429246
501.131.121027470114460.00897252988554142
511.131.124863542267670.00513645773233391
521.131.129582890907570.000417109092426707
531.121.13009216977519-0.0100921697751864
541.131.13594424897467-0.0059442489746687
551.121.12819853156594-0.00819853156593815
561.121.13367206724672-0.0136720672467200
571.111.12090537865551-0.0109053786555067
581.111.1125430757038-0.00254307570379909
591.111.11185492155119-0.00185492155119041
601.111.11572882358367-0.00572882358367172
611.141.14761303870537-0.00761303870537125
621.151.16170175156015-0.0117017515601486
631.151.16223161405893-0.0122316140589322
641.161.16358214392708-0.00358214392707593
651.151.15702886214176-0.00702886214175953
661.161.147754324133560.0122456758664405
671.131.128733460965860.00126653903414282
681.131.128139667004780.00186033299522211
691.121.118356074721790.00164392527820829
701.121.115628391167760.00437160883224174
711.111.11780232082584-0.0078023208258355
721.111.11557233174597-0.00557233174597229


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2425008331990190.4850016663980370.757499166800981
220.3118204483191060.6236408966382120.688179551680894
230.3642864737569260.7285729475138520.635713526243074
240.3610573189880730.7221146379761470.638942681011927
250.3756868602015850.751373720403170.624313139798415
260.3626831422000230.7253662844000460.637316857799977
270.3140082516338910.6280165032677820.685991748366109
280.4615203161039630.9230406322079270.538479683896037
290.4065695620615940.8131391241231880.593430437938406
300.5548698023535590.8902603952928820.445130197646441
310.5272388560000230.9455222879999540.472761143999977
320.4697248531488150.939449706297630.530275146851185
330.4155253813328010.8310507626656030.584474618667199
340.3621506461246020.7243012922492040.637849353875398
350.2935091954492570.5870183908985140.706490804550743
360.5901170759363030.8197658481273930.409882924063697
370.6258117315308520.7483765369382960.374188268469148
380.7183588974131440.5632822051737120.281641102586856
390.892186055498670.2156278890026580.107813944501329
400.9777036292599320.04459274148013560.0222963707400678
410.9877023010601520.02459539787969620.0122976989398481
420.9846329174873150.03073416502536970.0153670825126849
430.9878964456938750.02420710861225050.0121035543061252
440.9791186719169820.04176265616603670.0208813280830184
450.9691462051406130.06170758971877490.0308537948593875
460.9538734693387780.09225306132244380.0461265306612219
470.9163742296094450.1672515407811100.0836257703905552
480.9865373583433320.02692528331333540.0134626416566677
490.977163452627880.04567309474423840.0228365473721192
500.9383131163102570.1233737673794870.0616868836897434
510.9604086198756570.07918276024868690.0395913801243434


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level70.225806451612903NOK
10% type I error level100.32258064516129NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/1038sw1292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/1038sw1292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/1f7d21292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/1f7d21292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/27yu51292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/27yu51292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/37yu51292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/37yu51292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/47yu51292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/47yu51292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/57yu51292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/57yu51292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/60qtq1292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/60qtq1292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/7bzbt1292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/7bzbt1292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/8bzbt1292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/8bzbt1292342249.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/9bzbt1292342249.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342238taas2sje9nkjap4/9bzbt1292342249.ps (open in new window)


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