Home » date » 2010 » Dec » 06 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 06 Dec 2010 13:56:53 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49.htm/, Retrieved Mon, 06 Dec 2010 14:57:21 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3484,74 13830,14 9349,44 7977 -5,6 6 1 2,77 3411,13 14153,22 9327,78 8241 -6,2 3 1 2,76 3288,18 15418,03 9753,63 8444 -7,1 2 1,2 2,76 3280,37 16666,97 10443,5 8490 -1,4 2 1,2 2,46 3173,95 16505,21 10853,87 8388 -0,1 2 0,8 2,46 3165,26 17135,96 10704,02 8099 -0,9 -8 0,7 2,47 3092,71 18033,25 11052,23 7984 0 0 0,7 2,71 3053,05 17671 10935,47 7786 0,1 -2 0,9 2,8 3181,96 17544,22 10714,03 8086 2,6 3 1,2 2,89 2999,93 17677,9 10394,48 9315 6 5 1,3 3,36 3249,57 18470,97 10817,9 9113 6,4 8 1,5 3,31 3210,52 18409,96 11251,2 9023 8,6 8 1,9 3,5 3030,29 18941,6 11281,26 9026 6,4 9 1,8 3,51 2803,47 19685,53 10539,68 9787 7,7 11 1,9 3,71 2767,63 19834,71 10483,39 9536 9,2 13 2,2 3,71 2882,6 19598,93 10947,43 9490 8,6 12 2,1 3,71 2863,36 17039,97 10580,27 9736 7,4 13 2,2 4,21 2897,06 16969,28 10582,92 9694 8,6 15 2,7 4,21 3012,61 16973,38 10654,41 9647 6,2 13 2,8 4,21 3142,95 16329,89 11014,51 9753 6 16 2,9 4,5 3032,93 16153,34 10967,87 10070 6,6 10 3,4 4,51 3045,78 15311,7 10433,56 10137 5,1 14 3 4,51 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
BEL_20[t] = -2047.16188772809 + 0.0723275143762075Nikkei[t] + 0.386310468950729DJ_Indust[t] + 0.00586235663459956Goudprijs[t] + 1.0731471514904Conjunct_Seizoenzuiver[t] -7.03174420326656Cons_vertrouw[t] -14.6090054577671Alg_consumptie_index_BE[t] -12.9375414285237Gem_rente_kasbon_1j[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-2047.16188772809360.12577-5.684600
Nikkei0.07232751437620750.0170054.25324.1e-052.1e-05
DJ_Indust0.3863104689507290.03827710.092500
Goudprijs0.005862356634599560.0092820.63160.5288170.264408
Conjunct_Seizoenzuiver1.07314715149047.6241520.14080.8882910.444145
Cons_vertrouw-7.031744203266566.497973-1.08210.2812880.140644
Alg_consumptie_index_BE-14.609005457767129.85171-0.48940.6254330.312717
Gem_rente_kasbon_1j-12.937541428523743.028156-0.30070.7641650.382082


Multiple Linear Regression - Regression Statistics
Multiple R0.927078632287769
R-squared0.85947479044456
Adjusted R-squared0.851541915711591
F-TEST (value)108.3434214425
F-TEST (DF numerator)7
F-TEST (DF denominator)124
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation290.116655497996
Sum Squared Residuals10436791.5508705


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13484.742513.04224716505971.69775283495
23411.132550.17071763697860.959282363034
33288.182810.49576337477.684236630001
43280.373177.6003619873102.769638012696
53173.953331.07162350843-157.121623508434
63165.263387.89980780453-222.639807804526
73092.713528.24842942687-435.53842942687
83053.053465.86605367731-412.816053677312
93181.963334.88755464712-152.927554647124
102999.933210.359289611-210.429289611004
113249.573407.16655639094-157.59655639094
123210.523563.67375751684-353.153757516838
133030.293605.69489422131-575.404894221313
142803.473360.76583188458-557.295831884577
152767.633331.50231335007-563.87231335007
162882.63501.2915300753-618.691530075303
172863.363159.56350979423-296.203509794231
182897.063135.14796701341-238.087967013415
193012.613172.813349183-160.203349182998
203142.953239.48047702933-96.530477029331
213032.933245.95237651484-213.022376514843
223045.782955.1687831875190.6112168124899
233110.523002.25053557194108.269464428064
243013.242983.3736917473929.8663082526084
252987.12953.7615787287533.3384212712537
262995.552989.552630456665.99736954334172
272833.182680.18362452632152.996375473685
282848.962805.9201357168343.0398642831692
292794.832971.91891963235-177.088919632346
302845.262983.64029736613-138.380297366134
312915.022802.26327507224112.756724927764
322892.632735.39858379642157.231416203582
332604.422168.88679605968435.533203940322
342641.652339.59194808802302.058051911981
352659.812569.9822718551489.827728144863
362638.532598.0638212047640.4661787952357
372720.252507.6437578261212.606242173902
382745.882463.79141445968282.088585540318
392735.72796.55898772855-60.8589877285517
402811.72696.93745250031114.762547499694
412799.432685.32327400572114.106725994275
422555.282415.46146891726139.818531082738
432304.982030.33596231522274.644037684781
442214.952029.43955394705185.510446052952
452065.811801.27367517313264.536324826869
461940.491715.51599287712224.974007122883
4720421950.1892508562191.8107491437909
481995.371929.3721714086965.9978285913104
491946.811913.1961515055133.6138484944906
501765.91718.7834609343847.1165390656171
511635.251742.97103504667-107.721035046669
521833.421812.9039430515620.5160569484361
531910.431941.12543797604-30.6954379760365
541959.672176.45845413851-216.78845413851
551969.62279.63578461636-310.035784616361
562061.412330.11408802713-268.704088027127
572093.482428.85394532106-335.373945321062
582120.882578.37668418935-457.496684189354
592174.562509.00753533109-334.447535331088
602196.722659.11311376011-462.393113760114
612350.442842.00345895263-491.563458952635
622440.252838.67345150581-398.423451505808
632408.642811.33513337478-402.695133374777
642472.812884.35598635747-411.545986357472
652407.62692.87348592586-285.273485925856
662454.622794.75149363828-340.131493638285
672448.052731.04832255857-282.99832255857
682497.842644.75810256734-146.918102567335
692645.642720.58733136742-74.9473313674172
702756.762654.00316572147102.756834278535
712849.272817.9126200012631.3573799987422
722921.442919.851109406071.58889059393404
732981.852892.1254230306689.7245769693375
743080.582946.75347184702133.826528152979
753106.222935.14288332766171.077116672341
763119.312774.36786522877344.942134771225
773061.262834.25836767093227.001632329068
783097.312899.13047084474198.179529155257
793161.692941.73345391272219.956546087279
803257.162974.9579793867282.202020613305
813277.013056.56814410221220.441855897789
823295.322978.61527504628316.704724953718
833363.993199.05761616041164.932383839592
843494.173313.23561621932180.93438378068
853667.033343.49975080762323.530249192376
863813.063401.84898408881411.211015911192
873917.963506.95114359578411.008856404218
883895.513601.65842015465293.851579845351
893801.063593.51885913975207.541140860253
903570.123327.82072543168242.299274568322
913701.613365.67253968774335.937460312255
923862.273494.15960261278368.110397387219
933970.13611.27802547262358.82197452738
944138.523791.72011426174346.799885738257
954199.753852.66270698186347.087293018141
964290.894036.4790102024254.410989797599
974443.914072.54221845797371.367781542027
984502.644137.42282898134365.217171018658
994356.983962.65876349701394.321236502991
1004591.274156.85844065085434.411559349153
1014696.964426.09333882031270.866661179692
1024621.44485.9714253816135.428574618402
1034562.844568.23672396381-5.39672396381288
1044202.524300.95790338994-98.4379033899365
1054296.494406.2607467519-109.770746751903
1064435.234571.34253545309-136.112535453087
1074105.184245.83162809351-140.651628093511
1084116.684291.75368311439-175.073683114394
1093844.493843.34520108131.14479891869715
1103720.983768.77387935548-47.7938793554795
1113674.43603.4559793226170.9440206773902
1123857.623851.765424829415.85457517059325
1133801.063955.5299365064-154.469936506402
1143504.373668.29571027602-163.925710276023
1153032.63331.01404974883-298.414049748829
1163047.033384.30478666795-337.274786667948
1172962.343141.46433135622-179.124331356217
1182197.822245.42290890139-47.602908901391
1192014.452032.05379814711-17.6037981471105
1201862.832049.36098603662-186.530986036618
1211905.411953.22083825645-47.810838256453
1221810.991687.76757234031123.222427659686
1231670.071539.2419717546130.828028245398
1241864.441888.76129141735-24.3212914173478
1252052.022081.65021075726-29.6302107572624
1262029.62201.32254681594-171.722546815938
1272070.832226.49667183747-155.666671837467
1282293.412500.17498406255-206.764984062554
1292443.272601.61720593431-158.347205934307
1302513.172684.26042005449-171.090420054495
1312466.922789.33277902907-322.412779029072
1322502.662937.74226763193-435.082267631931


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.08750930447361540.1750186089472310.912490695526385
120.03357603415075670.06715206830151330.966423965849243
130.01610270022977890.03220540045955790.98389729977022
140.01521905778850780.03043811557701560.984780942211492
150.01471864192050870.02943728384101750.985281358079491
160.01088639465813550.0217727893162710.989113605341864
170.02839878214387330.05679756428774660.971601217856127
180.0280808358782630.0561616717565260.971919164121737
190.02005043360318210.04010086720636410.979949566396818
200.01698528354219880.03397056708439750.9830147164578
210.01260710039444520.02521420078889050.987392899605555
220.007376989326878350.01475397865375670.992623010673122
230.004118515193455120.008237030386910240.995881484806545
240.004956139605686210.009912279211372420.995043860394314
250.01063689316231350.02127378632462710.989363106837686
260.01127801573412480.02255603146824960.988721984265875
270.03041012495029020.06082024990058030.96958987504971
280.06486872109895560.1297374421979110.935131278901044
290.07837659800774110.1567531960154820.921623401992259
300.07300371594551020.146007431891020.92699628405449
310.05328759627268440.1065751925453690.946712403727316
320.0371409735762230.0742819471524460.962859026423777
330.06123116776109910.1224623355221980.9387688322389
340.04996119353514990.09992238707029990.95003880646485
350.04322180381719360.08644360763438710.956778196182806
360.03856261867249810.07712523734499620.961437381327502
370.0316302211121620.06326044222432410.968369778887838
380.02842644866254950.0568528973250990.97157355133745
390.02064662652074820.04129325304149640.979353373479252
400.019242953475350.03848590695070.98075704652465
410.01364386446215030.02728772892430060.98635613553785
420.01387795448008850.0277559089601770.986122045519912
430.04738553098500130.09477106197000260.952614469014999
440.0936680404460880.1873360808921760.906331959553912
450.1172109754015260.2344219508030520.882789024598474
460.1731692808873310.3463385617746630.826830719112668
470.2087011347263930.4174022694527870.791298865273607
480.1929910548814070.3859821097628130.807008945118593
490.1788857704898060.3577715409796120.821114229510194
500.1529842057244430.3059684114488870.847015794275557
510.1508018037857280.3016036075714560.849198196214272
520.2723371817753930.5446743635507860.727662818224607
530.3496495477436510.6992990954873010.65035045225635
540.4097011013425640.8194022026851270.590298898657436
550.4074627171800010.8149254343600030.592537282819999
560.3762732909970030.7525465819940060.623726709002997
570.3980099495035830.7960198990071670.601990050496417
580.462217416933150.9244348338662990.53778258306685
590.486591095928120.973182191856240.51340890407188
600.5010087227279640.9979825545440710.498991277272036
610.5464499927503080.9071000144993840.453550007249692
620.5462157292225550.907568541554890.453784270777445
630.6478704023216880.7042591953566250.352129597678312
640.8682355238485270.2635289523029470.131764476151473
650.9372316872614550.1255366254770890.0627683127385445
660.980454475107790.03909104978442120.0195455248922106
670.9951370902005940.009725819598812870.00486290979940643
680.998453539230050.003092921539897550.00154646076994877
690.9995245501326950.000950899734610710.000475449867305355
700.999872620218950.0002547595620986260.000127379781049313
710.9999424753131450.0001150493737098685.7524686854934e-05
720.999963006704367.39865912818429e-053.69932956409214e-05
730.9999758538700064.82922599885831e-052.41461299942916e-05
740.9999832848027153.34303945696871e-051.67151972848435e-05
750.9999899602658642.00794682716592e-051.00397341358296e-05
760.9999929103920621.4179215875988e-057.08960793799402e-06
770.999994428584211.11428315800221e-055.57141579001103e-06
780.9999958899929278.22001414596243e-064.11000707298122e-06
790.9999960797182087.84056358475542e-063.92028179237771e-06
800.9999968224986.3550040000917e-063.17750200004585e-06
810.9999982240097273.55198054537045e-061.77599027268522e-06
820.9999991047198151.79056037082588e-068.9528018541294e-07
830.9999988281168422.34376631524907e-061.17188315762453e-06
840.999998757477422.48504515847819e-061.2425225792391e-06
850.9999989579664252.08406714998244e-061.04203357499122e-06
860.9999986297965822.74040683598103e-061.37020341799051e-06
870.9999979526080024.09478399580471e-062.04739199790236e-06
880.999997367706585.26458684149547e-062.63229342074773e-06
890.9999954854955639.02900887351383e-064.51450443675692e-06
900.99999450313391.09937322002118e-055.49686610010591e-06
910.9999898179857822.0364028435404e-051.0182014217702e-05
920.9999809821882653.80356234691745e-051.90178117345872e-05
930.9999646697919177.06604161658346e-053.53302080829173e-05
940.9999464655864450.0001070688271104465.35344135552229e-05
950.9998953114936060.0002093770127875010.000104688506393751
960.9998523316617380.0002953366765245830.000147668338262292
970.9997720666499670.0004558667000657530.000227933350032877
980.9995749776922240.0008500446155512850.000425022307775643
990.999391905967030.001216188065939830.000608094032969913
1000.9995344998322790.0009310003354423730.000465500167721187
1010.9996822666740260.0006354666519482840.000317733325974142
1020.999706163078920.0005876738421592320.000293836921079616
1030.9996416949108450.0007166101783101250.000358305089155063
1040.9994727379159080.001054524168185010.000527262084092506
1050.9992513748638850.001497250272229210.000748625136114606
1060.9987791997428390.002441600514321960.00122080025716098
1070.9987070800970890.002585839805822490.00129291990291124
1080.9979689011510820.004062197697834980.00203109884891749
1090.9988908457424340.00221830851513130.00110915425756565
1100.9989955044477280.002008991104543360.00100449555227168
1110.9993725279835930.00125494403281410.000627472016407048
1120.999727913158670.0005441736826604980.000272086841330249
1130.9999290871300730.000141825739853157.09128699265752e-05
1140.9999942850699361.14298601280183e-055.71493006400913e-06
1150.9999751287289844.9742542032518e-052.4871271016259e-05
1160.9998954056402480.0002091887195042790.000104594359752139
1170.9997041211079720.0005917577840552130.000295878892027606
1180.9987937218658950.00241255626821070.00120627813410535
1190.9997124557900220.0005750884199552930.000287544209977647
1200.9982549407329990.003490118534002280.00174505926700114
1210.989773644134650.02045271173070080.0102263558653504


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level560.504504504504504NOK
5% type I error level720.648648648648649NOK
10% type I error level830.747747747747748NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/10b8211291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/10b8211291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/14p5p1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/14p5p1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/2wg4s1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/2wg4s1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/3wg4s1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/3wg4s1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/4wg4s1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/4wg4s1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/57p4d1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/57p4d1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/67p4d1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/67p4d1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/70glf1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/70glf1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/80glf1291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/80glf1291643802.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/9b8211291643802.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916438383b0wittuxfmkk49/9b8211291643802.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