Home » date » 2009 » Nov » 21 »

Multiple Regression model 1

*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: Fri, 20 Nov 2009 16:43:08 -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/21/t1258761845naxgi4u0n23q7sh.htm/, Retrieved Sat, 21 Nov 2009 01:04:16 +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/21/t1258761845naxgi4u0n23q7sh.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 «
8.4 99 8.4 98.6 8.4 98.6 8.6 98.5 8.9 98.9 8.8 99.4 8.3 99.8 7.5 99.9 7.2 100 7.4 100.1 8.8 100.1 9.3 100.2 9.3 100.3 8.7 100 8.2 99.9 8.3 99.4 8.5 99.8 8.6 99.6 8.5 100 8.2 99.9 8.1 100.3 7.9 100.6 8.6 100.7 8.7 100.8 8.7 100.8 8.5 100.6 8.4 101.1 8.5 101.1 8.7 100.9 8.7 101.1 8.6 101.2 8.5 101.4 8.3 101.9 8 102.1 8.2 102.1 8.1 103 8.1 103.4 8 103.2 7.9 103.1 7.9 103 8 103.7 8 103.4 7.9 103.5 8 103.8 7.7 104 7.2 104.2 7.5 104.4 7.3 104.4 7 104.9 7 105.3 7 105.2 7.2 105.4 7.3 105.4 7.1 105.5 6.8 105.7 6.4 105.6 6.1 105.8 6.5 105.4 7.7 105.5 7.9 105.8 7.5 106.1 6.9 106 6.6 105.5 6.9 105.4 7.7 106 8 106.1 8 106.4 7.7 106 7.3 106 7.4 106 8.1 106 8.3 106.1 8.2 106.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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
werkl[t] = + 26.928348083077 -0.184940580085961afzetp[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)26.9283480830772.3518711.449800
afzetp-0.1849405800859610.022887-8.080500


Multiple Linear Regression - Regression Statistics
Multiple R0.6921468536664
R-squared0.479067267040296
Adjusted R-squared0.471730186294385
F-TEST (value)65.2939886626248
F-TEST (DF numerator)1
F-TEST (DF denominator)71
p-value1.18598464382558e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.505111309201547
Sum Squared Residuals18.1147578625144


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
18.48.61923065456692-0.219230654566918
28.48.69320688660125-0.293206886601253
38.48.69320688660125-0.293206886601253
48.68.71170094460985-0.111700944609849
58.98.637724712575460.262275287424537
68.88.545254422532480.254745577467518
78.38.4712781904981-0.171278190498099
87.58.4527841324895-0.952784132489502
97.28.4342900744809-1.23429007448091
107.48.41579601647231-1.01579601647231
118.88.415796016472310.384203983527689
129.38.397301958463710.902698041536286
139.38.378807900455120.921192099544881
148.78.43429007448090.265709925519092
158.28.4527841324895-0.252784132489503
168.38.54525442253248-0.245254422532482
178.58.47127819049810.0287218095019002
188.68.508266306515290.0917336934847071
198.58.43429007448090.0657099255190929
208.28.4527841324895-0.252784132489503
218.18.37880790045512-0.278807900455120
227.98.32332572642933-0.423325726429331
238.68.304831668420730.295168331579266
248.78.286337610412140.413662389587861
258.78.286337610412140.413662389587861
268.58.323325726429330.176674273570669
278.48.230855436386350.169144563613649
288.58.230855436386350.269144563613649
298.78.267843552403540.432156447596458
308.78.230855436386350.469144563613648
318.68.212361378377750.387638621622246
328.58.175373262360560.324626737639440
338.38.082902972317580.217097027682421
3488.04591485630039-0.0459148563003898
358.28.045914856300390.154085143699610
368.17.879468334223020.220531665776976
378.17.805492102188640.294507897811361
3887.842480218205830.157519781794169
397.97.860974276214430.0390257237855717
407.97.879468334223020.0205316657769767
4187.750009928162850.249990071837150
4287.805492102188640.194507897811362
437.97.786998044180040.113001955819957
4487.731515870154260.268484129845745
457.77.694527754137060.00547224586293761
467.27.65753963811987-0.45753963811987
477.57.62055152210268-0.120551522102677
487.37.62055152210268-0.320551522102677
4977.5280812320597-0.528081232059696
5077.45410500002531-0.454105000025314
5177.47259905803391-0.472599058033909
527.27.43561094201672-0.235610942016716
537.37.43561094201672-0.135610942016716
547.17.41711688400812-0.317116884008121
556.87.38012876799093-0.580128767990928
566.47.39862282599953-0.998622825999525
576.17.36163470998233-1.26163470998233
586.57.43561094201672-0.935610942016716
597.77.417116884008120.282883115991879
607.97.361634709982330.538365290017667
617.57.306152535956540.193847464043455
626.97.32464659396514-0.42464659396514
636.67.41711688400812-0.817116884008121
646.97.43561094201672-0.535610942016716
657.77.324646593965140.37535340603486
6687.306152535956550.693847464043455
6787.250670361930760.749329638069245
687.77.324646593965140.37535340603486
697.37.32464659396514-0.0246465939651404
707.47.324646593965140.0753534060348602
718.17.324646593965140.77535340603486
728.37.306152535956550.993847464043455
738.27.306152535956550.893847464043454


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1203080411598090.2406160823196170.879691958840191
60.04597748279735310.09195496559470630.954022517202647
70.05121548942821820.1024309788564360.948784510571782
80.2433886944746960.4867773889493920.756611305525304
90.4134576696862820.8269153393725640.586542330313718
100.3910695352966660.7821390705933320.608930464703334
110.7164655015396960.5670689969206080.283534498460304
120.944071827070370.1118563458592610.0559281729296306
130.9814815841122810.03703683177543700.0185184158877185
140.972841856213880.05431628757223970.0271581437861198
150.9606052532732560.07878949345348740.0393947467267437
160.9441071944902410.1117856110195180.0558928055097588
170.9186949415068650.1626101169862700.0813050584931351
180.8876598422429330.2246803155141340.112340157757067
190.8472136813002380.3055726373995250.152786318699763
200.8137157020807250.3725685958385510.186284297919275
210.7832384114958590.4335231770082830.216761588504141
220.7772621162936960.4454757674126080.222737883706304
230.7362789026911740.5274421946176520.263721097308826
240.7004337035217740.5991325929564510.299566296478226
250.656676670530270.686646658939460.34332332946973
260.5900740924603850.8198518150792310.409925907539615
270.5191745296713520.9616509406572970.480825470328648
280.4502245162518850.900449032503770.549775483748115
290.3998497437969760.7996994875939520.600150256203024
300.3536328811602140.7072657623204280.646367118839786
310.3009915187948890.6019830375897790.69900848120511
320.2498349678655820.4996699357311640.750165032134418
330.2060284105475350.412056821095070.793971589452465
340.1808292000887150.3616584001774290.819170799911285
350.1443394631874280.2886789263748550.855660536812572
360.1167766808545670.2335533617091350.883223319145433
370.09483045517064520.1896609103412900.905169544829355
380.07539013894759230.1507802778951850.924609861052408
390.05956563200342970.1191312640068590.94043436799657
400.04635429430976680.09270858861953350.953645705690233
410.03756426622842610.07512853245685220.962435733771574
420.03239288880960170.06478577761920340.967607111190398
430.02994984118574840.05989968237149690.970050158814252
440.03817930951778770.07635861903557540.961820690482212
450.04768746432787100.09537492865574190.95231253567213
460.05797019528664740.1159403905732950.942029804713353
470.07789095635105460.1557819127021090.922109043648945
480.1442463440481310.2884926880962620.855753655951869
490.1725959537997150.345191907599430.827404046200285
500.1542857361317110.3085714722634220.845714263868289
510.1452132209394760.2904264418789520.854786779060524
520.1254682952580990.2509365905161970.874531704741901
530.1240403941020290.2480807882040580.875959605897971
540.1002206722600850.2004413445201710.899779327739915
550.08846991844528680.1769398368905740.911530081554713
560.1290072644898560.2580145289797120.870992735510144
570.5357715240639570.9284569518720860.464228475936043
580.5572174264906940.8855651470186120.442782573509306
590.6540747954864850.691850409027030.345925204513515
600.7280493589347220.5439012821305570.271950641065278
610.6846209530185270.6307580939629450.315379046981473
620.8600418860389050.279916227922190.139958113961095
630.862934255586660.2741314888266780.137065744413339
640.7914626652276040.4170746695447930.208537334772396
650.7048182441547890.5903635116904230.295181755845211
660.616725096239420.7665498075211610.383274903760581
670.7926082266749280.4147835466501440.207391773325072
680.6496996414512380.7006007170975250.350300358548762


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.015625OK
10% type I error level100.15625NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/1070li1258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/1070li1258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/1mezo1258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/1mezo1258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/24g701258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/24g701258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/3lr2c1258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/3lr2c1258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/4evak1258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/4evak1258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/5nbg61258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/5nbg61258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/6593o1258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/6593o1258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/7doc21258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/7doc21258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/867501258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/867501258760583.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/9fe7q1258760583.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/21/t1258761845naxgi4u0n23q7sh/9fe7q1258760583.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by