Home » date » 2008 » Dec » 05 »

*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, 05 Dec 2008 08:10:56 -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/05/t1228490437zidds7yjd9aslym.htm/, Retrieved Fri, 05 Dec 2008 15:20:47 +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/05/t1228490437zidds7yjd9aslym.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 0 104.6 0 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 0 116.00 0 115.6 0 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 0 122.2 1 122.6 0 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 0 125.8 0 125.6 0 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 0 125.2 0 124.00 0 117.6 1 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 0 113.00 0 108.4 0 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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 110.623188405797 + 3.7768115942029Dumivariabele[t] + e[t]


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


Multiple Linear Regression - Regression Statistics
Multiple R0.0850834970138966
R-squared0.00723920146411376
Adjusted R-squared-0.00694309565782736
F-TEST (value)0.510439275236597
F-TEST (DF numerator)1
F-TEST (DF denominator)70
p-value0.477324574359064
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.96338814969837
Sum Squared Residuals5623.96289855072


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
195.2110.623188405797-15.4231884057970
295110.623188405797-15.6231884057971
394110.623188405797-16.6231884057971
492.2110.623188405797-18.4231884057971
591110.623188405797-19.6231884057971
691.2110.623188405797-19.4231884057971
7103.4114.4-11.0000000000000
8105110.623188405797-5.6231884057971
9104.6110.623188405797-6.02318840579711
10103.8110.623188405797-6.8231884057971
11101.8110.623188405797-8.8231884057971
12102.4110.623188405797-8.2231884057971
13103.8110.623188405797-6.8231884057971
14103.4110.623188405797-7.2231884057971
15102110.623188405797-8.6231884057971
16101.8110.623188405797-8.8231884057971
17100.2110.623188405797-10.4231884057971
18101.4110.623188405797-9.2231884057971
19113.8110.6231884057973.17681159420289
20116110.6231884057975.3768115942029
21115.6110.6231884057974.97681159420289
22113110.6231884057972.37681159420290
23109.4110.623188405797-1.22318840579710
24111110.6231884057970.376811594202896
25112.4110.6231884057971.77681159420290
26112.2110.6231884057971.5768115942029
27111110.6231884057970.376811594202896
28108.8110.623188405797-1.82318840579711
29107.4110.623188405797-3.2231884057971
30108.6110.623188405797-2.02318840579711
31118.8110.6231884057978.1768115942029
32122.2114.47.79999999999998
33122.6110.62318840579711.9768115942029
34122.2110.62318840579711.5768115942029
35118.8110.6231884057978.1768115942029
36119110.6231884057978.3768115942029
37118.2110.6231884057977.5768115942029
38117.8110.6231884057977.1768115942029
39116.8110.6231884057976.1768115942029
40114.6110.6231884057973.97681159420289
41113.4110.6231884057972.7768115942029
42113.8110.6231884057973.17681159420289
43124.2110.62318840579713.5768115942029
44125.8110.62318840579715.1768115942029
45125.6110.62318840579714.9768115942029
46122.4110.62318840579711.7768115942029
47119110.6231884057978.3768115942029
48119.4110.6231884057978.7768115942029
49118.6110.6231884057977.97681159420289
50118110.6231884057977.3768115942029
51116110.6231884057975.3768115942029
52114.8110.6231884057974.17681159420289
53114.6110.6231884057973.97681159420289
54114.6110.6231884057973.97681159420289
55124110.62318840579713.3768115942029
56125.2110.62318840579714.5768115942029
57124110.62318840579713.3768115942029
58117.6114.43.19999999999997
59113.2110.6231884057972.5768115942029
60111.4110.6231884057970.776811594202902
61112.2110.6231884057971.5768115942029
62109.8110.623188405797-0.823188405797107
63106.4110.623188405797-4.2231884057971
64105.2110.623188405797-5.4231884057971
65102.2110.623188405797-8.4231884057971
6699.8110.623188405797-10.8231884057971
67111110.6231884057970.376811594202896
68113110.6231884057972.37681159420290
69108.4110.623188405797-2.22318840579710
70105.4110.623188405797-5.2231884057971
71102110.623188405797-8.6231884057971
72102.8110.623188405797-7.8231884057971


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.02510841228486340.05021682456972670.974891587715137
60.01144931524248130.02289863048496270.988550684757519
70.003032650141082080.006065300282164170.996967349858918
80.1428055508087690.2856111016175380.85719444919123
90.239044687341280.478089374682560.76095531265872
100.2641015095060860.5282030190121720.735898490493914
110.235490822562370.470981645124740.76450917743763
120.2138681449691570.4277362899383140.786131855030843
130.2076422748431720.4152845496863430.792357725156828
140.1926194665868430.3852389331736860.807380533413157
150.1693243296671850.3386486593343690.830675670332815
160.1503794686006350.3007589372012690.849620531399365
170.138296773229510.276593546459020.86170322677049
180.1308012477045500.2616024954091010.86919875229545
190.3439529078176890.6879058156353780.656047092182311
200.594665348058280.8106693038834410.405334651941720
210.7319490466351410.5361019067297180.268050953364859
220.7669726928499950.4660546143000090.233027307150005
230.7535264930275180.4929470139449630.246473506972482
240.7475772996854750.504845400629050.252422700314525
250.7488534465952860.5022931068094280.251146553404714
260.7416593788660760.5166812422678480.258340621133924
270.7209186212901650.558162757419670.279081378709835
280.6905398012564430.6189203974871140.309460198743557
290.6617642803500650.676471439299870.338235719649935
300.6309694199410040.7380611601179920.369030580058996
310.7019629065852350.596074186829530.298037093414765
320.7421966400938950.515606719812210.257803359906105
330.8387725056608120.3224549886783760.161227494339188
340.8915391540033920.2169216919932160.108460845996608
350.8974297216793960.2051405566412080.102570278320604
360.9011519399609520.1976961200780950.0988480600390477
370.8969121073348480.2061757853303030.103087892665152
380.887984504190710.2240309916185790.112015495809290
390.8709523828448250.258095234310350.129047617155175
400.8407131601887730.3185736796224530.159286839811227
410.8017873612052530.3964252775894950.198212638794748
420.7578665349122620.4842669301754760.242133465087738
430.8160634267595060.3678731464809880.183936573240494
440.8844954550408110.2310090899183770.115504544959189
450.9319534439910370.1360931120179260.0680465560089629
460.9450004554221120.1099990891557750.0549995445778877
470.9397424123706080.1205151752587850.0602575876293923
480.936732811567630.1265343768647390.0632671884323697
490.9301210031209030.1397579937581930.0698789968790967
500.920479988794370.1590400224112590.0795200112056297
510.8993170457580720.2013659084838560.100682954241928
520.8681572362701860.2636855274596280.131842763729814
530.8298182824218130.3403634351563740.170181717578187
540.7850831863952950.429833627209410.214916813604705
550.8749046191078080.2501907617843830.125095380892191
560.9662005277525130.06759894449497440.0337994722474872
570.9976732642050050.004653471589990270.00232673579499513
580.9949007003540350.01019859929193060.0050992996459653
590.9941954772570920.01160904548581550.00580452274290775
600.9914103297779780.01717934044404450.00858967022202224
610.990267922728280.01946415454343920.00973207727171961
620.9838931058208540.03221378835829120.0161068941791456
630.9651965069656460.06960698606870850.0348034930343543
640.9286932504429070.1426134991141850.0713067495570927
650.8847913926459760.2304172147080480.115208607354024
660.8825931920679320.2348136158641350.117406807932068
670.8095636814090450.3808726371819100.190436318590955


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0317460317460317NOK
5% type I error level80.126984126984127NOK
10% type I error level110.174603174603175NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/10q3811228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/10q3811228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/19r9z1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/19r9z1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/2rtez1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/2rtez1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/33lcu1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/33lcu1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/458ux1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/458ux1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/5pecg1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/5pecg1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/6jypd1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/6jypd1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/7kvcd1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/7kvcd1228489851.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/88dle1228489851.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/05/t1228490437zidds7yjd9aslym/88dle1228489851.ps (open in new window)


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