Home » date » 2008 » Dec » 07 »

Paper - Regressi analyse - geen seizoenaliteit en trend

*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: Sun, 07 Dec 2008 06:21:59 -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/07/t1228656270yg3y31er14iyb26.htm/, Retrieved Sun, 07 Dec 2008 13:24:40 +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/07/t1228656270yg3y31er14iyb26.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 «
95.2 0 95.00 0 94.00 0 92.2 0 91.00 0 91.2 0 103.4 1 105.00 1 104.6 1 103.8 0 101.8 0 102.4 0 103.8 0 103.4 0 102.00 0 101.8 0 100.2 0 101.4 0 113.8 1 116.00 1 115.6 1 113.00 0 109.4 0 111.00 0 112.4 0 112.2 0 111.00 0 108.8 0 107.4 0 108.6 0 118.8 1 122.2 1 122.6 1 122.2 0 118.8 0 119.00 0 118.2 0 117.8 0 116.8 0 114.6 0 113.4 0 113.8 0 124.2 1 125.8 1 125.6 1 122.4 0 119.00 0 119.4 0 118.6 0 118.00 0 116.00 0 114.8 0 114.6 0 114.6 0 124.00 1 125.2 1 124.00 1 117.6 0 113.2 0 111.4 0 112.2 0 109.8 0 106.4 0 105.2 0 102.2 0 99.8 0 111.00 1 113.00 1 108.4 1 105.4 0 102.00 0 102.8 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
Werkloosheid[t] = + 108.759259259259 + 8.08518518518518dummy[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)108.7592592592591.12481396.690900
dummy8.085185185185182.2496273.5940.0006020.000301


Multiple Linear Regression - Regression Statistics
Multiple R0.394691653181559
R-squared0.155781501091192
Adjusted R-squared0.143721236821067
F-TEST (value)12.9169226811285
F-TEST (DF numerator)1
F-TEST (DF denominator)70
p-value0.00060163810795455
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.26565598020319
Sum Squared Residuals4782.47481481481


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
195.2108.759259259259-13.5592592592592
295108.759259259259-13.7592592592592
394108.759259259259-14.7592592592593
492.2108.759259259259-16.5592592592593
591108.759259259259-17.7592592592593
691.2108.759259259259-17.5592592592593
7103.4116.844444444444-13.4444444444444
8105116.844444444444-11.8444444444444
9104.6116.844444444444-12.2444444444445
10103.8108.759259259259-4.95925925925926
11101.8108.759259259259-6.95925925925926
12102.4108.759259259259-6.35925925925926
13103.8108.759259259259-4.95925925925926
14103.4108.759259259259-5.35925925925926
15102108.759259259259-6.75925925925926
16101.8108.759259259259-6.95925925925926
17100.2108.759259259259-8.55925925925926
18101.4108.759259259259-7.35925925925926
19113.8116.844444444444-3.04444444444445
20116116.844444444444-0.844444444444448
21115.6116.844444444444-1.24444444444445
22113108.7592592592594.24074074074074
23109.4108.7592592592590.640740740740745
24111108.7592592592592.24074074074074
25112.4108.7592592592593.64074074074074
26112.2108.7592592592593.44074074074074
27111108.7592592592592.24074074074074
28108.8108.7592592592590.0407407407407361
29107.4108.759259259259-1.35925925925926
30108.6108.759259259259-0.159259259259267
31118.8116.8444444444441.95555555555555
32122.2116.8444444444445.35555555555555
33122.6116.8444444444445.75555555555555
34122.2108.75925925925913.4407407407407
35118.8108.75925925925910.0407407407407
36119108.75925925925910.2407407407407
37118.2108.7592592592599.44074074074074
38117.8108.7592592592599.04074074074074
39116.8108.7592592592598.04074074074074
40114.6108.7592592592595.84074074074073
41113.4108.7592592592594.64074074074074
42113.8108.7592592592595.04074074074074
43124.2116.8444444444447.35555555555555
44125.8116.8444444444448.95555555555555
45125.6116.8444444444448.75555555555555
46122.4108.75925925925913.6407407407407
47119108.75925925925910.2407407407407
48119.4108.75925925925910.6407407407407
49118.6108.7592592592599.84074074074073
50118108.7592592592599.24074074074074
51116108.7592592592597.24074074074074
52114.8108.7592592592596.04074074074074
53114.6108.7592592592595.84074074074073
54114.6108.7592592592595.84074074074073
55124116.8444444444447.15555555555555
56125.2116.8444444444448.35555555555555
57124116.8444444444447.15555555555555
58117.6108.7592592592598.84074074074073
59113.2108.7592592592594.44074074074074
60111.4108.7592592592592.64074074074074
61112.2108.7592592592593.44074074074074
62109.8108.7592592592591.04074074074074
63106.4108.759259259259-2.35925925925926
64105.2108.759259259259-3.55925925925926
65102.2108.759259259259-6.55925925925926
6699.8108.759259259259-8.95925925925926
67111116.844444444444-5.84444444444445
68113116.844444444444-3.84444444444445
69108.4116.844444444444-8.44444444444444
70105.4108.759259259259-3.35925925925926
71102108.759259259259-6.75925925925926
72102.8108.759259259259-5.95925925925926


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.0308891148868910.0617782297737820.96911088511311
60.01499206287374520.02998412574749030.985007937126255
70.004374543584576170.008749087169152350.995625456415424
80.001499748352567990.002999496705135980.998500251647432
90.0004614343571019220.0009228687142038440.999538565642898
100.05882036603786670.1176407320757330.941179633962133
110.09276391611791160.1855278322358230.907236083882088
120.1218325915732950.2436651831465910.878167408426705
130.1628070219657110.3256140439314210.83719297803429
140.1798220399139460.3596440798278920.820177960086054
150.1712537934513860.3425075869027720.828746206548614
160.1616521113588120.3233042227176250.838347888641188
170.1516783018965090.3033566037930190.84832169810349
180.1490118413344180.2980236826688370.850988158665582
190.215341757688260.430683515376520.78465824231174
200.2773512273172440.5547024546344880.722648772682756
210.2905870130979020.5811740261958030.709412986902098
220.5319591067896840.9360817864206320.468040893210316
230.5929029804851820.8141940390296350.407097019514818
240.6599939980993120.6800120038013750.340006001900688
250.7251707441101030.5496585117797930.274829255889897
260.7599941752642240.4800116494715520.240005824735776
270.7648006839339920.4703986321320160.235199316066008
280.7470457991501540.5059084016996910.252954200849846
290.7239083965233970.5521832069532050.276091603476603
300.7012074488011880.5975851023976240.298792551198812
310.6937396635566470.6125206728867060.306260336443353
320.7103450498133050.5793099003733910.289654950186695
330.7128211298426140.5743577403147720.287178870157386
340.8679237630424650.2641524739150700.132076236957535
350.9052699495568030.1894601008863940.0947300504431968
360.9299875478825940.1400249042348120.0700124521174059
370.9409735898420090.1180528203159830.0590264101579913
380.946280795270780.1074384094584400.0537192047292198
390.9449917860266670.1100164279466660.0550082139733329
400.933540812950730.1329183740985390.0664591870492696
410.915303563353370.1693928732932610.0846964366466304
420.8943131680030630.2113736639938740.105686831996937
430.8850087256230640.2299825487538710.114991274376936
440.8866077020052240.2267845959895520.113392297994776
450.8885860616582040.2228278766835920.111413938341796
460.9316118708173810.1367762583652370.0683881291826186
470.9393781453960260.1212437092079490.0606218546039744
480.9503374047388630.09932519052227370.0496625952611369
490.9572353392818260.08552932143634840.0427646607181742
500.9624536248625240.07509275027495190.0375463751374760
510.9601534089268450.07969318214631090.0398465910731554
520.9539147632156370.0921704735687270.0460852367843635
530.9477265497351380.1045469005297230.0522734502648616
540.9435651760680220.1128696478639570.0564348239319783
550.9408945434663030.1182109130673930.0591054565336966
560.9593249213616940.08135015727661290.0406750786383064
570.9832140646808670.03357187063826520.0167859353191326
580.9952281792056540.00954364158869120.0047718207943456
590.9966820735851060.006635852829788590.00331792641489429
600.9970328988628020.005934202274396460.00296710113719823
610.9990967020927160.001806595814567750.000903297907283873
620.999691752646070.0006164947078598720.000308247353929936
630.9995258479041280.000948304191743810.000474152095871905
640.998951431521880.002097136956240080.00104856847812004
650.995731723500660.008536552998680390.00426827649934019
660.9932338551249270.01353228975014550.00676614487507275
670.970758638261340.05848272347731820.0292413617386591


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.174603174603175NOK
5% type I error level140.222222222222222NOK
10% type I error level220.349206349206349NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/10lh111228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/10lh111228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/1r65b1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/1r65b1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/2u2ka1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/2u2ka1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/39q2s1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/39q2s1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/4fnvs1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/4fnvs1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/5zhid1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/5zhid1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/6mtt11228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/6mtt11228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/7vdlm1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/7vdlm1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/8g3rw1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/8g3rw1228656114.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/97ogq1228656114.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228656270yg3y31er14iyb26/97ogq1228656114.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