Home » date » 2010 » Dec » 26 »

Multiple regressie- OPJ en NWWZ

*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: Sun, 26 Dec 2010 17:01:47 +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/26/t1293382867v81xe0q2k2oxs5c.htm/, Retrieved Sun, 26 Dec 2010 18:01:18 +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/26/t1293382867v81xe0q2k2oxs5c.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 «
20503 206010 22885 198112 26217 194519 26583 185705 27751 180173 28158 176142 27373 203401 28367 221902 26851 197378 26733 185001 26849 176356 26733 180449 27951 180144 29781 173666 32914 165688 33488 161570 35652 156145 36488 153730 35387 182698 35676 200765 34844 176512 32447 166618 31068 158644 29010 159585 29812 163095 30951 159044 32974 155511 32936 153745 34012 150569 32946 150605 31948 179612 30599 194690 27691 189917 25073 184128 23406 175335 22248 179566 22896 181140 25317 177876 26558 175041 26471 169292 27543 166070 26198 166972 24725 206348 25005 215706 23462 202108 20780 195411 19815 193111 19761 195198 21454 198770 23899 194163 24939 190420 23580 189733 24562 186029 24696 191531 23785 232571 23812 243477 21917 227247 19713 217859 19282 208679 18788 213188 21453 216234 24482 213586 27474 209465 27264 204045 27349 200237 30632 203666 29429 241476 30084 260307 26290 243324 24379 244460 23335 233575 21346 237217 21106 235243 24 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 time13 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
OPJV[t] = + 45978.6315862238 -0.119988854669597`NWWZ `[t] + 144.461975506960t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)45978.63158622383235.60508214.210200
`NWWZ `-0.1199888546695970.016739-7.168300
t144.46197550696010.63332713.585800


Multiple Linear Regression - Regression Statistics
Multiple R0.768201032787013
R-squared0.590132826775033
Adjusted R-squared0.584277581443248
F-TEST (value)100.787036808089
F-TEST (DF numerator)2
F-TEST (DF denominator)140
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5105.16763955805
Sum Squared Residuals3648783127.91870


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12050321404.1896112472-901.18961124715
22288522496.3235609346388.676439065388
32621723071.90549126953145.09450873052
42658324273.94923183422309.05076816578
52775125082.18955137342668.81044862661
62815825710.32660005352447.67339994651
72737322584.01238612194788.98761387808
82836720508.56056138677858.43943861333
92685123595.62920881083255.37079118918
102673325225.19323856341507.80676143663
112684926406.958862689442.041137311004
122673326060.3064560333672.693543966703
132795126241.36503221451709.63496778552
142978127163.11480827112617.88519172891
153291428264.84786633214649.15213366791
163348828903.42394536844584.57605463155
173565229698.82545745805953.17454254203
183648830133.0605169926354.939483008
193538726801.68535043018585.31464956991
203567624778.308688621410897.6913113786
213484427832.86035643017011.13964356987
223244729164.49206003813282.50793996192
233106830265.7451626804802.254837319595
242901030297.2976259433-1287.29762594327
252981230020.5987215599-208.59872155995
263095130651.1355473334299.864452666555
273297431219.51814638811754.48185361191
283293631575.88043924161360.11956075844
293401232101.42701717921910.57298282084
303294632241.569393918704.43060608199
313194828905.5146620243042.48533797602
323059927240.78468682283358.21531317724
332769127957.9534656677-266.953465667705
342507328797.0309208570-3724.03092085696
352340629996.5548954737-6590.55489547368
362224829633.3440268736-7385.34402687358
372289629588.9435451306-6692.94354513059
382531730125.0491422791-4808.04914227912
392655830609.6795207744-4051.67952077438
402647131443.9574217769-4972.95742177685
412754331975.0234870293-4432.02348702925
422619832011.2555156242-5813.25551562424
432472527431.0363496612-2706.03634966116
442500526452.6426231700-1447.64262317003
452346228228.7130444742-4766.71304447417
462078029176.7403797034-8396.74037970342
471981529597.1767209504-9782.17672095045
481976129491.2219567620-9730.22195676196
492145429207.0837433891-7753.08374338912
502389929904.3343723589-6005.33437235891
512493930497.9146308942-5558.91463089417
522358030724.8089495591-7144.80894955914
532456231313.7096427623-6751.70964276229
542469630797.9929398771-6101.99293987713
552378526018.1123197438-2233.11231974384
562381224853.9758462242-1041.97584622418
572191726945.8569330187-5028.85693301869
581971328216.7742761638-8503.77427616383
591928229462.7339375377-10180.7339375377
601878829066.1661673394-10278.1661673394
612145328845.1420915228-7392.1420915228
622448229307.3345541949-4825.33455419485
632747429946.2705997952-2472.27059979522
642726430741.0721676114-3477.07216761139
652734931342.4517017002-3993.45170170017
663063231075.4718945451-443.471894545086
672942926683.15527499462745.84472500540
683008424568.10712821845515.89287178162
692629026750.3398225791-460.339822579101
702437926758.4944591814-2379.4944591814
712333528209.0351177669-4874.03511776692
722134627916.4976845672-6570.4976845672
732110628297.8176591919-7191.81765919195
742451429028.9051451786-4514.90514517857
752835329553.7317899881-1200.73178998815
763080530358.8523993059446.147600694093
773134831047.5838195942300.416180405844
783455630914.87154081433641.12845918565
793385526620.46582667427234.53417332575
803478725637.15255714179149.84744285833
813252927847.94259891384681.05740108625
822999828893.52087298941104.47912701062
832925730462.1305645698-1205.13056456979
842815530299.4210721226-2144.42107212258
853046631947.1034189302-1481.10341893024
863570432087.24579566913616.7542043309
873932733035.99306402646291.00693597364
883935132921.15912459236429.84087540768
894223433501.06065369538732.93934630475
904363033607.726139981310022.2738600187
914372230321.586771629813400.4132283702
924312130395.495300591012725.5046994090
933798531746.56519865556238.43480134453
943713534504.98437313962630.01562686041
953464635954.0851654691-1308.08516546908
963302636497.6300716071-3471.63007160711
973508736643.8918799341-1556.89187993412
983884637855.6547177271990.345282272862
994201338909.63221162963103.36778837036
1004390839713.79291011004194.20708988996
1014286840494.91574849392373.08425150612
1024442340549.2660941443873.73390585603
1034416736584.46976378137582.53023621874
1044363636718.37272007736917.62727992271
1054438239247.25321557855134.74678442152
1064214240476.41443729861665.58556270141
1074345241464.63803884221987.36196115785
1083691241026.7941026376-4114.79410263756
1094241341362.75829019721050.24170980280
1104534442169.43875462573174.56124537434
1114487342586.03545252332286.96454747674
1124751043006.71177147964503.28822852037
1134955444184.39777454655369.60222545351
1144736943475.37902678863893.62097321139
1154599840210.23770800435787.76229199569
1164814040290.02569084447849.97430915564
1174844141963.02568598736477.97431401269
1184492842703.59229149282224.40770850717
1194045443152.2260135872-2698.22601358721
1203866141951.612928248-3290.61292824799
1213724641091.0482570424-3845.04825704241
1223684340897.9815843638-4054.98158436379
1233642440762.0296065079-4338.02960650791
1243759441225.301968872-3631.30196887198
1253814441717.8516117754-3573.85161177544
1263873740745.9372834365-2008.93728343648
1273456037503.9538136034-2943.95381360341
1283608037244.4133154378-1164.41331543784
1293350838921.4929316396-5413.49293163955
1303546239932.634404425-4470.63440442501
1313337440372.3889512738-6998.38895127385
1323211038605.0685053301-6495.06850533012
1333553339476.0629958615-3943.06299586149
1343553239828.3456676562-4296.34566765619
1353790340785.3721669857-2882.37216698566
1363676341364.1937963966-4601.19379639656
1374039942285.4636170345-1886.46361703449
1384416442089.03725642512074.96274357488
1394449638564.72001155455931.2799884455
1404311038662.62631144974447.37368855035
1414388040925.9714715672954.02852843298
1424393042067.90079594231862.09920405767
1434432743146.47600505211180.52399494790


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.02010206997851370.04020413995702750.979897930021486
70.004116968332621320.008233936665242650.995883031667379
80.001116679020651580.002233358041303150.998883320979348
90.003031150381708030.006062300763416060.996968849618292
100.004306081307326570.008612162614653150.995693918692673
110.003201510777059760.006403021554119510.99679848922294
120.001817222461854360.003634444923708720.998182777538146
130.0006792801952209950.001358560390441990.999320719804779
140.0002451179148057070.0004902358296114150.999754882085194
150.0002223767211102990.0004447534422205980.99977762327889
160.0001322927723351430.0002645855446702860.999867707227665
170.0001253639358754770.0002507278717509550.999874636064125
189.29297883642812e-050.0001858595767285620.999907070211636
196.1439004325789e-050.0001228780086515780.999938560995674
204.43199583300636e-058.86399166601272e-050.99995568004167
212.36550004415454e-054.73100008830909e-050.999976344999558
224.5789567851917e-059.1579135703834e-050.999954210432148
230.0001810316219675750.0003620632439351490.999818968378032
240.001175633186623060.002351266373246110.998824366813377
250.002173509664161160.004347019328322330.997826490335839
260.002261812122595980.004523624245191970.997738187877404
270.001577554475224510.003155108950449020.998422445524775
280.001122165887469510.002244331774939010.99887783411253
290.0007440978861380970.001488195772276190.999255902113862
300.000561762493148120.001123524986296240.999438237506852
310.0004908702961632810.0009817405923265620.999509129703837
320.0004580332430485780.0009160664860971550.999541966756951
330.0007282959605362490.001456591921072500.999271704039464
340.002130071755019040.004260143510038070.997869928244981
350.00809151193296740.01618302386593480.991908488067033
360.01935463528409690.03870927056819390.980645364715903
370.02541795871668850.0508359174333770.974582041283311
380.02155938344418510.04311876688837020.978440616555815
390.01630631111331540.03261262222663090.983693688886685
400.01281496294140750.02562992588281490.987185037058593
410.009310498828789520.01862099765757900.99068950117121
420.007244405086620230.01448881017324050.99275559491338
430.005043952126903560.01008790425380710.994956047873096
440.003821460938091150.00764292187618230.996178539061909
450.002551682649141440.005103365298282880.997448317350859
460.002570746749638010.005141493499276020.997429253250362
470.003162673846146340.006325347692292680.996837326153854
480.003467951722422510.006935903444845020.996532048277577
490.002691935786684930.005383871573369870.997308064213315
500.001883011045396430.003766022090792860.998116988954604
510.001314070726283430.002628141452566860.998685929273717
520.000969778300449460.001939556600898920.99903022169955
530.0007098026824173610.001419605364834720.999290197317583
540.0005285595507654950.001057119101530990.999471440449235
550.0006867448321805960.001373489664361190.99931325516782
560.0009077351499805120.001815470299961020.99909226485002
570.0006939678804482280.001387935760896460.999306032119552
580.0007119898887665130.001423979777533030.999288010111233
590.001058328824794350.002116657649588710.998941671175206
600.001736599447833910.003473198895667830.998263400552166
610.001946136948662530.003892273897325070.998053863051337
620.002160765801303780.004321531602607560.997839234198696
630.002963133474059680.005926266948119360.99703686652594
640.003635164310434970.007270328620869950.996364835689565
650.004461005964016940.008922011928033880.995538994035983
660.007685242283799420.01537048456759880.9923147577162
670.01806784923705770.03613569847411530.981932150762942
680.04524628604169080.09049257208338170.95475371395831
690.04401667050023140.08803334100046280.95598332949977
700.04104711418858680.08209422837717360.958952885811413
710.04500774826025250.0900154965205050.954992251739748
720.06268586511922430.1253717302384490.937314134880776
730.1032974916595980.2065949833191960.896702508340402
740.1371313355011450.2742626710022910.862868664498855
750.1668691688593960.3337383377187910.833130831140604
760.2082886438450810.4165772876901620.791711356154919
770.2547607376797030.5095214753594060.745239262320297
780.3337159361603160.6674318723206320.666284063839684
790.437093394008590.874186788017180.56290660599141
800.5592196210282060.8815607579435880.440780378971794
810.5744808983426950.851038203314610.425519101657305
820.5717270910498070.8565458179003860.428272908950193
830.6002575925207960.7994848149584080.399742407479204
840.6625523053072990.6748953893854010.337447694692701
850.7276868090172430.5446263819655130.272313190982757
860.7611745418483490.4776509163033030.238825458151651
870.8091347659465240.3817304681069520.190865234053476
880.8393991451220650.3212017097558690.160600854877935
890.8849096851279770.2301806297440450.115090314872023
900.9270250390076770.1459499219846470.0729749609923235
910.973260884524810.05347823095037810.0267391154751891
920.993134422889340.01373115422131960.00686557711065982
930.9940174417731780.01196511645364450.00598255822682224
940.9920821782331820.01583564353363670.00791782176681836
950.9898870857202840.02022582855943210.0101129142797160
960.9908735166919630.01825296661607470.00912648330803737
970.9902637324631650.01947253507367050.00973626753683527
980.9877418296539910.02451634069201750.0122581703460088
990.9841854745455310.03162905090893780.0158145254544689
1000.9802288692208370.03954226155832660.0197711307791633
1010.97391597804090.05216804391820150.0260840219591007
1020.966514400274460.06697119945108080.0334855997255404
1030.9711584402853570.05768311942928630.0288415597146431
1040.9779645512577240.04407089748455130.0220354487422756
1050.9784110890633220.04317782187335670.0215889109366784
1060.9701707411077570.05965851778448580.0298292588922429
1070.9593295638710270.0813408722579460.040670436128973
1080.9604537601119410.07909247977611770.0395462398880588
1090.945690206925990.1086195861480210.0543097930740106
1100.9297297700557310.1405404598885380.0702702299442692
1110.907331886802610.1853362263947820.0926681131973912
1120.8916050219598470.2167899560803070.108394978040153
1130.8828145173541550.2343709652916910.117185482645846
1140.8677479883144360.2645040233711290.132252011685564
1150.9047889703629770.1904220592740470.0952110296370235
1160.9778317785438420.04433644291231510.0221682214561576
1170.9975055049808120.004988990038376550.00249449501918827
1180.9993186683878780.001362663224244810.000681331612122404
1190.999158885375960.001682229248077920.000841114624038959
1200.9989188871030340.002162225793931070.00108111289696553
1210.9984674091487580.003065181702483860.00153259085124193
1220.997766806728290.004466386543421460.00223319327171073
1230.9966004953800020.006799009239996760.00339950461999838
1240.995891400977160.008217198045681050.00410859902284052
1250.996744337997930.006511324004140820.00325566200207041
1260.9996983251675570.0006033496648855330.000301674832442766
1270.9995506722152710.0008986555694580540.000449327784729027
1280.999744760101490.0005104797970205460.000255239898510273
1290.9994620765267540.001075846946492690.000537923473246347
1300.9995488990855120.0009022018289761620.000451100914488081
1310.9987821145056660.002435770988667620.00121788549433381
1320.9984359256428650.003128148714270180.00156407435713509
1330.9954676457300740.009064708539852570.00453235426992628
1340.9917088732215130.01658225355697440.0082911267784872
1350.9776768551580920.04464628968381670.0223231448419083
1360.9918738547534130.01625229049317340.00812614524658668
1370.9981429232534590.003714153493082290.00185707674654114


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level680.515151515151515NOK
5% type I error level940.712121212121212NOK
10% type I error level1060.803030303030303NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/10ltl31293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/10ltl31293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/1wao91293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/1wao91293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/2wao91293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/2wao91293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/3p1nu1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/3p1nu1293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/4p1nu1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/4p1nu1293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/5p1nu1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/5p1nu1293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/60bmf1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/60bmf1293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/7sklh1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/7sklh1293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/8sklh1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/8sklh1293382893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/9sklh1293382893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293382867v81xe0q2k2oxs5c/9sklh1293382893.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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