Home » date » 2009 » Nov » 17 »

*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, 17 Nov 2009 09:47:07 -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/17/t12584764532ydpyv80hluodqs.htm/, Retrieved Tue, 17 Nov 2009 17:47:44 +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/17/t12584764532ydpyv80hluodqs.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 «
20604.6 2.05 18714.9 2.03 18492.6 2.04 18183.6 2.03 19435.1 2.01 22686.8 2.01 20396.7 2.01 19233.6 2.01 22751 2.01 19864 2.01 17165.4 2.02 22309.7 2.02 21786.3 2.03 21927.6 2.05 20957.9 2.08 19726 2.07 21315.7 2.06 24771.5 2.05 22592.4 2.05 21942.1 2.05 23973.7 2.05 20815.7 2.05 19931.4 2.06 24436.8 2.06 22838.7 2.07 24465.3 2.07 23007.3 2.3 22720.8 2.31 23045.7 2.31 27198.5 2.53 22401.9 2.58 25122.7 2.59 26100.5 2.73 22904.9 2.82 22040.4 3 25981.5 3.04 26157.1 3.23 25975.4 3.32 22589.8 3.49 25370.4 3.57 25091.1 3.56 28760.9 3.72 24325.9 3.82 25821.7 3.82 27645.7 3.98 26296.9 4.06 24141.5 4.08 27268.1 4.19 29060.3 4.16 28226.4 4.17 23268.5 4.21 26938.2 4.21 27217.5 4.17 27540.5 4.19 29167.6 4.25 26671.5 4.25 30184 4.2 28422.3 4.33 23774.3 4.41 29601 4.56 28523.6 5.18 23622 3.42 21320.3 2.71 20423.6 2.29 21174.9 2 23050.2 1.64 21202.9 1.3 20476.4 1.08 23173.3 1 22468 1 19842.7 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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 18289.7802466385 + 2000.13295416083X[t] -805.032576467682M1[t] -1293.75184128471M2[t] -3468.53612684340M3[t] -2766.41775331888M4[t] -2025.76560328049M5[t] + 716.711016480509M6[t] -1595.7088183142M7[t] -1697.8602137201M8[t] + 636.579970443811M9[t] -1675.08272606575M10[t] -4123.36208924199M11[t] + 35.5893821348614t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)18289.7802466385781.62134423.399800
X2000.13295416083170.61844611.722800
M1-805.032576467682813.59104-0.98950.326610.163305
M2-1293.75184128471814.295708-1.58880.1176380.058819
M3-3468.53612684340814.616086-4.25797.8e-053.9e-05
M4-2766.41775331888815.4056-3.39270.0012640.000632
M5-2025.76560328049816.549286-2.48090.0160810.00804
M6716.711016480509816.7812360.87750.3839080.191954
M7-1595.7088183142817.58516-1.95170.0558890.027945
M8-1697.8602137201818.801181-2.07360.0426470.021323
M9636.579970443811818.8367350.77740.4401260.220063
M10-1675.08272606575818.520758-2.04650.0453320.022666
M11-4123.36208924199818.310266-5.03895e-063e-06
t35.58938213486148.6295954.12410.0001226.1e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.922305259300235
R-squared0.850646991332874
Adjusted R-squared0.81658402444388
F-TEST (value)24.9727803836058
F-TEST (DF numerator)13
F-TEST (DF denominator)57
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1341.95811085843
Sum Squared Residuals102648539.564028


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
120604.621620.6096083354-1016.00960833543
218714.921127.4770665700-2412.57706657003
318492.619008.2834926878-515.683492687790
418183.619725.9899188056-1542.38991880557
519435.120462.2287918956-1027.12879189560
622686.823240.2947937915-553.494793791462
720396.720963.4643411316-566.764341131614
819233.620896.9023278606-1663.30232786058
92275123266.9318941594-515.931894159351
101986420990.8585797846-1126.85857978465
1117165.418598.1699282849-1432.76992828487
1222309.722757.1213996617-447.421399661726
1321786.322007.6795348705-221.379534870516
1421927.621594.5523112716333.047688728432
1520957.919515.36139647261442.53860352744
161972620233.0678225903-507.067822590333
1721315.720989.3080252220326.391974778024
1824771.523747.37269757621024.12730242377
1922592.421470.54224491641121.85775508362
2021942.121403.9802316453538.119768354654
2123973.723774.0097979441199.69020205588
2220815.721497.9364835694-682.236483569412
2319931.419105.2478320697826.152167930353
2424436.823264.19930344651172.6006965535
2522838.722514.7574386553323.942561344714
2624465.322061.62755597312403.67244402688
2723007.320382.46323200632624.83676799372
2822720.821140.17231720731580.62768279273
2923045.721916.41384938051129.28615061948
3027198.525134.50910119182063.99089880823
3122401.922957.6852962400-555.785296239958
3225122.722911.12461251052211.57538748947
3326100.525561.1727923918539.327207608178
3422904.923465.1114438916-560.211443891587
3522040.421412.4453945992627.954605400836
3625981.525651.4021841424330.097815857552
3726157.125261.9842511002895.115748899812
3825975.424988.8663342925986.533665707505
3922589.823189.694033076-599.894033076004
4025370.424087.41242506831282.98757493175
4125091.124843.6526276999247.447372300104
4228760.927941.7399022615819.16009773851
4324325.925864.9227450177-1539.02274501772
4425821.725798.360731746723.3392682533148
4527645.728488.4115707112-842.711570711195
4626296.926372.3488926694-75.448892669352
4724141.523999.6615707112141.838429288803
4827268.128378.6276670457-1110.52766704574
4929060.327549.18048408811511.11951591190
5028226.427116.05193094751110.34806905246
5123268.525056.8623456901-1788.36234569014
5226938.225794.57010134951143.62989865048
5327217.526490.8063153563726.693684643663
5427540.529308.8749763354-1768.37497633542
5529167.627152.05250092522015.54749907478
5626671.527085.4904876542-413.99048765418
573018429355.5134062449828.486593755084
5828422.327339.45737591111082.84262408888
5923774.325086.7780312026-1312.47803120261
602960129545.749445703655.2505542964189
6128523.630016.3886829505-1492.78868295048
622362226043.0248009453-2421.02480094525
6321320.322483.7355000672-1163.43550006723
6420423.622381.3874149791-1957.78741497906
6521174.922577.5903904457-1402.69039044567
6623050.224635.6085288436-1585.40852884364
6721202.921678.7328717691-475.832871769106
6820476.421172.1416085827-695.741608582684
6923173.323382.1605385486-208.860538548597
702246821106.08722417391361.91277582611
7119842.718693.39724313251149.30275686749


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1413416954784320.2826833909568650.858658304521568
180.05552555935572620.1110511187114520.944474440644274
190.01959938721741840.03919877443483680.980400612782582
200.008532801785463070.01706560357092610.991467198214537
210.007187123617614920.01437424723522980.992812876382385
220.009081016475988730.01816203295197750.990918983524011
230.005488134674617140.01097626934923430.994511865325383
240.002099960815335890.004199921630671780.997900039184664
250.002744186718686710.005488373437373420.997255813281313
260.005586100642457770.01117220128491550.994413899357542
270.004254069433896250.00850813886779250.995745930566104
280.001977160053708520.003954320107417050.998022839946291
290.001304579437383230.002609158874766460.998695420562617
300.0008217034979631710.001643406995926340.999178296502037
310.00490310933941250.0098062186788250.995096890660587
320.01265290238518070.02530580477036140.98734709761482
330.006946530177493550.01389306035498710.993053469822506
340.006704393277672340.01340878655534470.993295606722328
350.004109645174714630.008219290349429260.995890354825285
360.002167197601686860.004334395203373730.997832802398313
370.001157915387707980.002315830775415960.998842084612292
380.0005939170361552620.001187834072310520.999406082963845
390.001861984989708450.00372396997941690.998138015010292
400.002319903572390660.004639807144781320.99768009642761
410.001132467031386670.002264934062773340.998867532968613
420.001116586784968110.002233173569936220.998883413215032
430.002889874729661190.005779749459322380.99711012527034
440.001415095037582320.002830190075164640.998584904962418
450.001332937146217840.002665874292435680.998667062853782
460.00448472369954520.00896944739909040.995515276300455
470.004142056196117260.008284112392234520.995857943803883
480.03030729469038310.06061458938076620.969692705309617
490.03321973310614970.06643946621229940.96678026689385
500.02180333414535270.04360666829070550.978196665854647
510.2693961954110290.5387923908220590.73060380458897
520.1840410402090570.3680820804181150.815958959790942
530.1065589651081420.2131179302162830.893441034891858
540.808621909690660.3827561806186810.191378090309341


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.526315789473684NOK
5% type I error level300.789473684210526NOK
10% type I error level320.842105263157895NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/10x6kl1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/10x6kl1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/1hup41258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/1hup41258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/2ultp1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/2ultp1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/3sx641258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/3sx641258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/4avxo1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/4avxo1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/5w6ix1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/5w6ix1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/6ju8h1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/6ju8h1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/7mhra1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/7mhra1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/8dsdc1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/8dsdc1258476422.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/940ye1258476422.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t12584764532ydpyv80hluodqs/940ye1258476422.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