Home » date » 2008 » Dec » 10 »

Paper - Regressie analyse - Enkel dummy variabele

*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: Wed, 10 Dec 2008 13:26:13 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6.htm/, Retrieved Wed, 10 Dec 2008 20:30:41 +0000
 
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/2008/Dec/10/t1228941019h7pwzyjjurvlft6.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
108,00 0 99,00 0 108,00 0 104,00 0 111,00 0 110,00 0 106,00 0 101,00 0 102,00 0 99,00 0 100,00 0 98,00 0 92,00 1 87,00 1 79,00 1 87,00 1 87,00 1 88,00 1 83,00 1 85,00 1 92,00 1 84,00 1 92,00 1 98,00 1 103,00 0 104,00 0 109,00 0 107,00 0 106,00 0 113,00 0 107,00 0 114,00 0 108,00 0 104,00 0 105,00 0 109,00 0 109,00 0 112,00 0 118,00 0 111,00 0 99,00 1 92,00 1 92,00 1 98,00 1 87,00 1 97,00 1 102,00 0 105,00 0 111,00 0 110,00 0 109,00 0 111,00 0 113,00 0 114,00 0 120,00 0 114,00 0 120,00 0 122,00 0 123,00 0 115,00 0 123,00 0 124,00 0 124,00 0 132,00 0 126,00 0 126,00 0 122,00 0 120,00 0 114,00 0 116,00 0 100,00 0 97,00 0
 
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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Consumentenvertrouwen[t] = + 111.074074074074 -21.1296296296296Dummy[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)111.0740740740741.060679104.719800
Dummy-21.12962962962962.121357-9.960400


Multiple Linear Regression - Regression Statistics
Multiple R0.765710939773387
R-squared0.586313243288644
Adjusted R-squared0.580403432478482
F-TEST (value)99.2101544571356
F-TEST (DF numerator)1
F-TEST (DF denominator)70
p-value4.66293670342566e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.79436440013658
Sum Squared Residuals4252.64814814815


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1108111.074074074074-3.07407407407365
299111.074074074074-12.0740740740742
3108111.074074074074-3.07407407407408
4104111.074074074074-7.07407407407408
5111111.074074074074-0.0740740740740797
6110111.074074074074-1.07407407407408
7106111.074074074074-5.07407407407408
8101111.074074074074-10.0740740740741
9102111.074074074074-9.07407407407408
1099111.074074074074-12.0740740740741
11100111.074074074074-11.0740740740741
1298111.074074074074-13.0740740740741
139289.94444444444442.05555555555555
148789.9444444444444-2.94444444444445
157989.9444444444444-10.9444444444444
168789.9444444444444-2.94444444444445
178789.9444444444444-2.94444444444445
188889.9444444444444-1.94444444444445
198389.9444444444444-6.94444444444445
208589.9444444444444-4.94444444444445
219289.94444444444442.05555555555555
228489.9444444444444-5.94444444444445
239289.94444444444442.05555555555555
249889.94444444444448.05555555555555
25103111.074074074074-8.07407407407408
26104111.074074074074-7.07407407407408
27109111.074074074074-2.07407407407408
28107111.074074074074-4.07407407407408
29106111.074074074074-5.07407407407408
30113111.0740740740741.92592592592592
31107111.074074074074-4.07407407407408
32114111.0740740740742.92592592592592
33108111.074074074074-3.07407407407408
34104111.074074074074-7.07407407407408
35105111.074074074074-6.07407407407408
36109111.074074074074-2.07407407407408
37109111.074074074074-2.07407407407408
38112111.0740740740740.92592592592592
39118111.0740740740746.92592592592592
40111111.074074074074-0.0740740740740797
419989.94444444444449.05555555555555
429289.94444444444442.05555555555555
439289.94444444444442.05555555555555
449889.94444444444448.05555555555555
458789.9444444444444-2.94444444444445
469789.94444444444447.05555555555555
47102111.074074074074-9.07407407407408
48105111.074074074074-6.07407407407408
49111111.074074074074-0.0740740740740797
50110111.074074074074-1.07407407407408
51109111.074074074074-2.07407407407408
52111111.074074074074-0.0740740740740797
53113111.0740740740741.92592592592592
54114111.0740740740742.92592592592592
55120111.0740740740748.92592592592592
56114111.0740740740742.92592592592592
57120111.0740740740748.92592592592592
58122111.07407407407410.9259259259259
59123111.07407407407411.9259259259259
60115111.0740740740743.92592592592592
61123111.07407407407411.9259259259259
62124111.07407407407412.9259259259259
63124111.07407407407412.9259259259259
64132111.07407407407420.9259259259259
65126111.07407407407414.9259259259259
66126111.07407407407414.9259259259259
67122111.07407407407410.9259259259259
68120111.0740740740748.92592592592592
69114111.0740740740742.92592592592592
70116111.0740740740744.92592592592592
71100111.074074074074-11.0740740740741
7297111.074074074074-14.0740740740741


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.2908867542983170.5817735085966340.709113245701683
60.1886078971394380.3772157942788760.811392102860562
70.09775433469450030.1955086693890010.9022456653055
80.0861551728147420.1723103456294840.913844827185258
90.05980012977929770.1196002595585950.940199870220702
100.06804407860030550.1360881572006110.931955921399694
110.05944558843200590.1188911768640120.940554411567994
120.0718896242427190.1437792484854380.928110375757281
130.04174548393609890.08349096787219790.958254516063901
140.02873928391565150.0574785678313030.971260716084348
150.05457324528729160.1091464905745830.945426754712708
160.0337271421421750.067454284284350.966272857857825
170.02018390561782970.04036781123565930.97981609438217
180.01192762348100400.02385524696200800.988072376518996
190.009125870060452150.01825174012090430.990874129939548
200.005670560361109660.01134112072221930.99432943963889
210.005274699951629960.01054939990325990.99472530004837
220.003913546824469920.007827093648939830.99608645317553
230.003448517204306060.006897034408612130.996551482795694
240.009808134657080630.01961626931416130.99019186534292
250.007410427201841440.01482085440368290.992589572798159
260.005401055957866910.01080211191573380.994598944042133
270.004592112574064060.009184225148128120.995407887425936
280.003307424968216550.00661484993643310.996692575031783
290.002346063958630530.004692127917261070.99765393604137
300.003327074275186050.00665414855037210.996672925724814
310.002367565551976430.004735131103952860.997632434448024
320.003401422204883320.006802844409766640.996598577795117
330.002420703009005630.004841406018011260.997579296990994
340.002157816668477400.004315633336954790.997842183331523
350.001824845227394110.003649690454788220.998175154772606
360.001401083965120420.002802167930240830.99859891603488
370.001075507758180400.002151015516360800.99892449224182
380.0009995189813000810.001999037962600160.9990004810187
390.002546590174312020.005093180348624040.997453409825688
400.001968471473716950.003936942947433910.998031528526283
410.003584624089763650.007169248179527290.996415375910236
420.002301600902548990.004603201805097980.99769839909745
430.001438653693125380.002877307386250750.998561346306875
440.001695323842486390.003390647684972770.998304676157514
450.001289763894937880.002579527789875760.998710236105062
460.001102142500774990.002204285001549970.998897857499225
470.002065348335134550.004130696670269110.997934651664866
480.002555624736374690.005111249472749380.997444375263625
490.002095979860557270.004191959721114530.997904020139443
500.001782922180421420.003565844360842840.998217077819579
510.001679214004674110.003358428009348230.998320785995326
520.001475408627133270.002950817254266540.998524591372867
530.001277669486845670.002555338973691340.998722330513154
540.001110889013400060.002221778026800120.9988891109866
550.001648491933322940.003296983866645870.998351508066677
560.001305314420474310.002610628840948620.998694685579526
570.001533625700199930.003067251400399850.9984663742998
580.002126145935693590.004252291871387180.997873854064306
590.002968356993214750.00593671398642950.997031643006785
600.001901486312150230.003802972624300470.99809851368785
610.002173035786847280.004346071573694560.997826964213153
620.002630242892977980.005260485785955950.997369757107022
630.002932095126685720.005864190253371450.997067904873314
640.01879894885485230.03759789770970450.981201051145148
650.03051567484902220.06103134969804440.969484325150978
660.06039018852620180.1207803770524040.939609811473798
670.0777677623322270.1555355246644540.922232237667773


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level390.619047619047619NOK
5% type I error level480.761904761904762NOK
10% type I error level520.825396825396825NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/10r5921228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/10r5921228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/1pus31228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/1pus31228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/27tka1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/27tka1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/3tq7s1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/3tq7s1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/4137u1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/4137u1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/5mp1r1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/5mp1r1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/60g0a1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/60g0a1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/7jkre1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/7jkre1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/8b6hr1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/8b6hr1228940767.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/9wtbg1228940767.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228941019h7pwzyjjurvlft6/9wtbg1228940767.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