Home » date » 2008 » Dec » 24 »

Paper Multiple Regression

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 24 Dec 2008 06:43:47 -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/24/t12301264480k9vvoxhz7ds465.htm/, Retrieved Wed, 24 Dec 2008 14:47:38 +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/2008/Dec/24/t12301264480k9vvoxhz7ds465.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105.7 109.5 105.3 102.8 100.6 97.6 110.3 107.2 107.2 108.1 97.1 92.2 112.2 111.6 115.7 111.3 104.2 103.2 112.7 106.4 102.6 110.6 95.2 89 112.5 116.8 107.2 113.6 101.8 102.6 122.7 110.3 110.5 121.6 100.3 100.7 123.4 127.1 124.1 131.2 111.6 114.2 130.1 125.9 119 133.8 107.5 113.5 134.4 126.8 135.6 139.9 129.8 131 153.1 134.1 144.1 155.9 123.3 128.1 144.3 153 149.9 150.9 141 138.9 157.4 142.9 151.7 161 138.5 135.9 151.5 164 159.1 157 142.1 144.8 152.1 154.6 148.7 157.7 146.4 136.5
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Totale_industrie[t] = + 77.8714285714286 + 20.7964285714286M1[t] + 23.5928571428572M2[t] + 21.1464285714286M3[t] + 21.8M4[t] + 10.2535714285714M5[t] + 9.67857142857144M6[t] + 24.0892857142857M7[t] + 15.2M8[t] + 14.7964285714286M9[t] + 23.3214285714286M10[t] + 2.51785714285714M11[t] + 0.746428571428571t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)77.87142857142862.55664730.458400
M120.79642857142863.1449156.612700
M223.59285714285723.1425467.507600
M321.14642857142863.1404016.733700
M421.83.1384816.94600
M510.25357142857143.1367853.26880.0016670.000833
M69.678571428571443.1353153.0870.0028840.001442
M724.08928571428573.1340717.686300
M815.23.1330524.85157e-064e-06
M914.79642857142863.132264.72391.1e-056e-06
M1023.32142857142863.1316947.446900
M112.517857142857143.1313540.80410.4240350.212018
t0.7464285714285710.02663228.027800


Multiple Linear Regression - Regression Statistics
Multiple R0.962618494753033
R-squared0.926634366440596
Adjusted R-squared0.914234541050274
F-TEST (value)74.7296302384906
F-TEST (DF numerator)12
F-TEST (DF denominator)71
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.85801485387064
Sum Squared Residuals2436.46000000000


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1105.799.41428571428566.28571428571442
2109.5102.9571428571436.54285714285714
3105.3101.2571428571434.04285714285703
4102.8102.6571428571430.142857142857155
5100.691.85714285714288.74285714285715
697.692.02857142857145.57142857142857
7110.3107.1857142857143.11428571428571
8107.299.04285714285718.15714285714286
9107.299.38571428571427.81428571428575
10108.1108.657142857143-0.557142857142879
1197.188.68.5
1292.286.82857142857145.37142857142857
13112.2108.3714285714293.82857142857139
14111.6111.914285714286-0.314285714285722
15115.7110.2142857142865.4857142857143
16111.3111.614285714286-0.314285714285721
17104.2100.8142857142863.38571428571429
18103.2100.9857142857142.21428571428571
19112.7116.142857142857-3.44285714285713
20106.4108-1.6
21102.6108.342857142857-5.74285714285715
22110.6117.614285714286-7.01428571428572
2395.297.5571428571428-2.35714285714285
248995.7857142857143-6.78571428571429
25112.5117.328571428571-4.82857142857145
26116.8120.871428571429-4.07142857142858
27107.2119.171428571429-11.9714285714286
28113.6120.571428571429-6.97142857142858
29101.8109.771428571429-7.97142857142858
30102.6109.942857142857-7.34285714285716
31122.7125.1-2.39999999999999
32110.3116.957142857143-6.65714285714286
33110.5117.3-6.8
34121.6126.571428571429-4.97142857142857
35100.3106.514285714286-6.21428571428572
36100.7104.742857142857-4.04285714285714
37123.4126.285714285714-2.88571428571431
38127.1129.828571428571-2.72857142857143
39124.1128.128571428571-4.02857142857142
40131.2129.5285714285711.67142857142856
41111.6118.728571428571-7.12857142857144
42114.2118.9-4.7
43130.1134.057142857143-3.95714285714286
44125.9125.914285714286-0.0142857142857129
45119126.257142857143-7.25714285714286
46133.8135.528571428571-1.72857142857141
47107.5115.471428571429-7.97142857142857
48113.5113.7-0.2
49134.4135.242857142857-0.842857142857158
50126.8138.785714285714-11.9857142857143
51135.6137.085714285714-1.48571428571428
52139.9138.4857142857141.41428571428572
53129.8127.6857142857142.11428571428572
54131127.8571428571433.14285714285714
55153.1143.01428571428610.0857142857143
56134.1134.871428571429-0.771428571428574
57144.1135.2142857142868.8857142857143
58155.9144.48571428571411.4142857142857
59123.3124.428571428571-1.12857142857143
60128.1122.6571428571435.44285714285714
61144.3144.20.099999999999993
62153147.7428571428575.25714285714287
63149.9146.0428571428573.85714285714289
64150.9147.4428571428573.45714285714286
65141136.6428571428574.35714285714286
66138.9136.8142857142862.08571428571429
67157.4151.9714285714295.42857142857144
68142.9143.828571428571-0.928571428571424
69151.7144.1714285714297.5285714285714
70161153.4428571428577.55714285714286
71138.5133.3857142857145.11428571428572
72135.9131.6142857142864.2857142857143
73151.5153.157142857143-1.65714285714287
74164156.77.3
75159.11554.10000000000002
76157156.40.600000000000001
77142.1145.6-3.50000000000001
78144.8145.771428571429-0.971428571428567
79152.1160.928571428571-8.82857142857143
80154.6152.7857142857141.81428571428570
81148.7153.128571428571-4.42857142857145
82157.7162.4-4.7
83146.4142.3428571428574.05714285714286
84136.5140.571428571429-4.07142857142857


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1293819245820350.258763849164070.870618075417965
170.07790829119119380.1558165823823880.922091708808806
180.03412360491359630.06824720982719250.965876395086404
190.02252971486567840.04505942973135680.977470285134322
200.03529187475822510.07058374951645010.964708125241775
210.09385173671812710.1877034734362540.906148263281873
220.05486814379961920.1097362875992380.94513185620038
230.0505644798845610.1011289597691220.949435520115439
240.05097431860681950.1019486372136390.94902568139318
250.02883959560306500.05767919120612990.971160404396935
260.01756614083992060.03513228167984120.98243385916008
270.03250975516355280.06501951032710560.967490244836447
280.02418627215769140.04837254431538270.975813727842309
290.01910735647273710.03821471294547420.980892643527263
300.01135128894926510.02270257789853020.988648711050735
310.0196241213517550.039248242703510.980375878648245
320.01176509982082590.02353019964165170.988234900179174
330.007633994100235410.01526798820047080.992366005899765
340.01431381786133270.02862763572266550.985686182138667
350.008781780293755420.01756356058751080.991218219706245
360.008341699863228960.01668339972645790.991658300136771
370.009542733766843740.01908546753368750.990457266233156
380.01139372617161730.02278745234323450.988606273828383
390.01299411914178240.02598823828356480.987005880858218
400.04461743795162010.08923487590324010.95538256204838
410.03499632900899240.06999265801798470.965003670991008
420.02781691327720060.05563382655440110.9721830867228
430.02500863645472800.05001727290945590.974991363545272
440.02566648941743950.0513329788348790.97433351058256
450.03027493482984170.06054986965968330.969725065170158
460.04805176547255060.09610353094510130.95194823452745
470.06982181635765690.1396436327153140.930178183642343
480.0794421797707660.1588843595415320.920557820229234
490.07055245610357820.1411049122071560.929447543896422
500.4028150686058330.8056301372116660.597184931394167
510.538432351545220.9231352969095610.461567648454780
520.6003492346128820.7993015307742350.399650765387118
530.6139527798151270.7720944403697460.386047220184873
540.6243068367992870.7513863264014250.375693163200713
550.7763919044422980.4472161911154040.223608095557702
560.777986921329230.4440261573415390.222013078670770
570.8094216030301370.3811567939397250.190578396969863
580.8631692506581830.2736614986836350.136830749341817
590.9429690973385680.1140618053228630.0570309026614317
600.9205407811337040.1589184377325920.079459218866296
610.8836017943720480.2327964112559040.116398205627952
620.897154178003220.2056916439935610.102845821996781
630.889576732413780.2208465351724410.110423267586221
640.8447621966124020.3104756067751950.155237803387598
650.759006990327290.4819860193454190.240993009672710
660.6721895822999460.6556208354001080.327810417700054
670.6527769739113790.6944460521772430.347223026088621
680.7700669638874180.4598660722251640.229933036112582


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level140.264150943396226NOK
10% type I error level250.471698113207547NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/10n1ui1230126222.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/10n1ui1230126222.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/155hh1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/155hh1230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/2raqw1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/2raqw1230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/3zgfc1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/3zgfc1230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/4xgd41230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/4xgd41230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/5rf8a1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/5rf8a1230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/6psun1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/6psun1230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/7zktq1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/7zktq1230126221.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/8k0lw1230126221.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301264480k9vvoxhz7ds465/8k0lw1230126221.ps (open in new window)


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