Home » date » 2009 » Nov » 20 »

Seatbelt Law part 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 11:54:44 -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/20/t1258743312i2tyuyfl9el01u8.htm/, Retrieved Fri, 20 Nov 2009 19:55:24 +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/20/t1258743312i2tyuyfl9el01u8.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 «
519164 0,9 517009 1,3 509933 1,4 509127 1,5 500857 1,1 506971 1,6 569323 1,5 579714 1,6 577992 1,7 565464 1,6 547344 1,7 554788 1,6 562325 1,6 560854 1,3 555332 1,1 543599 1,6 536662 1,9 542722 1,6 593530 1,7 610763 1,6 612613 1,4 611324 2,1 594167 1,9 595454 1,7 590865 1,8 589379 2 584428 2,5 573100 2,1 567456 2,1 569028 2,3 620735 2,4 628884 2,4 628232 2,3 612117 1,7 595404 2 597141 2,3 593408 2 590072 2 579799 1,3 574205 1,7 572775 1,9 572942 1,7 619567 1,6 625809 1,7 619916 1,8 587625 1,9 565742 1,9 557274 1,9 560576 2 548854 2,1 531673 1,9 525919 1,9 511038 1,3 498662 1,3 555362 1,4 564591 1,2 541657 1,3 527070 1,8 509846 2,2 514258 2,6 516922 2,8 507561 3,1 492622 3,9 490243 3,7 469357 4,6 477580 5,1 528379 5,2 533590 4,9 517945 5,1 506174 4,8 501866 3,9 516141 3,5
 
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
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
TWIB[t] = + 590737.37772413 -15986.3450682317`GI `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)590737.3777241310340.35358257.129300
`GI `-15986.34506823174312.694333-3.70680.0004160.000208


Multiple Linear Regression - Regression Statistics
Multiple R0.405072588600541
R-squared0.164083802035543
Adjusted R-squared0.152142142064622
F-TEST (value)13.7404516989350
F-TEST (DF numerator)1
F-TEST (DF denominator)70
p-value0.000416220845781301
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation37681.9910683079
Sum Squared Residuals99395271561.0424


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1519164576349.667162721-57185.6671627208
2517009569955.129135428-52946.1291354283
3509933568356.494628605-58423.4946286051
4509127566757.860121782-57630.8601217819
5500857573152.398149075-72295.3981490746
6506971565159.225614959-58188.2256149588
7569323566757.8601217822565.13987821805
8579714565159.22561495914554.7743850412
9577992563560.59110813614431.4088918644
10565464565159.225614959304.774385041221
11547344563560.591108136-16216.5911081356
12554788565159.225614959-10371.2256149588
13562325565159.225614959-2834.22561495878
14560854569955.129135428-9101.1291354283
15555332573152.398149075-17820.3981490746
16543599565159.225614959-21560.2256149588
17536662560363.322094489-23701.3220944893
18542722565159.225614959-22437.2256149588
19593530563560.59110813629969.4088918644
20610763565159.22561495945603.7743850412
21612613568356.49462860544256.5053713949
22611324557166.05308084354157.9469191571
23594167560363.32209448933803.6779055107
24595454563560.59110813631893.4088918644
25590865561961.95660131228903.0433986876
26589379558764.68758766630614.3124123339
27584428550771.5150535533656.4849464498
28573100557166.05308084315933.9469191571
29567456557166.05308084310289.9469191571
30569028553968.78406719715059.2159328034
31620735552370.14956037368364.8504396266
32628884552370.14956037376513.8504396266
33628232553968.78406719774263.2159328034
34612117563560.59110813648556.4088918644
35595404558764.68758766636639.3124123339
36597141553968.78406719743172.2159328034
37593408558764.68758766634643.3124123339
38590072558764.68758766631307.3124123339
39579799569955.1291354289843.8708645717
40574205563560.59110813610644.4088918644
41572775560363.32209448912411.6779055107
42572942563560.5911081369381.4088918644
43619567565159.22561495954407.7743850412
44625809563560.59110813662248.4088918644
45619916561961.95660131257954.0433986876
46587625560363.32209448927261.6779055107
47565742560363.3220944895378.67790551074
48557274560363.322094489-3089.32209448926
49560576558764.6875876661811.31241233392
50548854557166.053080843-8312.05308084291
51531673560363.322094489-28690.3220944893
52525919560363.322094489-34444.3220944893
53511038569955.129135428-58917.1291354283
54498662569955.129135428-71293.1291354283
55555362568356.494628605-12994.4946286051
56564591571553.763642251-6962.76364225148
57541657569955.129135428-28298.1291354283
58527070561961.956601312-34891.9566013124
59509846555567.41857402-45721.4185740197
60514258549172.880546727-34914.8805467270
61516922545975.611533081-29053.6115330807
62507561541179.708012611-33618.7080126112
63492622528390.631958026-35768.6319580258
64490243531587.900971672-41344.9009716721
65469357517200.190410264-47843.1904102636
66477580509207.017876148-31627.0178761477
67528379507608.38336932420770.6166306755
68533590512404.28688979421185.7131102060
69517945509207.0178761488737.9821238523
70506174514002.921396617-7828.92139661722
71501866528390.631958026-26524.6319580258
72516141534785.169985318-18644.1699853185


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.0169135105932750.033827021186550.983086489406725
60.003584119957935880.007168239915871760.996415880042064
70.2376720487661630.4753440975323270.762327951233837
80.3845380407681160.7690760815362320.615461959231884
90.3542248726451950.7084497452903910.645775127354805
100.2781948530724960.5563897061449920.721805146927504
110.1999977351364530.3999954702729050.800002264863547
120.1369303575586130.2738607151172270.863069642441387
130.09525962141031480.1905192428206300.904740378589685
140.09695436748916250.1939087349783250.903045632510837
150.1057807920066170.2115615840132330.894219207993383
160.07466778562595870.1493355712519170.925332214374041
170.06757541753878870.1351508350775770.932424582461211
180.04705913320453870.09411826640907730.952940866795461
190.06124035637198150.1224807127439630.938759643628019
200.1323798526432270.2647597052864530.867620147356773
210.2622680711910720.5245361423821440.737731928808928
220.2547236825825530.5094473651651070.745276317417447
230.2136194581834340.4272389163668680.786380541816566
240.1938469035089870.3876938070179730.806153096491014
250.1577020340853170.3154040681706350.842297965914683
260.1218320885328670.2436641770657340.878167911467133
270.1175418583437520.2350837166875050.882458141656248
280.08998373768328520.1799674753665700.910016262316715
290.06906460802685690.1381292160537140.930935391973143
300.05570323932045550.1114064786409110.944296760679544
310.06663175558995760.1332635111799150.933368244410042
320.09910579000918660.1982115800183730.900894209990813
330.1524721570930610.3049443141861210.84752784290694
340.2064122091223530.4128244182447060.793587790877647
350.1927196711563560.3854393423127120.807280328843644
360.1950672655802620.3901345311605240.804932734419738
370.1860056481492310.3720112962984620.813994351850769
380.1743401124188940.3486802248377880.825659887581106
390.1667421213730030.3334842427460050.833257878626997
400.1348130887278660.2696261774557330.865186911272134
410.1100135838222110.2200271676444220.88998641617779
420.08676044566491650.1735208913298330.913239554335084
430.2111405083937300.4222810167874590.78885949160627
440.5104572643496990.9790854713006020.489542735650301
450.8365859743999560.3268280512000880.163414025600044
460.913219261813240.1735614763735210.0867807381867603
470.9274229724610330.1451540550779330.0725770275389666
480.9322904191108470.1354191617783050.0677095808891525
490.949581096518140.1008378069637190.0504189034818597
500.9574137057289580.08517258854208370.0425862942710418
510.9518233271965370.09635334560692680.0481766728034634
520.9452378641709570.1095242716580860.0547621358290432
530.9399086004222480.1201827991555040.0600913995777521
540.9647119173515410.07057616529691750.0352880826484588
550.9577990253336560.08440194933268850.0422009746663442
560.9743754340531070.05124913189378560.0256245659468928
570.970490705440240.05901858911951970.0295092945597599
580.9641906219247620.0716187561504750.0358093780752375
590.9593988794852930.0812022410294140.040601120514707
600.9553496867283940.08930062654321160.0446503132716058
610.9503952006918180.0992095986163640.049604799308182
620.9363182477678710.1273635044642580.0636817522321288
630.911558541867840.1768829162643200.0884414581321601
640.8692546218349170.2614907563301650.130745378165083
650.9249682013449930.1500635973100130.0750317986550066
660.984716153000730.03056769399853790.0152838469992690
670.9515522581929390.09689548361412280.0484477418070614


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0158730158730159NOK
5% type I error level30.0476190476190476OK
10% type I error level150.238095238095238NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/10nqkz1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/10nqkz1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/10sgb1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/10sgb1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/2i1l71258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/2i1l71258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/336ck1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/336ck1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/4bzr11258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/4bzr11258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/55dpe1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/55dpe1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/6ci1m1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/6ci1m1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/7ethf1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/7ethf1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/8rszu1258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/8rszu1258743279.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/9t3041258743279.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258743312i2tyuyfl9el01u8/9t3041258743279.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