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:42:06 -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/t1258645437q6ee1y5rr8vhn2m.htm/, Retrieved Thu, 19 Nov 2009 16:44:10 +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/t1258645437q6ee1y5rr8vhn2m.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 (BouwV): 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] = + 103.885297340278 + 18.0026589708333X[t] + e[t]


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


Multiple Linear Regression - Regression Statistics
Multiple R0.4667909175743
R-squared0.217893760729857
Adjusted R-squared0.210515399982025
F-TEST (value)29.5314593819359
F-TEST (DF numerator)1
F-TEST (DF denominator)106
p-value3.53844414435756e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.2293012130874
Sum Squared Residuals27919.3630937027


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1100103.885297340278-3.88529734027768
2108.1560276103.8852973402784.27073025972225
3114.0150276103.88529734027810.1297302597222
4102.1880309103.885297340278-1.69726644027778
5110.3672031103.8852973402786.48190575972222
696.8602511103.885297340278-7.02504624027778
794.1944583103.885297340278-9.69083904027779
899.51621961103.885297340278-4.36907773027779
994.06333487103.885297340278-9.82196247027777
1097.5541476103.885297340278-6.33114974027779
1178.15062422103.885297340278-25.7346731202778
1281.2434643103.885297340278-22.6418330402778
1392.36262465103.885297340278-11.5226726902778
1496.06324371103.885297340278-7.82205363027778
15114.0523777103.88529734027810.1670803597222
16110.6616666103.8852973402786.77636925972222
17104.9171949103.8852973402781.03189755972222
1890.00187193103.885297340278-13.8834254102778
1995.7008067103.885297340278-8.18449064027778
2086.02741157103.885297340278-17.8578857702778
2184.85287668103.885297340278-19.0324206602778
22100.04328103.885297340278-3.84201734027778
2380.91713823103.885297340278-22.9681591102778
2474.06539709103.885297340278-29.8199002502778
2577.30281369103.885297340278-26.5824836502778
2697.23043249103.885297340278-6.65486485027778
2790.75515676103.885297340278-13.1301405802778
28100.5614455103.885297340278-3.32385184027777
2992.01293267103.885297340278-11.8723646702778
3099.24012138103.885297340278-4.64517596027777
31105.8672755103.8852973402781.98197815972223
3290.9920463103.885297340278-12.8932510402778
3393.30624423103.885297340278-10.5790531102778
3491.17419413103.885297340278-12.7111032102778
3577.33295039103.885297340278-26.5523469502778
3691.1277721103.885297340278-12.7575252402778
3785.01249943103.885297340278-18.8727979102778
3883.90390242103.885297340278-19.9813949202778
39104.8626302103.8852973402780.97733285972222
40110.9039108103.8852973402787.01861345972223
4195.43714373103.885297340278-8.44815361027778
42111.6238727103.8852973402787.73857535972223
43108.8925403103.8852973402785.00724295972221
4496.17511682103.885297340278-7.71018052027778
45101.9740205103.885297340278-1.91127684027778
4699.11953031103.885297340278-4.76576703027778
4786.78158147103.885297340278-17.1037158702778
48118.4195003103.88529734027814.5342029597222
49118.7441447103.88529734027814.8588473597222
50106.5296192103.8852973402782.64432185972222
51134.7772694103.88529734027830.8919720597222
52104.6778714103.8852973402780.792574059722222
53105.2954304103.8852973402781.41013305972222
54139.4139849103.88529734027835.5286875597222
55103.6060491103.885297340278-0.279248240277772
5699.78182974103.885297340278-4.10346760027777
57103.4610301103.885297340278-0.424267240277777
58120.0594945103.88529734027816.1741971597222
5996.71377168103.885297340278-7.17152566027779
60107.1308929103.8852973402783.24559555972223
61105.3608372103.8852973402781.47553985972223
62111.6942359103.8852973402787.80893855972222
63132.0519998103.88529734027828.1667024597222
64126.8037879103.88529734027822.9184905597222
65154.4824253103.88529734027850.5971279597222
66141.5570984103.88529734027837.6718010597222
67109.9506882103.8852973402786.06539085972222
68127.904198103.88529734027824.0189006597222
69133.0888617103.88529734027829.2035643597222
70120.0796299103.88529734027816.1943325597222
71117.5557142103.88529734027813.6704168597222
72143.0362309103.88529734027839.1509335597222
73159.982927121.88795631111138.0949706888889
74128.5991124121.8879563111116.71115608888889
75149.7373327121.88795631111127.8493763888889
76126.8169313121.8879563111114.92897498888888
77140.9639674121.88795631111119.0760110888889
78137.6691981121.88795631111115.7812417888889
79117.9402337121.887956311111-3.94772261111112
80122.3095247121.8879563111110.421568388888889
81127.7804207121.8879563111115.89246438888889
82136.1677176121.88795631111114.2797612888889
83116.2405856121.887956311111-5.6473707111111
84123.1576893121.8879563111111.26973298888889
85116.3400234121.887956311111-5.5479329111111
86108.6119282121.887956311111-13.2760281111111
87125.8982264121.8879563111114.01027008888889
88112.8003105121.887956311111-9.08764581111111
89107.5182447121.887956311111-14.3697116111111
90135.0955413121.88795631111113.2075849888889
91115.5096488121.887956311111-6.37830751111111
92115.8640759121.887956311111-6.0238804111111
93104.5883906121.887956311111-17.2995657111111
94163.7213386121.88795631111141.8333822888889
95113.4482275121.887956311111-8.4397288111111
9698.0428844121.887956311111-23.8450719111111
97116.7868521121.887956311111-5.10110421111110
98126.5330444121.8879563111114.64508808888889
99113.0336597121.887956311111-8.85429661111111
100124.3392163121.8879563111112.45125998888890
101109.8298759121.887956311111-12.0580804111111
102124.4434777121.8879563111112.55552138888889
103111.5039454121.887956311111-10.3840109111111
104102.0350019121.887956311111-19.8529544111111
105116.8726598121.887956311111-5.01529651111111
106112.2073122121.887956311111-9.6806441111111
107101.1513902121.887956311111-20.7365661111111
108124.4255108121.8879563111112.53755448888889


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.07876214594893880.1575242918978780.921237854051061
60.06086733005502590.1217346601100520.939132669944974
70.05249703732919910.1049940746583980.94750296267080
80.02420076980725050.0484015396145010.97579923019275
90.01709888552247030.03419777104494070.98290111447753
100.008066856933993650.01613371386798730.991933143066006
110.05295718944766610.1059143788953320.947042810552334
120.0803769052817590.1607538105635180.919623094718241
130.05313557641997530.1062711528399510.946864423580025
140.03133330002923190.06266660005846390.968666699970768
150.03882818318573410.07765636637146810.961171816814266
160.03348112110908170.06696224221816350.966518878890918
170.02141900428188920.04283800856377830.97858099571811
180.01676030655611360.03352061311222720.983239693443886
190.01012874475526090.02025748951052190.98987125524474
200.01016894346629820.02033788693259640.989831056533702
210.01074891913156750.02149783826313500.989251080868432
220.00638437527194330.01276875054388660.993615624728057
230.009504668565886250.01900933713177250.990495331434114
240.02532578332384900.05065156664769790.974674216676151
250.04030659928603070.08061319857206140.95969340071397
260.02818699508526670.05637399017053350.971813004914733
270.02128652450610660.04257304901221320.978713475493893
280.01496457816282330.02992915632564650.985035421837177
290.01084601575707620.02169203151415250.989153984242924
300.007348985679436450.01469797135887290.992651014320564
310.005855996772058530.01171199354411710.994144003227941
320.004396668027413350.00879333605482670.995603331972587
330.003078563692596170.006157127385192340.996921436307404
340.002319431028726750.00463886205745350.997680568971273
350.005239836291301570.01047967258260310.994760163708698
360.00422831076808640.00845662153617280.995771689231914
370.00489821003073680.00979642006147360.995101789969263
380.006413450895556150.01282690179111230.993586549104444
390.005529710631025850.01105942126205170.994470289368974
400.006236416530450050.01247283306090010.99376358346955
410.005056770973996960.01011354194799390.994943229026003
420.005740889311819390.01148177862363880.99425911068818
430.005460220802446780.01092044160489360.994539779197553
440.004549382184888730.009098764369777460.995450617815111
450.003667368592117720.007334737184235450.996332631407882
460.003019605710500530.006039211421001070.9969803942895
470.004621405266855460.009242810533710920.995378594733145
480.007715458138859530.01543091627771910.99228454186114
490.01163183447309610.02326366894619230.988368165526904
500.01031574188229940.02063148376459880.9896842581177
510.04725718610828160.09451437221656320.952742813891718
520.04166472488540430.08332944977080860.958335275114596
530.03707360149320480.07414720298640960.962926398506795
540.1337907073915860.2675814147831720.866209292608414
550.1227816883765710.2455633767531430.877218311623429
560.1220620478830390.2441240957660780.877937952116961
570.1179825457399860.2359650914799710.882017454260014
580.1239704150736520.2479408301473050.876029584926348
590.1475933332613970.2951866665227940.852406666738603
600.1489355809846750.2978711619693490.851064419015325
610.1614966995231630.3229933990463250.838503300476837
620.1697901342479400.3395802684958790.83020986575206
630.2287223671361950.4574447342723890.771277632863805
640.2547649083558120.5095298167116250.745235091644188
650.5825841768541180.8348316462917630.417415823145882
660.6958165148588510.6083669702822980.304183485141149
670.6892784575246620.6214430849506770.310721542475338
680.6855515094419020.6288969811161960.314448490558098
690.7013877593976030.5972244812047950.298612240602397
700.6783621786012410.6432756427975170.321637821398759
710.686176818316030.627646363367940.31382318168397
720.7269146749714480.5461706500571040.273085325028552
730.8685828698157720.2628342603684550.131417130184227
740.8583572312509210.2832855374981580.141642768749079
750.9153288653014530.1693422693970940.0846711346985468
760.9007223558794530.1985552882410950.0992776441205473
770.9188726729138060.1622546541723870.0811273270861937
780.9279244408529280.1441511182941430.0720755591470715
790.9124936491750980.1750127016498040.0875063508249022
800.8901000649107570.2197998701784870.109899935089243
810.8700599345391630.2598801309216740.129940065460837
820.8820077805528940.2359844388942120.117992219447106
830.8533699135806670.2932601728386650.146630086419333
840.8191149397048160.3617701205903680.180885060295184
850.7769250650598020.4461498698803960.223074934940198
860.7520124192401480.4959751615197040.247987580759852
870.7090178081185740.5819643837628520.290982191881426
880.655995467293250.68800906541350.34400453270675
890.6235482620804610.7529034758390790.376451737919539
900.6369392732582570.7261214534834850.363060726741743
910.5649062515439360.8701874969121280.435093748456064
920.4878863891761810.9757727783523630.512113610823819
930.4628063173253710.9256126346507420.537193682674629
940.9821033628941110.03579327421177730.0178966371058886
950.9679717220060860.06405655598782770.0320282779939139
960.98174794824040.0365041035191990.0182520517595995
970.964890124717530.07021975056494130.0351098752824707
980.9627598303543050.07448033929139070.0372401696456954
990.9290301831152540.1419396337694920.0709698168847458
1000.9149256809493160.1701486381013690.0850743190506845
1010.8479775707065510.3040448585868980.152022429293449
1020.8312143624011260.3375712751977480.168785637598874
1030.6884848300591950.6230303398816090.311515169940805


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.090909090909091NOK
5% type I error level360.363636363636364NOK
10% type I error level480.484848484848485NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/10nezj1258645320.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/10nezj1258645320.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/1y8b91258645320.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/1y8b91258645320.ps (open in new window)


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


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


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


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


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


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/7oag71258645320.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/7oag71258645320.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/82onm1258645320.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/82onm1258645320.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/9azj61258645320.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645437q6ee1y5rr8vhn2m/9azj61258645320.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