Home » date » 2010 » Dec » 18 »

Paper Multiple Regression zonder outlier

*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: Sat, 18 Dec 2010 15:07:16 +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/18/t1292684989n3qg08shhrdkffw.htm/, Retrieved Sat, 18 Dec 2010 16:10:01 +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/18/t1292684989n3qg08shhrdkffw.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 «
41 25 15 9 3 38 25 15 9 4 37 19 14 9 4 42 18 10 8 4 40 23 18 15 3 43 25 14 9 4 40 23 11 11 4 45 30 17 6 5 45 32 21 10 4 44 25 7 11 4 42 26 18 16 4 32 25 13 11 5 32 25 13 11 5 41 35 18 7 4 38 20 12 10 4 38 21 9 9 4 24 23 11 15 3 46 17 11 6 5 42 27 16 12 4 46 25 12 10 4 43 18 14 14 5 38 22 13 9 4 39 23 17 14 4 40 25 13 14 3 37 19 13 9 2 41 20 12 8 4 46 26 12 10 4 26 16 12 9 3 37 22 9 9 3 39 25 17 9 4 44 29 18 11 5 38 22 12 10 2 38 32 12 8 0 38 23 9 14 4 33 18 13 10 3 43 26 11 14 4 41 14 13 15 2 49 20 6 8 4 45 25 11 10 5 31 21 18 13 3 30 21 18 13 3 38 23 15 10 4 39 24 11 11 4 40 21 14 10 4 36 17 12 16 2 49 29 8 6 5 41 25 11 11 4 42 25 17 14 3 41 25 16 9 5 43 21 13 11 4 46 23 15 8 3 41 25 16 8 5 39 25 7 11 4 42 24 16 16 4 35 21 13 12 5 36 22 15 14 3 48 14 12 8 4 41 20 12 10 4 47 21 24 14 3 41 22 15 10 3 31 19 8 5 5 36 28 18 12 4 46 25 17 9 4 44 21 15 8 4 43 27 11 16 2 40 19 12 13 5 40 20 14 8 3 46 17 11 14 3 39 22 10 8 4 44 26 11 7 4 38 17 12 1 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 time10 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
StudyForCareer[t] = + 34.1121269448891 + 0.146658179226907PersonalStandards[t] + 0.0321645865737117ParentalExpectations[t] -0.216148635234074Doubts[t] + 1.20809176779421LeaderPreference[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)34.11212694488913.12984710.89900
PersonalStandards0.1466581792269070.099361.4760.1421820.071091
ParentalExpectations0.03216458657371170.1221760.26330.7927340.396367
Doubts-0.2161486352340740.147914-1.46130.1461710.073085
LeaderPreference1.208091767794210.4629082.60980.0100450.005023


Multiple Linear Regression - Regression Statistics
Multiple R0.338860725617068
R-squared0.114826591365726
Adjusted R-squared0.0895359225476039
F-TEST (value)4.5402749999022
F-TEST (DF numerator)4
F-TEST (DF denominator)140
p-value0.00177031601377786
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.75523002302489
Sum Squared Residuals3165.70976006283


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14139.93998781044321.06001218955680
23841.1480795782376-3.14807957823759
33740.2359659163024-3.23596591630244
44240.17679802601481.82320197398524
54038.44627340030631.55372659969373
64341.11591499166391.88408500833611
74040.2938076030208-0.293807603020789
84543.8022373210161.19776267898401
94542.15152571703412.84847428296585
104440.45846561517983.54153438482024
114239.87819107054712.12180892945288
123241.8595449024162-9.85954490241624
133241.8595449024162-9.85954490241624
144143.143452400696-2.14345240069595
153840.1021462871479-2.10214628714785
163840.3684593418877-2.3684593418877
172438.2211212942903-14.2211212942903
184641.70269347162394.29730652837608
194240.82511461756291.17488538243710
204640.83543718328245.16456281671761
214340.21665632869942.78334367130062
223840.6437758674095-2.64377586740945
233939.8383492167608-0.838349216760837
244038.79491546112561.20508453887440
253737.7876177941403-0.78761779414031
264140.5344435576160.465556442383999
274640.98209536250935.0179046374907
282638.5235704376801-12.5235704376801
293739.3070257533204-2.30702575332040
303941.212408751385-2.21240875138502
314442.60700055219241.39299944780758
323837.97927911001320.0207208899867524
333837.46197463716210.538025362837949
343839.5810325241711-1.58103252417114
353338.6329027474735-5.63290274747354
364340.08533623499932.91466376500071
374135.75743508660135.24256491339867
384940.34145603817378.65854396182627
394542.01136436450292.98863563549711
403138.5852543123206-7.5852543123206
413038.5852543123206-8.5852543123206
423840.6386145845497-2.63861458454971
433940.4404657822477-1.44046578224770
444040.3131336395222-0.313133639522183
453635.94909640247430.0509035975257332
464943.36609786262575.63390213737432
474140.58712396147460.412876038525396
484238.92357380742043.07642619257956
494142.3883359326055-1.38833593260552
504340.06482041771442.9351795822856
514639.86282008722366.13717991277635
524142.6044845678396-1.60448456783959
533940.4584656151798-1.45846561517976
544239.52054553894592.47945446105412
553541.0567635502745-6.05676355027453
563638.4192700965923-2.41927009659230
574839.65449448225468.34550551774544
584140.10214628714790.897853712852147
594738.56209319652888.4379068034712
604139.28386463752861.71613536247141
613142.1156647055907-11.1156647055907
623641.0361019699372-5.03610196993723
634641.2124087513854.78759124861498
644440.77759549656403.22240450343596
654337.38351360816965.61648639183037
664040.5151339700129-0.515133970012933
674039.39068096296920.609319037030786
684637.55732085416298.44267914583709
693940.7634307429224-1.76343074292239
704441.59837668163782.40162331836219
713837.02983957864460.970160421355363
723940.0404624125073-1.04046241250734
734142.6494877044856-1.64948770448562
743938.82708004769930.172919952300693
754039.65184918374760.348150816252356
764440.3697855454573.63021445454297
774239.76898807490782.23101192509225
784642.29435815723723.70564184276278
794440.04033309835333.95966690164674
803740.5047949553951-3.50479495539512
813937.61131101269251.38868898730748
824038.53892497210521.46107502789476
834238.92357380742043.07642619257956
843739.2246967472409-2.22469674724091
853338.2970827878282-5.2970827878282
863540.1446334394411-5.14463343944105
874236.43552959452445.56447040547557
883636.4637226790219-0.463722679021899
894439.58103252417114.41896747582886
904539.79201987654555.20798012345453
914740.90095613721336.09904386278669
924041.0335859855844-1.03358598558440
934938.861906381678310.1380936183217
944843.59509215656384.40490784343618
952940.7389434235613-11.7389434235613
964541.5018993708153.498100629185
972936.9551878397777-7.95518783977773
984140.46495310160880.535046898391166
993437.49549121647-3.49549121646999
1003836.60389337181971.39610662818027
1013738.2507698965112-1.25076989651116
1024843.7302308806564.26976911934401
1033940.9177661893619-1.91776618936187
1043440.3104883410153-6.31048834101527
1053537.0993300346518-2.09933003465180
1064140.16897499574980.83102500425022
1074339.62232989568083.37767010431916
1084138.81688679613392.1831132038661
1093936.59105482174742.40894517825259
1103640.9885828489384-4.98858284893837
1113241.4027438636886-9.40274386368862
1124640.0454943812135.954505618787
1134240.90492763928961.09507236071044
1144236.82652949348295.17347050651712
1154539.67499385064115.32500614935888
1163940.7209435906292-1.72094359062919
1174540.96276932600794.0372306739921
1184842.23267428259675.7673257174033
1192838.504260850077-10.5042608500770
1203538.0166049794467-3.0166049794467
1213839.0162418281177-1.01624182811774
1224238.73073205103063.26926794896942
1233638.4295926623118-2.42959266231178
1243740.7955953294961-3.79559532949610
1253839.3958422458290-1.39584224582896
1264340.59096614939682.40903385060323
1273535.2491598736969-0.249159873696940
1283639.8538330653401-3.85383306534007
1293336.9025074359191-3.90250743591912
1303938.36527993806270.634720061937313
1313240.9897726297219-8.98977262972187
1324539.47300996904875.5269900309513
1333539.9233235213472-4.92332352134723
1343838.1414375867177-0.141437586717712
1353637.7541434528956-1.75414345289559
1364238.45407998167293.54592001832708
1374139.55535542402651.44464457597349
1384738.9853869962158.01461300378497
1393538.8065642304144-3.80656423041442
1404337.99729539184365.00270460815636
1414040.0286843290644-0.0286843290644402
1424640.72610487348895.27389512651106
1434441.5018993708152.498100629185
1443538.9957095619345-3.99570956193452
1452939.6273618643865-10.6273618643865


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2359691619686990.4719383239373970.764030838031301
90.1295841601660890.2591683203321790.87041583983391
100.06124303349346870.1224860669869370.938756966506531
110.02709022165817760.05418044331635520.972909778341822
120.2351782616272830.4703565232545660.764821738372717
130.2850960619260520.5701921238521030.714903938073948
140.3161081149725730.6322162299451470.683891885027427
150.2329991110103440.4659982220206870.767000888989656
160.1721248567801700.3442497135603410.82787514321983
170.768595712916410.4628085741671810.231404287083590
180.7573759869997970.4852480260004060.242624013000203
190.7200788822670120.5598422354659760.279921117732988
200.7711434810577750.457713037884450.228856518942225
210.7732208565432570.4535582869134860.226779143456743
220.7321648834000890.5356702331998220.267835116599911
230.6701103525890670.6597792948218650.329889647410933
240.6360110513988590.7279778972022820.363988948601141
250.5816996505223630.8366006989552750.418300349477637
260.5141100520561240.9717798958877520.485889947943876
270.5574396512151520.8851206975696960.442560348784848
280.8185816460903240.3628367078193530.181418353909676
290.776474004410420.4470519911791610.223525995589580
300.7370561407972770.5258877184054460.262943859202723
310.6859762656055590.6280474687888820.314023734394441
320.6394089600246170.7211820799507660.360591039975383
330.5838158833293980.8323682333412050.416184116670602
340.5276054069218950.944789186156210.472394593078105
350.5125237356745340.9749525286509320.487476264325466
360.4890414514127910.9780829028255820.510958548587209
370.5687100344774650.862579931045070.431289965522535
380.7078691984823670.5842616030352660.292130801517633
390.6750724605981680.6498550788036640.324927539401832
400.7081788378853760.5836423242292480.291821162114624
410.7575645901627060.4848708196745880.242435409837294
420.7215004093087930.5569991813824140.278499590691207
430.6789625496255830.6420749007488340.321037450374417
440.6314625633978410.7370748732043190.368537436602159
450.5919692455077220.8160615089845550.408030754492278
460.5851671098741540.8296657802516920.414832890125846
470.5331619356224870.9336761287550260.466838064377513
480.5229276332951820.9541447334096360.477072366704818
490.4733938422840940.9467876845681890.526606157715906
500.4498210253468540.8996420506937080.550178974653146
510.5024642807816180.9950714384367630.497535719218382
520.4555744939743310.9111489879486620.544425506025669
530.417887337615430.835774675230860.58211266238457
540.3912147424864120.7824294849728240.608785257513588
550.4144202951254710.8288405902509430.585579704874529
560.375794947404510.751589894809020.62420505259549
570.5006281296548340.9987437406903320.499371870345166
580.4528302866065670.9056605732131340.547169713393433
590.5799686205073540.8400627589852930.420031379492646
600.5368729208510070.9262541582979850.463127079148992
610.7317229409847560.5365541180304880.268277059015244
620.7354762733176740.5290474533646520.264523726682326
630.7332844425443720.5334311149112560.266715557455628
640.709612013622970.580775972754060.29038798637703
650.7295934094054640.5408131811890710.270406590594536
660.6910570193017320.6178859613965360.308942980698268
670.6475725614439950.704854877112010.352427438556005
680.7354179044754740.5291641910490520.264582095524526
690.7001182708759880.5997634582480240.299881729124012
700.6672764047763580.6654471904472830.332723595223642
710.62433013134550.7513397373089990.375669868654500
720.5818350164949610.8363299670100790.418164983505039
730.5402115871740760.9195768256518470.459788412825924
740.4921148415258030.9842296830516050.507885158474197
750.443995087705450.88799017541090.55600491229455
760.4213123798050320.8426247596100650.578687620194968
770.3817714440702930.7635428881405850.618228555929707
780.3631557311726060.7263114623452130.636844268827394
790.3476109026756020.6952218053512030.652389097324398
800.326172766780760.652345533561520.67382723321924
810.2898393152073010.5796786304146030.710160684792698
820.2535476550953530.5070953101907060.746452344904647
830.237495414163320.474990828326640.76250458583668
840.2083119745810250.416623949162050.791688025418975
850.2100935333898160.4201870667796320.789906466610184
860.2250635443824580.4501270887649160.774936455617542
870.2356753088841160.4713506177682320.764324691115884
880.1999641692434160.3999283384868330.800035830756584
890.1912545543401060.3825091086802110.808745445659894
900.1963687050611040.3927374101222070.803631294938896
910.2259232179776580.4518464359553160.774076782022342
920.1905533526785160.3811067053570330.809446647321484
930.3374616279370910.6749232558741830.662538372062909
940.3724552387519330.7449104775038660.627544761248067
950.6527103045043120.6945793909913760.347289695495688
960.6273428213283840.7453143573432320.372657178671616
970.6819050171976210.6361899656047570.318094982802379
980.6335077570603260.7329844858793470.366492242939674
990.6135618495641110.7728763008717780.386438150435889
1000.5634562066120940.8730875867758120.436543793387906
1010.5144981116512380.9710037766975230.485501888348762
1020.5077077582225230.9845844835549530.492292241777477
1030.462432833507310.924865667014620.53756716649269
1040.4525287729815150.905057545963030.547471227018485
1050.4138838799290530.8277677598581050.586116120070947
1060.3628917103538830.7257834207077660.637108289646117
1070.3284506851047450.6569013702094890.671549314895255
1080.2864182562172060.5728365124344120.713581743782794
1090.2455535526208820.4911071052417640.754446447379118
1100.2322954058137710.4645908116275430.767704594186229
1110.4071212743336050.8142425486672110.592878725666395
1120.4288663788319950.857732757663990.571133621168005
1130.3716257072222790.7432514144445580.628374292777721
1140.3770624742941100.7541249485882190.622937525705890
1150.3549704376545530.7099408753091070.645029562345447
1160.3050397478789600.6100794957579210.69496025212104
1170.2765981486985520.5531962973971040.723401851301448
1180.2949713800620370.5899427601240750.705028619937963
1190.4983424899937420.9966849799874830.501657510006258
1200.445566921874160.891133843748320.55443307812584
1210.3785003948468540.7570007896937080.621499605153146
1220.3413539282446790.6827078564893570.658646071755321
1230.288186418815140.576372837630280.71181358118486
1240.2540354015408620.5080708030817250.745964598459138
1250.2054219868460950.4108439736921890.794578013153905
1260.1948559424497450.3897118848994900.805144057550255
1270.1457946815626370.2915893631252730.854205318437363
1280.1258173424052410.2516346848104820.874182657594759
1290.1245311465209270.2490622930418540.875468853479073
1300.09541888100986060.1908377620197210.90458111899014
1310.2232488422135420.4464976844270840.776751157786458
1320.1633881946147820.3267763892295650.836611805385218
1330.1618922530869850.3237845061739690.838107746913015
1340.10969730169910.21939460339820.8903026983009
1350.0773373205489190.1546746410978380.922662679451081
1360.04204188926339350.0840837785267870.957958110736607
1370.02382211065382880.04764422130765770.976177889346171


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.00769230769230769OK
10% type I error level30.0230769230769231OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/10lib81292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/10lib81292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/179eh1292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/179eh1292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/279eh1292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/279eh1292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/379eh1292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/379eh1292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/4hiv21292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/4hiv21292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/5hiv21292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/5hiv21292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/6hiv21292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/6hiv21292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/7a9c51292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/7a9c51292684824.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/8lib81292684824.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292684989n3qg08shhrdkffw/8lib81292684824.ps (open in new window)


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