Home » date » 2010 » Dec » 14 »

Regression SWS

*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 18:51:23 +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/t1292352567boxnpmiu1ugwz9b.htm/, Retrieved Tue, 14 Dec 2010 19:49:37 +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/t1292352567boxnpmiu1ugwz9b.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 «
6654000 5712000 -999.0 3.3 38.6 645.0 3 5 3 1000 6600 6.3 8.3 4.5 42.0 3 1 3 3385 44500 -999.0 12.5 14.0 60.0 1 1 1 .920 5700 -999.0 16.5 -999.0 25.0 5 2 3 2547000 4603000 2.1 3.9 69.0 624.0 3 5 4 10550 179500 9.1 9.8 27.0 180.0 4 4 4 .023 .300 15.8 19.7 19.0 35.0 1 1 1 160000 169000 5.2 6.2 30.4 392.0 4 5 4 3300 25600 10.9 14.5 28.0 63.0 1 2 1 52160 440000 8.3 9.7 50.0 230.0 1 1 1 .425 6400 11.0 12.5 7.0 112.0 5 4 4 465000 423000 3.2 3.9 30.0 281.0 5 5 5 .550 2400 7.6 10.3 -999.0 -999.0 2 1 2 187100 419000 -999.0 3.1 40.0 365.0 5 5 5 .075 1200 6.3 8.4 3.5 42.0 1 1 1 3000 25000 8.6 8.6 50.0 28.0 2 2 2 .785 3500 6.6 10.7 6.0 42.0 2 2 2 .200 5000 9.5 10.7 10.4 120.0 2 2 2 1410 17500 4.8 6.1 34.0 -999.0 1 2 1 60000 81000 12.0 18.1 7.0 -999.0 1 1 1 529000 680000 -999.0 -999.0 28.0 400.0 5 5 5 27660 115000 3.3 3.8 20.0 148.0 5 5 5 .120 1000 11.0 14.4 3.9 16.0 3 1 2 207000 406000 -999.0 12.0 39.3 252.0 1 4 1 85000 325000 4.7 6.2 41.0 310.0 1 3 1 36330 119500 -999.0 13.0 16.2 63.0 1 1 1 .10 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
SWS[t] = -206.108738872165 -0.000232932176205793bowgth[t] + 0.000184784917571019brwght[t] + 0.782621969799936TS[t] + 0.205789801600120LIFESPAN[t] -0.200024940166107DRAAGTIJD[t] -10.4093369423387PRED[t] -93.0029961022486Exposure[t] + 115.585648380122OverallD[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-206.108738872165110.076253-1.87240.066670.033335
bowgth-0.0002329321762057930.000151-1.54750.1276960.063848
brwght0.0001847849175710190.0001511.22220.2270420.113521
TS0.7826219697999360.1960933.99110.0002030.000102
LIFESPAN0.2057898016001200.198291.03780.3040650.152033
DRAAGTIJD-0.2000249401661070.177845-1.12470.2657780.132889
PRED-10.409336942338790.933213-0.11450.9092960.454648
Exposure-93.002996102248658.258125-1.59640.1163470.058173
OverallD115.585648380122116.1902260.99480.3243550.162178


Multiple Linear Regression - Regression Statistics
Multiple R0.599733851324451
R-squared0.359680692424459
Adjusted R-squared0.263028721469661
F-TEST (value)3.72140049366062
F-TEST (DF numerator)8
F-TEST (DF denominator)53
p-value0.00161974327570036
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation364.6541894185
Sum Squared Residuals7047551.92660455


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1-999-968.52398394278-30.4760160572204
26.316.424616588263-10.1246165882630
3-999-185.838634686241-813.16136531376
4-999-294.022783716410-704.97721628359
52.1-90.286254577713492.3862545777134
69.1-149.482488567655158.582488567655
715.8-181.608587328947197.408587328947
85.2-323.760481119409328.960481119409
910.9-278.468040154102289.368040154101
108.3-152.904615167415161.204615167415
1111-177.821780060988188.821780060988
123.2-222.372692454096225.572692454096
137.6-86.01384669301393.6138466930129
14-999-173.750274890582-825.249725109418
156.3-194.820457740514201.120457740514
168.6-166.421941094802175.021941094802
176.6-179.907797441871186.507797441871
189.5-194.326954006107203.826954006107
194.8-72.437355453711277.2373554537112
201222.4871257047958-10.4871257047958
21-999-998.896748910838-0.103251089161781
223.3-152.948732295017156.248732295017
2311-90.1117545267733101.111754526773
24-999-479.065977865516-519.934022134484
254.7-388.403645881167393.103645881167
26-999-179.409742685593-819.590257314407
2710.43.389234671383117.0107653286169
287.4-79.667944073503787.0679440735037
292.1-201.038150298478203.138150298478
30-999-195.157894285487-803.842105714513
31-999-1022.8996045627023.8996045626970
327.721.5375796331292-13.8375796331292
3317.9-183.423494240606201.323494240606
346.18.97216962641719-2.87216962641719
358.2-407.079401267605415.279401267605
368.4-188.220269310851196.620269310851
3711.913.1965944564489-1.29659445644886
3810.810.43630480653290.363695193467061
3913.8-189.765084257695203.565084257695
4014.3-212.212082820935226.512082820935
41-999-977.9242788216-21.0757211783997
4215.2-191.127494303643206.327494303643
4310-159.811240136512169.811240136512
4411.9-77.03314973975388.9331497397531
456.5-179.749689128334186.249689128334
467.5-139.511127302423147.011127302423
47-999-175.516828929926-823.483171070074
4810.623.8655237867042-13.2655237867042
497.4-186.323592986199193.723592986199
508.4-262.595557887089270.995557887089
515.7-217.889206339597223.589206339597
524.9-113.088583419515117.988583419515
53-999-155.021164738382-843.978835261618
543.2-148.946543846824152.146543846824
55-999-186.558274244974-812.441725755026
568.1109.622507720936-101.522507720936
5711-88.945451056546999.9454510565469
584.9-16.011216411651720.9112164116517
5913.2-188.071910655574201.271910655574
609.7-83.676217934593.3762179345
6112.8-191.439475460568204.239475460568
62-999-999.321157271880.321157271880114


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
120.8014204557558390.3971590884883220.198579544244161
130.7818657303695610.4362685392608770.218134269630439
140.9592376184478720.08152476310425580.0407623815521279
150.94186102820820.1162779435836020.058138971791801
160.9050810366422360.1898379267155280.0949189633577642
170.8578683368674650.2842633262650710.142131663132535
180.8086681571372020.3826636857255960.191331842862798
190.7854050089721230.4291899820557540.214594991027877
200.7464760689063940.5070478621872120.253523931093606
210.6773122069392570.6453755861214850.322687793060743
220.5941474024505520.8117051950988960.405852597549448
230.5407454250100990.9185091499798030.459254574989901
240.6065987373743780.7868025252512440.393401262625622
250.6279276188836820.7441447622326370.372072381116319
260.8513830290762980.2972339418474040.148616970923702
270.8028520972802690.3942958054394620.197147902719731
280.7382792094546520.5234415810906950.261720790545348
290.6776535918452340.6446928163095320.322346408154766
300.8804276474604930.2391447050790140.119572352539507
310.8573073724950560.2853852550098890.142692627504944
320.803159239803950.3936815203921010.196840760196050
330.7640059316233440.4719881367533130.235994068376657
340.7083427145460490.5833145709079010.291657285453951
350.725989092575810.5480218148483810.274010907424191
360.6598794617599950.680241076480010.340120538240005
370.5865407775722080.8269184448555850.413459222427792
380.5281755055649380.9436489888701250.471824494435062
390.4525927701777710.9051855403555410.54740722982223
400.3792945936865040.7585891873730080.620705406313496
410.292277845705020.584555691410040.70772215429498
420.2561777080729700.5123554161459410.74382229192703
430.1964606495875870.3929212991751750.803539350412413
440.1383632613296710.2767265226593420.861636738670329
450.0896982243551940.1793964487103880.910301775644806
460.3140033896032040.6280067792064070.685996610396796
470.5063910971718370.9872178056563270.493608902828163
480.3861057540172240.7722115080344480.613894245982776
490.2605717626225880.5211435252451760.739428237377412
500.1658034525029050.331606905005810.834196547497095


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level10.0256410256410256OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/10gmi81292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/10gmi81292352675.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/2s33w1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/2s33w1292352675.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/3s33w1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/3s33w1292352675.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/43u2h1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/43u2h1292352675.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/53u2h1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/53u2h1292352675.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/63u2h1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/63u2h1292352675.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/86d1n1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/86d1n1292352675.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/96d1n1292352675.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292352567boxnpmiu1ugwz9b/96d1n1292352675.ps (open in new window)


 
Parameters (Session):
par1 = 3 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 3 ; 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