Home » date » 2008 » Dec » 12 »

paper

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Fri, 12 Dec 2008 06:41:54 -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/12/t1229089519jculjpobz36744t.htm/, Retrieved Fri, 12 Dec 2008 14:45:31 +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/12/t1229089519jculjpobz36744t.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:
marie
 
Dataseries X:
» Textbox « » Textfile « » CSV «
60804 21863 30811 57907 20403 29877 54355 18792 28303 52536 17931 27605 49081 16475 26074 48877 16205 26112 64599 25134 32350 75314 31896 35804 71209 26537 36574 65210 22801 34486 59829 20200 32158 57656 19666 30965 57428 19809 30505 55315 18799 29629 52790 17884 28169 51050 17512 26972 48519 16327 25752 48354 16880 25027 65333 26537 31530 73990 31867 34705 72755 29427 35223 67424 25800 33471 59214 22041 29239 57427 21759 27954 56681 21333 27727 55437 20462 27314 53600 19594 26576 51641 18564 25775 49478 17640 24669 50124 18614 24480 71313 32562 30834 76208 35640 33218 74387 31865 33783 69520 28117 32546 64735 25508 30661 63413 25006 30070 62553 24452 29722 60109 22643 29075 57764 21474 28136 55667 20500 27315 53103 19505 26125 55301 21769 26057 76795 36062 32601 80928 38633 34214 79213 34629 35232 72759 30184 33565 67802 27271 31931 66940 26841 31779 66396 26482 31626 67539 25538 31230 67776 23789 29574 68014 22386 28312 68251 21087 27186 68488 22891 27397 68725 36192 33387 68962 38922 34996 69200 34669 36251 69437 30197 34284 68212 27001 32349 65444 25891 30991 63181 24879 29916 61198 23662 29067 59010 22741 27978 56388 21615 26719 53723 20305 25544 55340 21877 25703 75352 35369 31703 79817 37941 33733 78289 33480 35121 71892 29757 32714 66448 26323 31111 64167 25359 29977 61250 22207 30375 59580 21763 29323 56417 19944 28193 54662 19662 27222 53349 18624 26904 55385 19902 27952 73546 31726 33512 77683 32860 36215 74995 28894 36856 67282 22949 35341 60742 19758 32624 57283 18420 30885 57314 18245 31108 54704 16761 30267 51578 15341 28645 49962 14271 28474 46252 13418 25805 47234 15218 24756 64708 26485 30437 68753 27457 33177 62970 21402 33069 57474 17879 31342 52494 15607 28912 51831 15626 28373 51663 15303 28599 49637 14296 27884 46679 13686 25727 45557 12948 25393 41630 11609 23147 44417 14602 23164 60070 23629 29286 63157 24680 31008
 
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[t] = -1050.4280324071 + 1.05644865942879Vlaamse[t] + 1.24407254790969Waalse[t] + 66.220705569209M1[t] + 428.310079100591M2[t] + 1044.76038536411M3[t] + 1385.86632438017M4[t] + 1881.55721241687M5[t] + 1552.96809285461M6[t] -2145.39571244007M7[t] -3262.49548144678M8[t] -2239.85680165956M9[t] -881.97205844622M10[t] + 2.29819642144381M11[t] + 9.4964824801608t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-1050.42803240717294.771502-0.1440.8858280.442914
Vlaamse1.056448659428790.08576212.318400
Waalse1.244072547909690.2555744.86785e-062e-06
M166.2207055692091380.3953820.0480.9618460.480923
M2428.3100791005911395.1263550.3070.7595570.379779
M31044.760385364111472.6530640.70940.4799050.239953
M41385.866324380171550.1176220.8940.3737120.186856
M51881.557212416871722.0082451.09270.2774950.138748
M61552.968092854611736.9680670.89410.3736970.186848
M7-2145.395712440071521.604881-1.410.1620380.081019
M8-3262.495481446781743.634946-1.87110.0646180.032309
M9-2239.856801659561853.20499-1.20860.2300030.115001
M10-881.972058446221615.559672-0.54590.5864840.293242
M112.298196421443811437.3951170.00160.9987280.499364
t9.49648248016089.7537220.97360.3328810.16644


Multiple Linear Regression - Regression Statistics
Multiple R0.958800738989298
R-squared0.919298857086424
Adjusted R-squared0.906604295279794
F-TEST (value)72.4167459333887
F-TEST (DF numerator)14
F-TEST (DF denominator)89
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2835.69213875183
Sum Squared Residuals715662341.614326


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16080460453.545470379350.454529621016
25790758120.7525238772-213.752523877159
35435555086.5903318712-731.590331871202
45253653659.2278191583-1123.22781915827
54908150721.5508706971-1640.55087069708
64887750164.4918523898-1287.49185238978
76459963669.1791634755929.82083652446
87531474002.30829248651311.69170751347
97120970330.8709507655878.129049234501
106521065153.736504797656.2634952023826
115982960403.4793874374-574.479387437405
125765658362.3555397049-706.35553970489
135742858016.8715140141-588.871514014121
145531556231.6366720337-916.6366720337
155279054074.5870174519-1284.58701745189
165105052543.0356977927-1493.03569779271
174851950278.5628984366-1759.56289843663
184835449641.7337727841-1287.73377278413
196533364245.19493313011087.80506686989
207399072718.39334097231271.60665902773
217275571817.2233540506937.776645949376
226742467173.2501880581250.749811941859
235921458830.9113918593383.088608140655
245742756941.5579318952485.442068104809
255668156284.8235226524396.176477347602
265543755222.4406340148214.559365985233
275360054013.2644460169-413.264446016910
285164152279.2226374258-638.222637425816
294947850432.3072086424-954.307208642364
305012450907.065854289-783.065854288971
317131369858.38140260531454.61859739467
327620874968.39604401731239.60395598270
337438772715.338506511671.66149349002
346952068584.2324149001935.767585099897
356473564376.6478469885358.352153011542
366341363118.2620301993294.737969800704
376255362175.7694142525377.230585747454
386010959831.3247068598277.675293140155
395776458054.0988902441-290.098890244077
405566756354.3367556228-687.336755622802
415310354327.9113779955-1224.91137799549
425530156316.0215726023-1015.02157260230
437679575868.1856925244926.814307475562
448092879483.40092916761444.59907083236
457921377551.98151285421661.01848714578
467275972149.5795100213609.420489978689
476780267933.0967591686-131.096759168646
486694067296.9230943907-356.923094390711
496639666803.032113875-407.032113874964
506753965684.67770641351854.32229358650
516777662402.71165047785373.28834952221
526801459701.09704733348312.90295266662
536825157433.131920305910817.8680796941
546848859282.37197244239205.62802755768
556872577097.3228306691-8372.32283066913
566896280875.5371139699-11913.5371139699
576920078975.9071753133-9775.90717531328
586943773171.7592943029-3734.75929430288
596821268281.835735911-69.8357359110542
606544465426.925489942517.0745100575424
616318163096.13864564784.8613543530224
626119861125.808889958472.1911100416395
635901059423.9714586945-413.971458694477
645638857018.7253518556-630.725351855583
655372354678.1797347269-955.17973472685
665534056217.6319253844-877.631925384442
677535274246.80520304131105.19479695875
687981778381.85514082221435.14485917779
697828976427.94552987641861.05447012357
707189270867.6857736981024.31422630207
716644866139.359520268308.640479731931
726416763717.3630293078449.636970692154
736125060958.2949169057291.705083094261
745958059552.053247729927.9467522700938
755641756850.5179458347-433.517945834676
765466255695.2074013517-1033.20740135167
775334954708.1859931462-1359.18599314617
785538557043.0227730234-1658.02277302341
797354672762.6477656727783.352234327261
807768376215.78535593831467.21464406166
817499573855.49563812131139.50436187874
826728267057.5196734275224.480326572557
836074261200.0136258674-458.01362586738
845728357630.2414447954-347.241444795427
855731457798.5082956286-484.508295628623
865470455556.0593282558-852.059328255794
875157852663.9633479011-1085.96334790108
884996251671.429298116-1709.42929811594
894625247955.0363317691-1703.03633176909
904723448232.5191789015-998.519178901536
916470863514.23504654611193.7649534539
926875366842.25863825691910.74136174311
936297061343.23733250871626.76266749128
945747456840.2366407946633.76335920543
955249452310.6557324996183.344267500356
965183151667.3714397642163.628560235816
975166351683.0161066456-20.0161066456461
984963750101.246290857-464.246290856972
994667947399.2949115079-720.294911507894
1004555746554.7179913438-997.71799134383
1014163042851.1336642804-1221.13366428038
1024441745715.1410981831-1298.14109818310
1036007059179.0479623354890.952037664638
1046315761324.0651443691832.93485563104


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
187.02537988630135e-061.40507597726027e-050.999992974620114
193.26340189928423e-076.52680379856846e-070.99999967365981
202.81975202108412e-085.63950404216824e-080.99999997180248
215.32641696375494e-081.06528339275099e-070.99999994673583
222.56932653950875e-095.1386530790175e-090.999999997430673
231.77470247317384e-103.54940494634769e-100.99999999982253
241.06694676609249e-112.13389353218499e-110.99999999998933
254.2865695491007e-138.5731390982014e-130.999999999999571
261.79396645665261e-133.58793291330522e-130.99999999999982
279.14404874020955e-141.82880974804191e-130.999999999999909
287.12845684644371e-141.42569136928874e-130.999999999999929
294.41548042045917e-148.83096084091834e-140.999999999999956
304.08410232374475e-158.16820464748949e-150.999999999999996
318.18422433591052e-161.63684486718210e-151
328.42767642354754e-161.68553528470951e-151
336.964460939419e-171.3928921878838e-161
349.03847116976694e-181.80769423395339e-171
351.35396293230651e-182.70792586461301e-181
362.10626365600615e-194.21252731201231e-191
372.14699146521360e-204.29398293042721e-201
385.43576910092493e-211.08715382018499e-201
399.28863572439242e-221.85772714487848e-211
401.13047766784228e-222.26095533568456e-221
411.35456292383505e-232.7091258476701e-231
422.38239935429932e-244.76479870859865e-241
431.89194354945081e-243.78388709890162e-241
442.12398598961081e-254.24797197922161e-251
451.84166780311256e-263.68333560622512e-261
461.53492225862021e-273.06984451724041e-271
471.70252919673763e-283.40505839347525e-281
481.79641669794382e-293.59283339588764e-291
492.68275820092435e-305.3655164018487e-301
502.48817973018719e-254.97635946037437e-251
512.54320504093808e-145.08641008187616e-140.999999999999975
528.4924914352189e-081.69849828704378e-070.999999915075086
530.002087938308078800.004175876616157590.997912061691921
540.1265528742581530.2531057485163060.873447125741847
550.6822595604890340.6354808790219310.317740439510966
560.9998969720604090.0002060558791821440.000103027939591072
5713.24752483261800e-161.62376241630900e-16
5812.24001114919449e-321.12000557459725e-32
5912.60339958157354e-311.30169979078677e-31
6012.40314845628714e-301.20157422814357e-30
6111.36136802019672e-296.80684010098358e-30
6212.54995383184211e-281.27497691592106e-28
6314.20737971089322e-272.10368985544661e-27
6417.21494947053017e-263.60747473526509e-26
6511.18799809972355e-245.93999049861777e-25
6611.94093969041489e-239.70469845207445e-24
6711.67910101984035e-228.39550509920173e-23
6818.17721583438274e-264.08860791719137e-26
6911.76785857001911e-248.83929285009557e-25
7011.97888067636391e-239.89440338181953e-24
7113.27386382710771e-221.63693191355386e-22
7217.11984719262795e-213.55992359631398e-21
7311.78279113974635e-198.91395569873177e-20
7413.94914027931354e-181.97457013965677e-18
7517.33700311344483e-173.66850155672241e-17
7611.99774320914338e-169.9887160457169e-17
770.9999999999999984.36018178848758e-152.18009089424379e-15
780.9999999999999519.70281835724196e-144.85140917862098e-14
790.99999999999892.2006248700579e-121.10031243502895e-12
800.9999999999760354.79290849913067e-112.39645424956534e-11
810.9999999994920881.01582400064581e-095.07912000322905e-10
820.9999999977570584.48588324121214e-092.24294162060607e-09
830.9999999897347782.05304444338058e-081.02652222169029e-08
840.9999997657941544.68411691411482e-072.34205845705741e-07
850.9999943281880561.13436238873769e-055.67181194368847e-06
860.99988793804730.0002241239054002580.000112061952700129


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level670.971014492753623NOK
5% type I error level670.971014492753623NOK
10% type I error level670.971014492753623NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/10m29p1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/10m29p1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/1t1sf1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/1t1sf1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/280ku1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/280ku1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/30iyt1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/30iyt1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/4p35o1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/4p35o1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/5tw3e1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/5tw3e1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/6rju71229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/6rju71229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/7exum1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/7exum1229089308.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/83lvi1229089308.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t1229089519jculjpobz36744t/83lvi1229089308.ps (open in new window)


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