Home » date » 2008 » Dec » 10 »

Regressie Prof bach vanaf 1-7-2007

*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: Wed, 10 Dec 2008 06:54:00 -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/10/t1228917442ndz061cp7sr0jkt.htm/, Retrieved Wed, 10 Dec 2008 13:57:22 +0000
 
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/10/t1228917442ndz061cp7sr0jkt.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13363 0 12530 0 11420 0 10948 0 10173 0 10602 0 16094 0 19631 0 17140 0 14345 0 12632 0 12894 0 11808 0 10673 0 9939 0 9890 0 9283 0 10131 0 15864 0 19283 0 16203 0 13919 0 11937 0 11795 0 11268 0 10522 0 9929 0 9725 0 9372 0 10068 0 16230 0 19115 0 18351 0 16265 0 14103 0 14115 0 13327 0 12618 0 12129 0 11775 0 11493 0 12470 0 20792 0 22337 0 21325 0 18581 0 16475 0 16581 0 15745 0 14453 0 13712 0 13766 0 13336 0 15346 0 24446 0 26178 0 24628 0 21282 0 18850 0 18822 0 18060 0 17536 0 16417 0 15842 0 15188 0 16905 0 25430 0 27962 0 26607 0 23364 0 20827 0 20506 0 19181 0 18016 0 17354 0 16256 0 15770 0 17538 0 26899 0 28915 0 25247 0 22856 0 19980 0 19856 0 16994 0 16839 0 15618 0 15883 0 15513 0 17106 0 25272 0 26731 0 22891 0 19583 0 16939 0 16757 0 15435 0 14786 0 13680 0 13208 0 12707 0 14277 0 22436 1 23229 1 18241 1 16145 1 13994 1 14780 1 13100 1 12329 1 12463 1 11532 1 10784 1 13106 1 19491 1 20418 1 16094 1 14491 1 13067 1
 
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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
NWWZPB[t] = + 12013.6749808669 -7096.88669095463Dummy[t] -1067.34863116660M1[t] -1948.72976424651M2[t] -2796.31089732643M3[t] -3263.39203040634M4[t] -3867.47316348625M5[t] -2557.95429656616M6[t] + 5608.75323944939M7[t] + 7609.77210636948M8[t] + 4819.09097328957M9[t] + 2146.00984020965M10[t] -140.171292870259M11[t] + 83.481133079912t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)12013.6749808669756.17091715.887500
Dummy-7096.88669095463660.983306-10.736900
M1-1067.34863116660915.549309-1.16580.2463360.123168
M2-1948.72976424651915.361475-2.12890.0355990.0178
M3-2796.31089732643915.222563-3.05530.002850.001425
M4-3263.39203040634915.132596-3.5660.0005470.000274
M5-3867.47316348625915.091588-4.22635.1e-052.5e-05
M6-2557.95429656616915.099546-2.79530.0061670.003083
M75608.75323944939916.719756.118300
M87609.77210636948916.5339818.302800
M94819.09097328957916.3970725.25871e-060
M102146.00984020965916.3090452.3420.0210670.010533
M11-140.171292870259916.269916-0.1530.8787070.439354
t83.4811330799126.69395812.471100


Multiple Linear Regression - Regression Statistics
Multiple R0.915533895859757
R-squared0.838202314468144
Adjusted R-squared0.818170220068962
F-TEST (value)41.842969475142
F-TEST (DF numerator)13
F-TEST (DF denominator)105
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1991.58481829619
Sum Squared Residuals416473059.289126


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11336311029.80748278022333.19251721979
21253010231.90748278022298.09251721979
3114209467.807482780211952.19251721979
4109489084.207482780211863.79251721979
5101738563.607482780211609.39251721979
6106029956.60748278021645.392517219787
71609418206.7961518757-2112.79615187568
81963120291.2961518757-660.296151875674
91714017584.0961518757-444.096151875674
101434514994.4961518757-649.49615187567
111263212791.7961518757-159.796151875674
121289413015.4485778258-121.448577825846
131180812031.5810797392-223.581079739156
141067311233.6810797392-560.681079739159
15993910469.5810797392-530.581079739157
16989010085.9810797392-195.981079739158
1792839565.38107973916-282.381079739158
181013110958.3810797392-827.381079739157
191586419208.5697488346-3344.56974883462
201928321293.0697488346-2010.06974883462
211620318585.8697488346-2382.86974883462
221391915996.2697488346-2077.26974883462
231193713793.5697488346-1856.56974883462
241179514017.2221747848-2222.22217478479
251126813033.3546766981-1765.35467669810
261052212235.4546766981-1713.4546766981
27992911471.3546766981-1542.3546766981
28972511087.7546766981-1362.75467669810
29937210567.1546766981-1195.15467669810
301006811960.1546766981-1892.15467669810
311623020210.3433457936-3980.34334579356
321911522294.8433457936-3179.84334579356
331835119587.6433457936-1236.64334579357
341626516998.0433457936-733.043345793566
351410314795.3433457936-692.343345793565
361411515018.9957717437-903.995771743737
371332714035.1282736570-708.128273657047
381261813237.2282736570-619.228273657046
391212912473.1282736570-344.128273657047
401177512089.5282736570-314.528273657046
411149311568.9282736570-75.9282736570467
421247012961.9282736570-491.928273657046
432079221212.1169427525-420.11694275251
442233723296.6169427525-959.616942752508
452132520589.4169427525735.58305724749
461858117999.8169427525581.18305724749
471647515797.1169427525677.88305724749
481658116020.7693687027560.230631297319
491574515036.901870616708.098129384009
501445314239.001870616213.998129384010
511371213474.901870616237.098129384009
521376613091.301870616674.69812938401
531333612570.701870616765.298129384009
541534613963.7018706161382.29812938401
552444622213.89053971152232.10946028855
562617824298.39053971151879.60946028854
572462821591.19053971153036.80946028854
582128219001.59053971152280.40946028855
591885016798.89053971152051.10946028855
601882217022.54296566161799.45703433838
611806016038.67546757492021.32453242506
621753615240.77546757492295.22453242507
631641714476.67546757491940.32453242506
641584214093.07546757491748.92453242506
651518813572.47546757491615.52453242506
661690514965.47546757491939.52453242506
672543023215.66413667042214.3358633296
682796225300.16413667042661.8358633296
692660722592.96413667044014.0358633296
702336420003.36413667043360.6358633296
712082717800.66413667043026.3358633296
722050618024.31656262062481.68343737943
731918117040.44906453392140.55093546612
741801616242.54906453391773.45093546612
751735415478.44906453391875.55093546612
761625615094.84906453391161.15093546612
771577014574.24906453391195.75093546612
781753815967.24906453391570.75093546612
792689924217.43773362932681.56226637066
802891526301.93773362932613.06226637065
812524723594.73773362931652.26226637066
822285621005.13773362931850.86226637066
831998018802.43773362931177.56226637066
841985619026.0901595795829.909840420486
851699418042.2226614928-1048.22266149282
861683917244.3226614928-405.322661492825
871561816480.2226614928-862.222661492824
881588316096.6226614928-213.622661492824
891551315576.0226614928-63.0226614928238
901710616969.0226614928136.977338507177
912527225219.211330588352.7886694117137
922673127303.7113305883-572.711330588288
932289124596.5113305883-1705.51133058829
941958322006.9113305883-2423.91133058829
951693919804.2113305883-2865.21133058829
961675720027.8637565385-3270.86375653846
971543519043.9962584518-3608.99625845177
981478618246.0962584518-3460.09625845177
991368017481.9962584518-3801.99625845177
1001320817098.3962584518-3890.39625845177
1011270716577.7962584518-3870.79625845177
1021427717970.7962584518-3693.79625845177
1032243619124.09823659263311.9017634074
1042322921208.59823659262020.4017634074
1051824118501.3982365926-260.398236592601
1061614515911.7982365926233.201763407399
1071399413709.0982365926284.901763407399
1081478013932.7506625428847.249337457228
1091310012948.8831644561151.116835543917
1101232912150.9831644561178.016835543918
1111246311386.88316445611076.11683554392
1121153211003.2831644561528.716835543918
1131078410482.6831644561301.316835543918
1141310611875.68316445611230.31683554392
1151949120125.8718335515-634.871833551547
1162041822210.3718335515-1792.37183355154
1171609419503.1718335515-3409.17183355154
1181449116913.5718335515-2422.57183355155
1191306714710.8718335515-1643.87183355155


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.004860968307099920.009721936614199840.9951390316929
180.002564137014603610.005128274029207220.997435862985396
190.001514813703508730.003029627407017460.998485186296491
200.0005338315599754320.001067663119950860.999466168440025
210.0001122536696987070.0002245073393974140.999887746330301
223.28764127045154e-056.57528254090308e-050.999967123587295
236.95596345394575e-061.39119269078915e-050.999993044036546
241.44843737696234e-062.89687475392468e-060.999998551562623
252.66598915131778e-075.33197830263555e-070.999999733401085
265.65845555656118e-081.13169111131224e-070.999999943415444
272.02946688290276e-084.05893376580552e-080.999999979705331
286.89875376882125e-091.37975075376425e-080.999999993101246
294.89490309384618e-099.78980618769237e-090.999999995105097
303.33309108725183e-096.66618217450366e-090.999999996666909
311.91546219744602e-083.83092439489204e-080.999999980845378
321.37144544591753e-082.74289089183506e-080.999999986285546
331.99760676710620e-063.99521353421239e-060.999998002393233
344.78009425052581e-059.56018850105161e-050.999952199057495
350.0001586373779098350.000317274755819670.99984136262209
360.0003453147723888060.0006906295447776120.999654685227611
370.0003599498406300350.0007198996812600690.99964005015937
380.0003963812177860540.0007927624355721090.999603618782214
390.0004921625856771770.0009843251713543540.999507837414323
400.0005057753089332080.001011550617866420.999494224691067
410.0005843695694152360.001168739138830470.999415630430585
420.0009866697114990480.001973339422998100.9990133302885
430.02005695967859330.04011391935718660.979943040321407
440.04761005914030530.09522011828061050.952389940859695
450.09932215811980080.1986443162396020.9006778418802
460.1513861300958550.302772260191710.848613869904145
470.1999965609831090.3999931219662180.800003439016891
480.2635788255327510.5271576510655020.736421174467249
490.2767026051402130.5534052102804270.723297394859787
500.3136122525212610.6272245050425210.68638774747874
510.3687540174108090.7375080348216190.631245982589191
520.4170662256687610.8341324513375230.582933774331239
530.4818687778263150.963737555652630.518131222173685
540.6165815600221370.7668368799557270.383418439977863
550.8844762053268520.2310475893462970.115523794673148
560.9558030814293550.08839383714128910.0441969185706446
570.9717177236746940.05656455265061150.0282822763253057
580.9797119220526260.04057615589474710.0202880779473736
590.9853032817517080.02939343649658430.0146967182482921
600.9908310969952370.01833780600952560.0091689030047628
610.9903228824174830.01935423516503420.00967711758251708
620.9901469460736670.01970610785266590.00985305392633293
630.9918005106112750.01639897877744920.00819948938872459
640.993982280104290.01203543979142160.00601771989571078
650.996913704560230.006172590879539280.00308629543976964
660.9992498905909020.001500218818196310.000750109409098156
670.999944430790180.0001111384196400265.55692098200131e-05
680.999984191004433.16179911409395e-051.58089955704697e-05
690.9999856600131482.86799737031082e-051.43399868515541e-05
700.999977452696244.50946075205582e-052.25473037602791e-05
710.9999615157640227.6968471956443e-053.84842359782215e-05
720.9999401879699570.0001196240600855675.98120300427837e-05
730.9998827564177880.0002344871644233920.000117243582211696
740.9998208945486360.0003582109027273670.000179105451363684
750.9997285790504680.0005428418990635540.000271420949531777
760.9998250979984380.0003498040031231090.000174902001561555
770.99992081041240.0001583791751996047.91895875998022e-05
780.9999868635352362.62729295269546e-051.31364647634773e-05
790.9999800595002263.98809995475258e-051.99404997737629e-05
800.9999606840474777.86319050468587e-053.93159525234294e-05
810.9999604031727947.91936544119184e-053.95968272059592e-05
820.9999655270686176.89458627653212e-053.44729313826606e-05
830.9999388229276560.0001223541446882516.11770723441255e-05
840.9998919699393120.0002160601213757400.000108030060687870
850.9999047899574540.000190420085091889.521004254594e-05
860.9998453485616060.0003093028767882670.000154651438394134
870.9998735685168770.0002528629662454340.000126431483122717
880.999756981176810.0004860376463781730.000243018823189087
890.9995050099838630.0009899800322736580.000494990016136829
900.9990272280114660.001945543977068770.000972771988534383
910.9981509831192390.003698033761522430.00184901688076122
920.998225262229110.003549475541778890.00177473777088944
930.999937871513270.0001242569734619286.21284867309642e-05
940.9999741667310895.16665378229629e-052.58332689114814e-05
950.9999508842066139.8231586774798e-054.9115793387399e-05
960.9998648669347580.0002702661304834970.000135133065241749
970.9997245540148140.0005508919703711580.000275445985185579
980.9995668327793320.0008663344413362320.000433167220668116
990.998644638218730.002710723562541510.00135536178127076
1000.995328779539220.009342440921559530.00467122046077977
1010.9866274704651120.02674505906977670.0133725295348884
1020.95348492004330.09303015991339830.0465150799566992


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level620.72093023255814NOK
5% type I error level710.825581395348837NOK
10% type I error level750.872093023255814NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/108kvy1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/108kvy1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/197y11228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/197y11228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/29l4k1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/29l4k1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/3099b1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/3099b1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/4vb391228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/4vb391228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/5ug3r1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/5ug3r1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/6y1ym1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/6y1ym1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/7vsij1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/7vsij1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/8raxu1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/8raxu1228917225.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/9475v1228917225.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228917442ndz061cp7sr0jkt/9475v1228917225.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