Home » date » 2009 » Nov » 19 »

Bouwvergunningen (BouwV)

*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: Thu, 19 Nov 2009 08:48:21 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf.htm/, Retrieved Thu, 19 Nov 2009 16:49:42 +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/2009/Nov/19/t1258645769wrz17j6s0llelaf.htm/},
    year = {2009},
}
@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 = {2009},
    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:
Bouwvergunningen volgens effectieve datum van toekenning - woongebouwen - koninkrijk, Ruimte
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100 0 108.1560276 0 114.0150276 0 102.1880309 0 110.3672031 0 96.8602511 0 94.1944583 0 99.51621961 0 94.06333487 0 97.5541476 0 78.15062422 0 81.2434643 0 92.36262465 0 96.06324371 0 114.0523777 0 110.6616666 0 104.9171949 0 90.00187193 0 95.7008067 0 86.02741157 0 84.85287668 0 100.04328 0 80.91713823 0 74.06539709 0 77.30281369 0 97.23043249 0 90.75515676 0 100.5614455 0 92.01293267 0 99.24012138 0 105.8672755 0 90.9920463 0 93.30624423 0 91.17419413 0 77.33295039 0 91.1277721 0 85.01249943 0 83.90390242 0 104.8626302 0 110.9039108 0 95.43714373 0 111.6238727 0 108.8925403 0 96.17511682 0 101.9740205 0 99.11953031 0 86.78158147 0 118.4195003 0 118.7441447 0 106.5296192 0 134.7772694 0 104.6778714 0 105.2954304 0 139.4139849 0 103.6060491 0 99.78182974 0 103.4610301 0 120.0594945 0 96.71377168 0 107.1308929 0 105.3608372 0 111.6942359 0 132.0519998 0 126.8037879 0 154.4824253 0 141.5570984 0 109.9506882 0 127.904198 0 133.0888617 0 120.079 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
BouwV[t] = + 100.737929464167 + 18.0026589708333X[t] + 1.24926445333335M1[t] + 0.741356025555553M2[t] + 13.1704820188889M3[t] + 6.56709212333335M4[t] + 6.68611955666668M5[t] + 12.8062306022222M6[t] + 0.279589323333329M7[t] -2.22710195000001M8[t] -0.0735003233333385M9[t] + 8.83081141666668M10[t] -10.2619287333333M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)100.7379294641675.34478618.847900
X18.00265897083333.2068715.613800
M11.249264453333357.4059520.16870.8664040.433202
M20.7413560255555537.4059520.10010.9204740.460237
M313.17048201888897.4059521.77840.0785430.039272
M46.567092123333357.4059520.88670.3774630.188731
M56.686119556666687.4059520.90280.3689140.184457
M612.80623060222227.4059521.72920.0870250.043512
M70.2795893233333297.4059520.03780.9699650.484982
M8-2.227101950000017.405952-0.30070.7642870.382143
M9-0.07350032333333857.405952-0.00990.9921020.496051
M108.830811416666687.4059521.19240.2360770.118038
M11-10.26192873333337.405952-1.38560.1691040.084552


Multiple Linear Regression - Regression Statistics
Multiple R0.585800390694066
R-squared0.343162097737320
Adjusted R-squared0.260193099556772
F-TEST (value)4.13602797746894
F-TEST (DF numerator)12
F-TEST (DF denominator)95
p-value3.41703775448288e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.7103976677556
Sum Squared Residuals23447.5765135068


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1100101.9871939175-1.98719391749993
2108.1560276101.4792854897226.67674211027781
3114.0150276113.9084114830560.106616116944433
4102.1880309107.3050215875-5.11699068749999
5110.3672031107.4240490208332.94315407916666
696.8602511113.544160066389-16.6839089663889
794.1944583101.0175187875-6.82306048750004
899.5162196198.51082751416661.00539209583334
994.06333487100.664429140833-6.60109427083333
1097.5541476109.568740880833-12.0145932808333
1178.1506242290.4760007308333-12.3253765108333
1281.2434643100.737929464167-19.4944651641667
1392.36262465101.9871939175-9.6245692675
1496.06324371101.479285489722-5.41604177972223
15114.0523777113.9084114830560.143966216944441
16110.6616666107.30502158753.35664501250000
17104.9171949107.424049020833-2.50685412083333
1890.00187193113.544160066389-23.5422881363889
1995.7008067101.0175187875-5.31671208749999
2086.0274115798.5108275141667-12.4834159441667
2184.85287668100.664429140833-15.8115524608333
22100.04328109.568740880833-9.52546088083333
2380.9171382390.4760007308333-9.55886250083333
2474.06539709100.737929464167-26.6725323741667
2577.30281369101.9871939175-24.6843802275
2697.23043249101.479285489722-4.24885299972222
2790.75515676113.908411483056-23.1532547230555
28100.5614455107.3050215875-6.7435760875
2992.01293267107.424049020833-15.4111163508333
3099.24012138113.544160066389-14.3040386863889
31105.8672755101.01751878754.84975671250001
3290.992046398.5108275141667-7.51878121416667
3393.30624423100.664429140833-7.35818491083332
3491.17419413109.568740880833-18.3945467508333
3577.3329503990.4760007308333-13.1430503408333
3691.1277721100.737929464167-9.61015736416667
3785.01249943101.9871939175-16.9746944875
3883.90390242101.479285489722-17.5753830697222
39104.8626302113.908411483056-9.04578128305556
40110.9039108107.30502158753.59888921250001
4195.43714373107.424049020833-11.9869052908333
42111.6238727113.544160066389-1.92028736638888
43108.8925403101.01751878757.8750215125
4496.1751168298.5108275141667-2.33571069416667
45101.9740205100.6644291408331.30959135916666
4699.11953031109.568740880833-10.4492105708333
4786.7815814790.4760007308333-3.69441926083333
48118.4195003100.73792946416717.6815708358333
49118.7441447101.987193917516.7569507825
50106.5296192101.4792854897225.05033371027778
51134.7772694113.90841148305620.8688579169444
52104.6778714107.3050215875-2.6271501875
53105.2954304107.424049020833-2.12861862083333
54139.4139849113.54416006638925.8698248336111
55103.6060491101.01751878752.58853031250001
5699.7818297498.51082751416671.27100222583334
57103.4610301100.6644291408332.79660095916667
58120.0594945109.56874088083310.4907536191667
5996.7137716890.47600073083336.23777094916666
60107.1308929100.7379294641676.39296343583333
61105.3608372101.98719391753.37364328249999
62111.6942359101.47928548972210.2149504102778
63132.0519998113.90841148305618.1435883169445
64126.8037879107.305021587519.4987663125
65154.4824253107.42404902083347.0583762791667
66141.5570984113.54416006638928.0129383336111
67109.9506882101.01751878758.93316941250001
68127.90419898.510827514166729.3933704858333
69133.0888617100.66442914083332.4244325591667
70120.0796299109.56874088083310.5108890191667
71117.555714290.476000730833327.0797134691667
72143.0362309100.73792946416742.2983014358333
73159.982927119.98985288833339.9930741116666
74128.5991124119.4819444605569.11716793944444
75149.7373327131.91107045388917.8262622461111
76126.8169313125.3076805583331.50925074166666
77140.9639674125.42670799166715.5372594083333
78137.6691981131.5468190372226.12237906277777
79117.9402337119.020177758333-1.07994405833333
80122.3095247116.5134864855.796038215
81127.7804207118.6670881116679.11333258833333
82136.1677176127.5713998516678.59631774833334
83116.2405856108.4786597016677.76192589833334
84123.1576893118.7405884354.41710086499999
85116.3400234119.989852888333-3.64982948833334
86108.6119282119.481944460556-10.8700162605556
87125.8982264131.911070453889-6.01284405388889
88112.8003105125.307680558333-12.5073700583333
89107.5182447125.426707991667-17.9084632916667
90135.0955413131.5468190372223.54872226277779
91115.5096488119.020177758333-3.51052895833333
92115.8640759116.513486485-0.649410584999995
93104.5883906118.667088111667-14.0786975116667
94163.7213386127.57139985166736.1499387483333
95113.4482275108.4786597016674.96956779833334
9698.0428844118.740588435-20.697704035
97116.7868521119.989852888333-3.20300078833334
98126.5330444119.4819444605567.05109993944444
99113.0336597131.911070453889-18.8774107538889
100124.3392163125.307680558333-0.96846425833333
101109.8298759125.426707991667-15.5968320916667
102124.4434777131.546819037222-7.10334133722222
103111.5039454119.020177758333-7.51623235833332
104102.0350019116.513486485-14.478484585
105116.8726598118.667088111667-1.79442831166667
106112.2073122127.571399851667-15.3640876516667
107101.1513902108.478659701667-7.32726950166667
108124.4255108118.7405884355.68492236499999


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.0806756218981150.161351243796230.919324378101885
170.0313450063796530.0626900127593060.968654993620347
180.01446203324241140.02892406648482270.98553796675759
190.004547493385962860.009094986771925720.995452506614037
200.004977853862255390.009955707724510770.995022146137745
210.002929203407488930.005858406814977870.997070796592511
220.001056207428204570.002112414856409130.998943792571795
230.0003710188415281660.0007420376830563310.999628981158472
240.0002184950460686370.0004369900921372730.999781504953931
250.001345031071877150.002690062143754300.998654968928123
260.0006246607036036940.001249321407207390.999375339296396
270.004216690433071130.008433380866142260.995783309566929
280.002369639621216520.004739279242433050.997630360378783
290.00311747658782330.00623495317564660.996882523412177
300.002150303031653350.00430060606330670.997849696968347
310.001605250329495220.003210500658990450.998394749670505
320.0008467389248140780.001693477849628160.999153261075186
330.0004683795194060680.0009367590388121350.999531620480594
340.0003905551566221820.0007811103132443640.999609444843378
350.0002376593687078380.0004753187374156770.999762340631292
360.0003001784537590930.0006003569075181860.99969982154624
370.0002801133333715050.000560226666743010.999719886666628
380.0006496401829795370.001299280365959070.99935035981702
390.000442642617038620.000885285234077240.999557357382961
400.000267784727613260.000535569455226520.999732215272387
410.0002405516591725220.0004811033183450440.999759448340827
420.0004516968019348460.0009033936038696910.999548303198065
430.0003470684567075380.0006941369134150750.999652931543292
440.0002220429427900040.0004440858855800080.99977795705721
450.0002040217484335080.0004080434968670160.999795978251567
460.0002111883197902180.0004223766395804370.99978881168021
470.000197365201425840.000394730402851680.999802634798574
480.00402197290887630.00804394581775260.995978027091124
490.01385607780511920.02771215561023840.98614392219488
500.01151085716247110.02302171432494230.98848914283753
510.02539220245387450.05078440490774910.974607797546125
520.02047313651573380.04094627303146750.979526863484266
530.01942687134749650.03885374269499310.980573128652503
540.07234860626992530.1446972125398510.927651393730075
550.05612589689951030.1122517937990210.94387410310049
560.05015766304345410.1003153260869080.949842336956546
570.04779773375807210.09559546751614430.952202266241928
580.06116892612408490.1223378522481700.938831073875915
590.06560686137112890.1312137227422580.934393138628871
600.07108623646818180.1421724729363640.928913763531818
610.1033284854308800.2066569708617610.89667151456912
620.1066653897773560.2133307795547120.893334610222644
630.1084710491590530.2169420983181050.891528950840947
640.1086808306185680.2173616612371360.891319169381432
650.3631852562347090.7263705124694180.636814743765291
660.4083505271825670.8167010543651340.591649472817433
670.3760095474710990.7520190949421970.623990452528902
680.4087907848590730.8175815697181450.591209215140927
690.4635528035586050.927105607117210.536447196441395
700.5394035615578060.9211928768843880.460596438442194
710.5793758659946280.8412482680107450.420624134005372
720.6494458263501580.7011083472996840.350554173649842
730.8182686298037780.3634627403924450.181731370196222
740.8049100466528030.3901799066943940.195089953347197
750.8615635281055130.2768729437889750.138436471894487
760.836911887099490.3261762258010220.163088112900511
770.9063850367959030.1872299264081930.0936149632040967
780.8768273245330080.2463453509339850.123172675466992
790.8398241839020060.3203516321959880.160175816097994
800.8125359209370260.3749281581259470.187464079062974
810.7990781345506730.4018437308986550.200921865449327
820.7312389705890760.5375220588218470.268761029410924
830.6679948194182750.664010361163450.332005180581725
840.6135450105431160.7729099789137680.386454989456884
850.524483204113320.951033591773360.47551679588668
860.494412731136620.988825462273240.50558726886338
870.4284906763406610.8569813526813220.571509323659339
880.3582511334038490.7165022668076980.641748866596151
890.275859759215160.551719518430320.72414024078484
900.1953857384412530.3907714768825060.804614261558747
910.1184017621110110.2368035242220210.88159823788899
920.07075324220750340.1415064844150070.929246757792497


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level300.389610389610390NOK
5% type I error level350.454545454545455NOK
10% type I error level380.493506493506494NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/10eblv1258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/10eblv1258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/13ts81258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/13ts81258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/2er971258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/2er971258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/3tj561258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/3tj561258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/4h6r91258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/4h6r91258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/5ozxo1258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/5ozxo1258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/6dd371258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/6dd371258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/777hu1258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/777hu1258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/8gvlt1258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/8gvlt1258645696.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/9zkic1258645696.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645769wrz17j6s0llelaf/9zkic1258645696.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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