Home » date » 2010 » Nov » 29 »

Werkloosheid Belgiƫ versus consumentenvertrouwen

*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: Mon, 29 Nov 2010 10:05:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6.htm/, Retrieved Mon, 29 Nov 2010 11:04:50 +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/2010/Nov/29/t1291025079pr9znwexljyetd6.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
235.1 1 280.7 1 264.6 2 240.7 0 201.4 1 240.8 0 241.1 -1 223.8 -3 206.1 -3 174.7 -3 203.3 -4 220.5 -8 299.5 -9 347.4 -13 338.3 -18 327.7 -11 351.6 -9 396.6 -10 438.8 -13 395.6 -11 363.5 -5 378.8 -15 357 -6 369 -6 464.8 -3 479.1 -1 431.3 -3 366.5 -4 326.3 -6 355.1 0 331.6 -4 261.3 -2 249 -2 205.5 -6 235.6 -7 240.9 -6 264.9 -6 253.8 -3 232.3 -2 193.8 -5 177 -11 213.2 -11 207.2 -11 180.6 -10 188.6 -14 175.4 -8 199 -9 179.6 -5 225.8 -1 234 -2 200.2 -5 183.6 -4 178.2 -6 203.2 -2 208.5 -2 191.8 -2 172.8 -2 148 2 159.4 1 154.5 -8 213.2 -1 196.4 1 182.8 -1 176.4 2 153.6 2 173.2 1 171 -1 151.2 -2 161.9 -2 157.2 -1 201.7 -8 236.4 -4 356.1 -6 398.3 -3 403.7 -3 384.6 -7 365.8 -9 368.1 -11 367.9 -13 347 -11 343.3 -9 292.9 -17 311.5 -22 300.9 -25 366.9 -20 356.9 -24 329.7 -24 316.2 -22 269 -19 289.3 -18 266.2 -17 253.6 -11 233.8 -11 228.4 -12 253.6 -10 260.1 -15 306.6 -15 309.2 -15 309.5 -13 271 -8 279.9 -13 317.9 -9 298.4 etc...
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 235.631767332067 -4.50586331058313X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)235.63176733206710.87747221.662400
X-4.505863310583131.131043-3.98380.0001266.3e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.363866557825529
R-squared0.132398871903799
Adjusted R-squared0.124056553364412
F-TEST (value)15.8707523908017
F-TEST (DF numerator)1
F-TEST (DF denominator)104
p-value0.000126018845868048
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation75.1284511785672
Sum Squared Residuals587005.554354997


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1235.1231.1259040214863.97409597851359
2280.7231.12590402148449.5740959785156
3264.6226.62004071090137.9799592890988
4240.7235.6317673320675.0682326679325
5201.4231.125904021484-29.7259040214844
6240.8235.6317673320675.16823266793252
7241.1240.1376306426510.962369357349377
8223.8249.149357263817-25.3493572638169
9206.1249.149357263817-43.0493572638169
10174.7249.149357263817-74.4493572638169
11203.3253.6552205744-50.3552205744
12220.5271.678673816732-51.1786738167325
13299.5276.18453712731623.3154628726844
14347.4294.20799036964853.1920096303518
15338.3316.73730692256421.5626930774363
16327.7285.19626374848242.5037362515181
17351.6276.18453712731675.4154628726844
18396.6280.690400437899115.909599562101
19438.8294.207990369648144.592009630352
20395.6285.196263748482110.403736251518
21363.5258.161083884983105.338916115017
22378.8303.21971699081475.5802830091856
23357262.66694719556694.3330528044337
24369262.666947195566106.333052804434
25464.8249.149357263817215.650642736183
26479.1240.137630642651238.962369357349
27431.3249.149357263817182.150642736183
28366.5253.6552205744112.8447794256
29326.3262.66694719556663.6330528044338
30355.1235.631767332067119.468232667933
31331.6253.655220574477.9447794256
32261.3244.64349395323416.6565060467663
33249244.6434939532344.35650604676626
34205.5262.666947195566-57.1669471955663
35235.6267.172810506149-31.5728105061494
36240.9262.666947195566-21.7669471955662
37264.9262.6669471955662.23305280443373
38253.8249.1493572638174.65064273618314
39232.3244.643493953234-12.3434939532337
40193.8258.161083884983-64.3610838849831
41177285.196263748482-108.196263748482
42213.2285.196263748482-71.9962637484819
43207.2285.196263748482-77.9962637484819
44180.6280.690400437899-100.090400437899
45188.6298.713853680231-110.113853680231
46175.4271.678673816732-96.2786738167325
47199276.184537127316-77.1845371273156
48179.6258.161083884983-78.5610838849831
49225.8240.137630642651-14.3376306426506
50234244.643493953234-10.6434939532337
51200.2258.161083884983-57.9610838849831
52183.6253.6552205744-70.0552205744
53178.2262.666947195566-84.4669471955663
54203.2244.643493953234-41.4434939532338
55208.5244.643493953234-36.1434939532337
56191.8244.643493953234-52.8434939532337
57172.8244.643493953234-71.8434939532337
58148226.620040710901-78.6200407109012
59159.4231.125904021484-71.7259040214844
60154.5271.678673816732-117.178673816732
61213.2240.137630642651-26.9376306426506
62196.4231.125904021484-34.7259040214844
63182.8240.137630642651-57.3376306426506
64176.4226.620040710901-50.2200407109012
65153.6226.620040710901-73.0200407109012
66173.2231.125904021484-57.9259040214844
67171240.137630642651-69.1376306426506
68151.2244.643493953234-93.4434939532338
69161.9244.643493953234-82.7434939532338
70157.2240.137630642651-82.9376306426506
71201.7271.678673816732-69.9786738167325
72236.4253.6552205744-17.2552205744000
73356.1262.66694719556693.4330528044338
74398.3249.149357263817149.150642736183
75403.7249.149357263817154.550642736183
76384.6267.172810506149117.427189493851
77365.8276.18453712731689.6154628726844
78368.1285.19626374848282.9037362515181
79367.9294.20799036964873.6920096303518
80347285.19626374848261.8037362515181
81343.3276.18453712731667.1154628726844
82292.9312.231443611981-19.3314436119807
83311.5334.760760164896-23.2607601648963
84300.9348.278350096646-47.3783500966457
85366.9325.7490335437341.1509664562699
86356.9343.77248678606313.1275132139375
87329.7343.772486786063-14.0724867860625
88316.2334.760760164896-18.5607601648963
89269321.243170233147-52.2431702331469
90289.3316.737306922564-27.4373069225637
91266.2312.231443611981-46.0314436119807
92253.6285.196263748482-31.5962637484819
93233.8285.196263748482-51.3962637484819
94228.4289.702127059065-61.302127059065
95253.6280.690400437899-27.0904004378988
96260.1303.219716990814-43.1197169908144
97306.6303.2197169908143.38028300918563
98309.2303.2197169908145.9802830091856
99309.5294.20799036964815.2920096303519
100271271.678673816732-0.678673816732501
101279.9294.207990369648-14.3079903696482
102317.9276.18453712731641.7154628726843
103298.4267.17281050614931.2271894938506
104246.7253.6552205744-6.95522057440001
105227.3253.6552205744-26.3552205744
106209.1244.643493953234-35.5434939532337


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.09848078777422780.1969615755484560.901519212225772
60.03491287091472150.06982574182944290.965087129085278
70.01172541420439630.02345082840879260.988274585795604
80.003460774507294100.006921549014588210.996539225492706
90.001129040535427270.002258081070854540.998870959464573
100.0008937363392078530.001787472678415710.999106263660792
110.0002755430054293940.0005510860108587870.99972445699457
120.0003094902447221490.0006189804894442990.999690509755278
130.003124649560481020.006249299120962050.996875350439519
140.008271973078239750.01654394615647950.99172802692176
150.004349983384849440.008699966769698870.99565001661515
160.002927466852124610.005854933704249220.997072533147875
170.004022722637950450.00804544527590090.99597727736205
180.0121652297991990.0243304595983980.9878347702008
190.03305222468636600.06610444937273210.966947775313634
200.03716617545222760.07433235090445530.962833824547772
210.05254836460795520.1050967292159100.947451635392045
220.03779343474653580.07558686949307170.962206565253464
230.0407210713244490.0814421426488980.95927892867555
240.05002523502160860.1000504700432170.94997476497839
250.3687303619309990.7374607238619970.631269638069001
260.8589343250463380.2821313499073240.141065674953662
270.9550190701567530.08996185968649360.0449809298432468
280.9647446763837670.07051064723246670.0352553236162333
290.958842354930120.0823152901397590.0411576450698795
300.9745413535791120.05091729284177690.0254586464208884
310.9746743869585550.05065122608288990.0253256130414449
320.968352836730690.06329432653862180.0316471632693109
330.9611621705011150.07767565899777030.0388378294988852
340.9686283188995690.06274336220086140.0313716811004307
350.9673250700328510.06534985993429720.0326749299671486
360.9628144338888080.0743711322223830.0371855661111915
370.9541085263068740.09178294738625220.0458914736931261
380.9431953722228210.1136092555543570.0568046277771787
390.9314683699342850.1370632601314310.0685316300657154
400.9386021325261040.1227957349477920.0613978674738961
410.9693900248399920.06121995032001500.0306099751600075
420.9738839146721620.05223217065567580.0261160853278379
430.9780072005567380.04398559888652310.0219927994432615
440.9853089454356520.02938210912869570.0146910545643478
450.9912827427557760.01743451448844710.00871725724422353
460.9935792090681560.01284158186368830.00642079093184416
470.9938187457272340.01236250854553240.00618125427276621
480.9942056837064860.01158863258702830.00579431629351414
490.9919441607577890.01611167848442290.00805583924221145
500.9887860682557240.02242786348855150.0112139317442758
510.9869530118126570.02609397637468560.0130469881873428
520.9862071952150380.02758560956992390.0137928047849619
530.9872283610881380.02554327782372370.0127716389118619
540.9835211923506930.03295761529861420.0164788076493071
550.9783632991602140.04327340167957160.0216367008397858
560.97385007719890.05229984560220070.0261499228011004
570.9722112571242750.05557748575144930.0277887428757247
580.9718467110071550.05630657798568980.0281532889928449
590.969800366962930.06039926607413870.0301996330370694
600.9815229235086080.03695415298278490.0184770764913925
610.9746962357084850.05060752858303110.0253037642915156
620.9666486514713630.06670269705727460.0333513485286373
630.9614119169147610.07717616617047740.0385880830852387
640.9539210325398230.09215793492035380.0460789674601769
650.9545597833549850.09088043329003050.0454402166450153
660.9512668561211270.0974662877577460.048733143878873
670.954205883191860.09158823361628070.0457941168081404
680.9704315786961130.05913684260777430.0295684213038871
690.981446228272640.03710754345472070.0185537717273604
700.9917867110143820.01642657797123510.00821328898561757
710.9947131850870640.01057362982587120.0052868149129356
720.994297676896370.01140464620725790.00570232310362896
730.9940403268317830.01191934633643490.00595967316821747
740.9978104556352970.004379088729405070.00218954436470253
750.9996267084876570.0007465830246861490.000373291512343074
760.999906135602360.0001877287952776689.3864397638834e-05
770.9999604511309157.9097738169271e-053.95488690846355e-05
780.999985937873892.81242522199263e-051.40621261099631e-05
790.9999952999437259.40011255080505e-064.70005627540253e-06
800.9999979552273254.08954534958307e-062.04477267479153e-06
810.9999996259665027.48066995776547e-073.74033497888274e-07
820.9999989703718162.05925636748107e-061.02962818374053e-06
830.9999972924024615.41519507728363e-062.70759753864181e-06
840.9999956755212688.6489574641448e-064.3244787320724e-06
850.9999973904807695.21903846278061e-062.60951923139030e-06
860.9999962113182797.57736344179065e-063.78868172089533e-06
870.9999903213201481.93573597050362e-059.67867985251808e-06
880.9999747258258885.05483482239593e-052.52741741119797e-05
890.9999496387623330.0001007224753342575.03612376671285e-05
900.9998627620179160.0002744759641672820.000137237982083641
910.9997435417299550.0005129165400895290.000256458270044765
920.9994136894099270.001172621180144940.000586310590072468
930.9992542743601330.001491451279733520.000745725639866761
940.9995705798006880.0008588403986244520.000429420199312226
950.9990561849168570.001887630166286160.000943815083143079
960.999460436851240.001079126297518620.000539563148759312
970.9982868740297670.003426251940465480.00171312597023274
980.9949708334999830.01005833300003370.00502916650001684
990.9841007028903760.03179859421924880.0158992971096244
1000.953738025877180.09252394824564080.0462619741228204
1010.9967958572673650.006408285465270910.00320414273263545


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level340.350515463917526NOK
5% type I error level580.597938144329897NOK
10% type I error level890.917525773195876NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/102bvb1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/102bvb1291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/1vsyh1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/1vsyh1291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/2o2x21291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/2o2x21291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/3o2x21291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/3o2x21291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/4o2x21291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/4o2x21291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/5ztfn1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/5ztfn1291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/6ztfn1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/6ztfn1291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/7r2eq1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/7r2eq1291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/8r2eq1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/8r2eq1291025095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/92bvb1291025095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291025079pr9znwexljyetd6/92bvb1291025095.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