Home » date » 2009 » Nov » 27 »

verbetering

*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, 27 Nov 2009 03:19:49 -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/27/t1259317300tcxpdc48q5bfocq.htm/, Retrieved Fri, 27 Nov 2009 11:21:52 +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/27/t1259317300tcxpdc48q5bfocq.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 «
455626 0 454724 461251 470390 474605 516847 0 455626 454724 461251 470390 525192 0 516847 455626 454724 461251 522975 0 525192 516847 455626 454724 518585 0 522975 525192 516847 455626 509239 0 518585 522975 525192 516847 512238 0 509239 518585 522975 525192 519164 0 512238 509239 518585 522975 517009 0 519164 512238 509239 518585 509933 0 517009 519164 512238 509239 509127 0 509933 517009 519164 512238 500875 0 509127 509933 517009 519164 506971 0 500875 509127 509933 517009 569323 0 506971 500875 509127 509933 579714 0 569323 506971 500875 509127 577992 0 579714 569323 506971 500875 565644 0 577992 579714 569323 506971 547344 0 565644 577992 579714 569323 554788 0 547344 565644 577992 579714 562325 0 554788 547344 565644 577992 560854 0 562325 554788 547344 565644 555332 0 560854 562325 554788 547344 543599 0 555332 560854 562325 554788 536662 0 543599 555332 560854 562325 542722 0 536662 543599 555332 560854 593530 0 542722 536662 543599 555332 610763 0 593530 542722 536662 543599 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkzoekend[t] = + 4526.95980827144 + 9592.97406000194Crisis[t] + 1.01480015176834`y-1`[t] + 0.0185295723351084`y-2`[t] + 0.0183146040141146`y-3`[t] -0.0676007411428346`y-4`[t] + 10538.1631793460M1[t] + 63094.8479288806M2[t] + 17031.705529519M3[t] -2023.71654495441M4[t] -9391.24766424685M5[t] -7193.07284145974M6[t] + 12555.8033114798M7[t] + 12663.4218611850M8[t] + 5037.51185249125M9[t] -1351.76601434561M10[t] + 2791.41971788684M11[t] -110.182403005296t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)4526.9598082714410559.9270590.42870.6696090.334805
Crisis9592.974060001943599.2396422.66530.009760.00488
`y-1`1.014800151768340.1238498.193900
`y-2`0.01852957233510840.1772660.10450.9170810.458541
`y-3`0.01831460401411460.1762110.10390.917550.458775
`y-4`-0.06760074114283460.129679-0.52130.603990.301995
M110538.16317934603432.536293.07010.0031560.001578
M263094.84792888063462.55551218.22200
M317031.7055295198209.1628452.07470.0421030.021052
M4-2023.716544954418547.234565-0.23680.8136050.406802
M5-9391.247664246858524.890209-1.10160.2748150.137407
M6-7193.072841459743922.678962-1.83370.0714210.03571
M712555.80331147983632.8900193.45610.0009860.000493
M812663.42186118503799.6377353.33280.0014430.000721
M95037.511852491254067.141991.23860.2200930.110047
M10-1351.766014345613813.412033-0.35450.7241650.362083
M112791.419717886843631.48790.76870.4449610.22248
t-110.18240300529643.090195-2.5570.0129780.006489


Multiple Linear Regression - Regression Statistics
Multiple R0.991865523199382
R-squared0.983797216111585
Adjusted R-squared0.97942503633217
F-TEST (value)225.012983396471
F-TEST (DF numerator)17
F-TEST (DF denominator)63
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5949.54546237874
Sum Squared Residuals2230016746.16143


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1455626461487.065398564-5861.06539856394
2516847514845.534921192001.46507881029
3525192531314.267637383-6122.26763738304
4522975522209.319184599765.680815401193
5518585513696.6855108044888.31448919558
6509239507302.8755994491936.12440055141
7512238516771.170646469-4533.17064646858
8519164519708.284796769-544.284796769401
9517009519181.867388152-2172.86738815207
10509933511310.570633401-1377.57063340137
11509127508047.0291850481079.97081495201
12500875503688.712183182-2813.71218318166
13506971505743.7127309871227.28726901320
14569323564687.1120452784635.88795472203
15579714581804.916663962-2090.91666396214
16577992575008.9435997282983.05640027234
17565644566706.1430737-1062.14307370030
18547344552206.740934458-4862.74093445822
19554788552311.811698512476.18830148956
20562325559414.5887471232910.41125287702
21560854559964.555913938889.444086062061
22555332553485.4094827291846.59051727079
23543599551522.246626374-7923.24662637376
24536662536075.226457851586.773542149097
25542722539244.4385560223477.56144397808
26593530597870.496222672-4340.49622267192
27610763604035.5378274856727.4621725154
28612613603879.3677182658733.63228173472
29611324599119.22250621312204.7774937866
30594167596814.374354176-2647.37435417593
31595454597887.175726792-2433.17572679247
32590865598724.078900576-7859.07890057624
33589379586127.8298462713251.17015372944
34584428579218.7411546095209.25884539137
35573100578028.886116269-4928.88611626914
36567456563822.8922630543633.10773694639
37569028568323.217084266704.782915733981
38620735622387.627798242-1652.62779824216
39628884629378.116501682-494.116501682007
40628232619850.5561982158381.44380178468
41612117612702.915326605-585.915326604691
42595404595079.136205316324.863794684324
43597141596896.051399175244.948600824753
44593408598095.446506598-4687.44650659767
45590072587386.5849621222685.41503787758
46579799578594.2041463471204.79585365316
47574205571954.5599589982250.44004100191
48572775563377.067540219397.93245978958
49572942572287.599817295654.400182704756
50619567625469.087019636-5902.08701963611
51625809626965.882394261-1156.88239426089
52619916615098.3293729494817.67062705079
53587625602598.689235184-14973.6892351836
54565724568771.010386915-3047.01038691458
55557274565056.335805029-7782.33580502869
56560576555879.868794914696.13120509025
57548854553119.858987848-4265.85898784830
58531673536111.861414678-4438.86141467814
59525919523124.0807745732794.91922542716
60511038513627.060562609-2589.06056260908
61498662509324.933797379-10662.9337973786
62555362549992.5970017825369.40299821789
63564591561245.5538596633345.44614033734
64541667553275.471823922-11608.4718239225
65527070524580.5538655522489.44613444799
66509846507766.8000114092079.19998859113
67514258508612.3685574835645.63144251713
68516922514050.2907350492871.70926495098
69507561509770.695679726-2209.69567972623
70492622495066.213168236-2444.21316823582
71490243483516.1973387386726.80266126182
72469357477572.040993094-8215.04099309435
73477580467120.03261548710459.9673845126
74528379528490.5449912-111.544991200011
75533590533798.725115565-208.725115564656
76517945532018.012102321-14073.0121023212
77506174509134.790481942-2960.79048194152
78501866495649.0625082786216.93749172188
79516441510059.0861665426381.9138334583
80528222525609.4415189752612.55848102506
81532638530815.6072219431822.39277805753


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2037623597348780.4075247194697550.796237640265122
220.1248754657684090.2497509315368180.875124534231591
230.3030554829825820.6061109659651640.696944517017418
240.1926974941750680.3853949883501360.807302505824932
250.1131026610380.2262053220760.886897338962
260.2114312088496900.4228624176993810.78856879115031
270.1595974956643390.3191949913286770.840402504335661
280.1106394720090850.2212789440181710.889360527990915
290.1403111032160440.2806222064320880.859688896783956
300.1050970138412280.2101940276824570.894902986158772
310.07748523536484820.1549704707296960.922514764635152
320.1483477684188800.2966955368377610.85165223158112
330.1011232570721170.2022465141442350.898876742927883
340.06964091010793570.1392818202158710.930359089892064
350.09254843355163720.1850968671032740.907451566448363
360.06040075704104040.1208015140820810.93959924295896
370.0428723365013320.0857446730026640.957127663498668
380.04129694196906890.08259388393813770.958703058030931
390.03156455764898670.06312911529797350.968435442351013
400.03157523320201970.06315046640403940.96842476679798
410.03839061217904030.07678122435808070.96160938782096
420.02369319246050040.04738638492100070.9763068075395
430.01425633752030530.02851267504061050.985743662479695
440.01361466598729360.02722933197458730.986385334012706
450.008018916014362020.01603783202872400.991981083985638
460.004907540654283930.009815081308567860.995092459345716
470.003408282918309540.006816565836619070.99659171708169
480.01083412079437440.02166824158874880.989165879205626
490.008750353220473940.01750070644094790.991249646779526
500.006999002303031640.01399800460606330.993000997696968
510.003767352919613790.007534705839227580.996232647080386
520.1784665132654740.3569330265309480.821533486734526
530.3492680662856750.698536132571350.650731933714325
540.2820219324290790.5640438648581580.717978067570921
550.3309576928397980.6619153856795950.669042307160202
560.2775174174930850.555034834986170.722482582506915
570.1995395505987970.3990791011975930.800460449401203
580.1279669205762210.2559338411524410.87203307942378
590.09414382621118210.1882876524223640.905856173788818
600.06573287460306230.1314657492061250.934267125396938


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.075NOK
5% type I error level100.25NOK
10% type I error level150.375NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/10trka1259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/10trka1259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/11dn81259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/11dn81259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/2mh2d1259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/2mh2d1259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/3fu741259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/3fu741259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/4k5j01259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/4k5j01259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/5xf6w1259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/5xf6w1259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/6fhs11259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/6fhs11259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/7ty6p1259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/7ty6p1259317184.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/8f2lj1259317184.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259317300tcxpdc48q5bfocq/8f2lj1259317184.ps (open in new window)


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