Home » date » 2010 » Nov » 20 »

*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, 20 Nov 2010 14:23:08 +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/Nov/20/t12902630713xb6mlhmbqb40oc.htm/, Retrieved Sat, 20 Nov 2010 15:24:43 +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/Nov/20/t12902630713xb6mlhmbqb40oc.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 «
16 24 14 11 12 24 26 19 25 11 7 8 25 23 15 17 6 17 8 30 25 14 18 12 10 8 19 23 13 18 8 12 9 22 19 19 16 10 12 7 22 29 15 20 10 11 4 25 25 14 16 11 11 11 23 21 15 18 16 12 7 17 22 16 17 11 13 7 21 25 16 23 13 14 12 19 24 16 30 12 16 10 19 18 16 23 8 11 10 15 22 17 18 12 10 8 16 15 15 15 11 11 8 23 22 15 12 4 15 4 27 28 20 21 9 9 9 22 20 18 15 8 11 8 14 12 16 20 8 17 7 22 24 16 31 14 17 11 23 20 16 27 15 11 9 23 21 19 34 16 18 11 21 20 16 21 9 14 13 19 21 17 31 14 10 8 18 23 17 19 11 11 8 20 28 16 16 8 15 9 23 24 15 20 9 15 6 25 24 16 21 9 13 9 19 24 14 22 9 16 9 24 23 15 17 9 13 6 22 23 12 24 10 9 6 25 29 14 25 16 18 16 26 24 16 26 11 18 5 29 18 14 25 8 12 7 32 25 7 17 9 17 9 25 21 10 32 16 9 6 29 26 14 33 11 9 6 28 22 16 13 16 12 5 17 22 16 32 12 18 12 28 22 16 25 12 12 7 29 23 14 29 14 18 10 26 30 20 22 9 14 9 25 23 14 18 10 15 8 14 17 14 17 9 16 5 25 23 11 20 10 10 8 26 23 14 15 12 11 8 20 25 15 20 14 14 10 18 24 16 33 14 9 6 32 24 14 29 10 12 8 25 23 16 23 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Learning[t] = + 13.2522145863475 + 0.0923250546673155Concern[t] -0.0427279901581466Doubts[t] -0.0293172689010877Expectations[t] -0.0197865743236952Critisism[t] -0.106730229334144Standards[t] + 0.139579173878108Organization[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13.25221458634751.5040098.811300
Concern0.09232505466731550.0397742.32120.0216030.010801
Doubts-0.04272799015814660.071763-0.59540.5524560.276228
Expectations-0.02931726890108770.066075-0.44370.6578930.328946
Critisism-0.01978657432369520.083118-0.23810.8121610.40608
Standards-0.1067302293341440.052239-2.04310.0427680.021384
Organization0.1395791738781080.0508942.74250.0068290.003415


Multiple Linear Regression - Regression Statistics
Multiple R0.28527509482277
R-squared0.0813818797261403
Adjusted R-squared0.0451206381363827
F-TEST (value)2.24432137892177
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value0.0419327428945955
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.20293550134255
Sum Squared Residuals737.644573107455


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11615.3774282031640.622571796835987
21915.26888485023653.73111514976348
31514.19625887576340.80374112423664
41415.1323110467088-1.13231104670877
51314.3462945117006-1.34629451170062
61915.51155330947823.48844669052183
71515.0910231365047-0.0910231365047432
81414.1956326705673-0.195632670567322
91514.99643240738790.00356759261211682
101615.08024663890800.919753361092036
111615.49437213086620.505627869133822
121615.32683907127210.673160928727901
131615.98329960658790.0167003934120774
141714.33586834368632.66413165631366
151514.30224651274920.697753487250799
161514.69679862747680.303201372523214
172014.80807266612585.1919273338742
181813.99521080844994.00478919155015
191615.12182729456770.878172705432253
201615.13684173281800.86315826718202
211615.07986945992260.920130540077404
221915.51250410627083.48749589372917
231615.04210988620610.957890113793886
241716.35381100640170.646188993598278
251715.82921246268951.17078753731046
261614.66485823571911.33514176428087
271514.83732972853300.162670271466959
281615.56931097403630.430689025963693
291414.9004539014515-0.900453901451533
301514.79960061645760.200399383542408
311216.0377014398412-4.03770143984122
321414.6073112914882-0.607311291488232
331613.97326288323582.02673711676415
341414.8023157929464-0.802315792946436
35714.0236227821235-7.02362278212351
361015.6742754972600-5.67427549725997
371415.5286540365397-1.52865403653973
381614.57438028269871.42561971730130
391615.01102612566230.988973874337695
401614.67243617256011.32756382743994
411416.0182619796846-2.01826197968461
422014.85235820991965.14764179008043
431414.7673567859217-0.767356785921694
441414.4112446960756-0.411244696075594
451114.6553055310207-3.65530553102069
461414.9984467322278-0.99844673222781
471515.3209723546876-0.320972354687619
481615.25270749648490.74729250351507
491415.5343267145585-1.53432671455850
501614.40350630798411.59649369201594
511415.6383904217565-1.63839042175646
521215.1279791945909-3.12797919459086
531615.93494823861390.0650517613860827
54914.3886856780754-5.38868567807539
551413.98582285320500.0141771467949624
561616.0733728526849-0.0733728526849043
571615.33963779806560.660362201934421
581514.45997170516830.540028294831744
591615.33680395488180.663196045118234
601214.1034719803858-2.10347198038577
611614.83525605147551.16474394852448
621615.05229156017850.947708439821472
631415.2913983228153-1.29139832281525
641614.73435904723651.26564095276351
651714.50920904375652.49079095624346
661815.97558309521662.02441690478340
671816.29351993499101.70648006500895
681214.1318680827179-2.1318680827179
691614.57738906094841.42261093905161
701014.9691488490518-4.96914884905182
711415.9413161873238-1.94131618732378
721815.18846345640702.81153654359298
731815.76691844132302.23308155867696
741615.29888388605840.70111611394156
751715.53085923041501.46914076958496
761615.23486918546910.765130814530894
771614.60254902408801.39745097591204
781315.0916190466583-2.09161904665835
791615.63519022730820.364809772691838
801615.26995037560120.73004962439877
812015.29889070388604.70110929611403
821615.99155969905920.00844030094082513
831515.1817552301293-0.181755230129346
841514.77159415249530.228405847504681
851616.1847912960147-0.184791296014749
861415.32874610633-1.32874610633000
871614.91725221363611.08274778636389
881615.20975129722370.790248702776306
891514.76751752548200.232482474518029
901215.2055462291260-3.20554622912597
911716.02122606067300.978773939326954
921614.93059340080491.06940659919505
931515.2925263780727-0.292526378072747
941314.7411258401995-1.74112584019952
951615.62878589114620.371214108853806
961615.04760102278390.952398977216122
971616.0902670359112-0.090267035911169
981615.29885540296310.701144597036892
991415.1415439899500-1.14154398994997
1001615.04752897281280.952471027187227
1011614.78715354211601.21284645788398
1022014.77075609658665.22924390341344
1031514.05793211127980.94206788872024
1041614.76402388164211.23597611835787
1051316.1703347361151-3.17033473611508
1061714.81999997077712.18000002922290
1071614.86923993173251.13076006826751
1081614.57028699881161.42971300118842
1091214.8878353458285-2.88783534582852
1101615.08323119215070.916768807849265
1111614.77808422168461.22191577831542
1121716.21773304652550.782266953474543
1131314.5977670489683-1.59776704896826
1141213.1531697933760-1.15316979337598
1151813.48972601714154.51027398285853
1161415.0160995294844-1.01609952948437
1171413.37918921910950.620810780890483
1181314.4865574749015-1.48655747490150
1191615.34614601611020.65385398388977
1201314.7420596185223-1.74205961852228
1211615.47102196298830.528978037011681
1221314.0032970962407-1.00329709624071
1231614.0408284149691.95917158503099
1241515.3555181860132-0.355518186013225
1251615.2403916399930.759608360007
1261514.94100780522560.0589921947743524
1271714.92478262650992.07521737349013
1281515.2154582522641-0.215458252264068
1291215.2859884400631-3.28598844006306
1301615.93446035991830.0655396400816665
1311014.1654807098006-4.16548070980057
1321615.05824271029260.941757289707381
1331215.1900290208836-3.19002902088364
1341415.3337666935367-1.33376669353674
1351515.7562983412273-0.756298341227266
1361314.6087468770138-1.60874687701377
1371514.65178414576150.348215854238486
1381113.4153204682324-2.41532046823244
1391215.058595555758-3.05859555575799
140813.8644917867719-5.86449178677194
1411614.48115293473811.51884706526189
1421514.84717074234420.152829257655816
1431712.92493501881314.07506498118689
1441615.35453248512040.645467514879553
1451014.5354775240592-4.53547752405919
1461815.27296790636792.72703209363208
1471315.0370151997097-2.03701519970971
1481614.80341645163781.19658354836216
1491314.5622041209489-1.56220412094892
1501014.9902132507904-4.99021325079041
1511514.59480648439220.405193515607761
1521615.31467404655020.685325953449797
1531616.4890094965522-0.489009496552171
1541414.0167283962363-0.0167283962363217
1551014.0151949172672-4.01519491726715
1561714.84063295670382.15936704329619
1571315.5467163713719-2.54671637137193
1581514.81295392018650.187046079813482
1591615.53419971908590.465800280914103


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.4885564177155880.9771128354311770.511443582284411
110.3299624246123570.6599248492247150.670037575387643
120.2449547132643100.4899094265286210.75504528673569
130.1654462290310460.3308924580620920.834553770968954
140.3607045146342530.7214090292685070.639295485365747
150.2594132504584490.5188265009168990.74058674954155
160.1791032871774240.3582065743548470.820896712822576
170.3534655511567410.7069311023134820.646534448843259
180.3980761275001650.796152255000330.601923872499835
190.3245869500546110.6491739001092220.675413049945389
200.2559108473373150.511821694674630.744089152662685
210.1958439070682080.3916878141364170.804156092931792
220.2532996404906570.5065992809813150.746700359509343
230.1953711816027380.3907423632054770.804628818397262
240.1672580035811730.3345160071623470.832741996418827
250.1295456074315740.2590912148631470.870454392568426
260.09892227424463790.1978445484892760.901077725755362
270.07458325899695230.1491665179939050.925416741003048
280.05378588344680160.1075717668936030.946214116553198
290.0491834222824240.0983668445648480.950816577717576
300.03534037048799670.07068074097599340.964659629512003
310.1321687666053200.2643375332106410.86783123339468
320.1065275609373180.2130551218746350.893472439062682
330.0832339135551060.1664678271102120.916766086444894
340.06810922003810220.1362184400762040.931890779961898
350.5936980832121790.8126038335756430.406301916787821
360.8256672926781990.3486654146436030.174332707321801
370.8008456913954420.3983086172091170.199154308604558
380.7657035512930740.4685928974138510.234296448706926
390.735752148380480.5284957032390390.264247851619519
400.7184218855481840.5631562289036320.281578114451816
410.6872037232156760.6255925535686480.312796276784324
420.8446395828666870.3107208342666250.155360417133313
430.8506183824832360.2987632350335270.149381617516764
440.819296385924710.361407228150580.18070361407529
450.876732792034720.2465344159305590.123267207965279
460.8547171953456960.2905656093086080.145282804654304
470.8248918523013150.350216295397370.175108147698685
480.8022585175986530.3954829648026950.197741482401347
490.7873314259876530.4253371480246930.212668574012347
500.7652854669723740.4694290660552520.234714533027626
510.7420669443294380.5158661113411250.257933055670562
520.7865065720572390.4269868558855220.213493427942761
530.7494617777498270.5010764445003460.250538222250173
540.9164394675097710.1671210649804580.0835605324902288
550.9033232399969050.1933535200061900.0966767600030949
560.881117968389370.237764063221260.11888203161063
570.8598944714034940.2802110571930110.140105528596506
580.8322689447475290.3354621105049430.167731055252471
590.8104136994803580.3791726010392840.189586300519642
600.8161993424732880.3676013150534230.183800657526712
610.7925141501193880.4149716997612240.207485849880612
620.7626174712624550.4747650574750890.237382528737545
630.7353441887441650.529311622511670.264655811255835
640.7108288242107250.5783423515785490.289171175789275
650.7202670414412440.5594659171175130.279732958558756
660.719200072116880.5615998557662390.280799927883119
670.6984237357654470.6031525284691050.301576264234553
680.69650083864790.6069983227041990.303499161352099
690.6726308326637630.6547383346724740.327369167336237
700.8180901922696890.3638196154606230.181909807730311
710.8139437289409540.3721125421180920.186056271059046
720.830091133172270.3398177336554610.169908866827730
730.8283690056599640.3432619886800730.171630994340036
740.7998979398680010.4002041202639980.200102060131999
750.7789532638823480.4420934722353030.221046736117652
760.7469457480193250.506108503961350.253054251980675
770.7221774634711150.5556450730577690.277822536528885
780.7185317382474020.5629365235051960.281468261752598
790.6788238654900280.6423522690199430.321176134509972
800.639432472177950.72113505564410.36056752782205
810.7798514194337080.4402971611325830.220148580566292
820.7449158028825770.5101683942348460.255084197117423
830.7067407008172220.5865185983655550.293259299182778
840.6662024371296210.6675951257407580.333797562870379
850.6224807587256190.7550384825487620.377519241274381
860.5937447723615770.8125104552768450.406255227638423
870.5583758779231860.8832482441536290.441624122076814
880.5199884259516280.9600231480967440.480011574048372
890.4761741008576890.9523482017153770.523825899142311
900.5250792032131060.9498415935737880.474920796786894
910.4898849412194150.979769882438830.510115058780585
920.4555022835212370.9110045670424740.544497716478763
930.4089229968706660.8178459937413310.591077003129334
940.3920091198185210.7840182396370420.607990880181479
950.3534645185363530.7069290370727060.646535481463647
960.3231914599684260.6463829199368510.676808540031574
970.2829818799569850.5659637599139710.717018120043015
980.2528511527892220.5057023055784440.747148847210778
990.2237070329885890.4474140659771770.776292967011411
1000.1961272533729900.3922545067459800.80387274662701
1010.1766934291315540.3533868582631070.823306570868446
1020.3597770434804550.7195540869609110.640222956519545
1030.3263236222300010.6526472444600020.673676377769999
1040.3107931921534890.6215863843069790.68920680784651
1050.3310572753105860.6621145506211720.668942724689414
1060.3220813856265160.6441627712530310.677918614373484
1070.2951562553321090.5903125106642190.70484374466789
1080.2826324114389680.5652648228779370.717367588561032
1090.3036163521645210.6072327043290430.696383647835479
1100.2701660113651030.5403320227302070.729833988634897
1110.2594058987931140.5188117975862280.740594101206886
1120.2626563865075630.5253127730151250.737343613492437
1130.2338853666436560.4677707332873120.766114633356344
1140.2095126404433920.4190252808867850.790487359556608
1150.4281821985145530.8563643970291050.571817801485447
1160.3799955276172880.7599910552345770.620004472382712
1170.3541685034470410.7083370068940810.645831496552959
1180.3187143063412840.6374286126825680.681285693658716
1190.2769154746339580.5538309492679160.723084525366042
1200.2783561253796730.5567122507593450.721643874620327
1210.2353386165215560.4706772330431110.764661383478444
1220.2016719133285530.4033438266571050.798328086671448
1230.2119201581320450.423840316264090.788079841867955
1240.1897258531175460.3794517062350930.810274146882454
1250.1537897323166920.3075794646333840.846210267683308
1260.1232407411483660.2464814822967320.876759258851634
1270.1638892778540820.3277785557081630.836110722145919
1280.1489764751245140.2979529502490280.851023524875486
1290.1367579788925670.2735159577851340.863242021107433
1300.1057135538486200.2114271076972400.89428644615138
1310.1278039803034340.2556079606068680.872196019696566
1320.1292801387533740.2585602775067480.870719861246626
1330.1142094328395980.2284188656791970.885790567160402
1340.08650454972829740.1730090994565950.913495450271703
1350.06457292410761090.1291458482152220.935427075892389
1360.05166844132109050.1033368826421810.94833155867891
1370.03561593016910330.07123186033820670.964384069830897
1380.03852422606614480.07704845213228960.961475773933855
1390.02856213303508410.05712426607016830.971437866964916
1400.1617791875442350.323558375088470.838220812455765
1410.1273764405742700.2547528811485390.87262355942573
1420.0877779713165090.1755559426330180.912222028683491
1430.2540377183719090.5080754367438180.745962281628091
1440.2095677485176250.4191354970352510.790432251482375
1450.2933376209085690.5866752418171380.706662379091431
1460.2266177756719760.4532355513439510.773382224328024
1470.1492242026279370.2984484052558740.850775797372063
1480.1086858275847110.2173716551694210.89131417241529
1490.06775264458974720.1355052891794940.932247355410253


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level50.0357142857142857OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/10grv41290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/10grv41290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/1khfv1290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/1khfv1290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/2khfv1290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/2khfv1290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/3khfv1290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/3khfv1290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/4d8wy1290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/4d8wy1290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/5d8wy1290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/5d8wy1290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/6d8wy1290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/6d8wy1290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/750d11290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/750d11290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/8grv41290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/8grv41290262977.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/9grv41290262977.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902630713xb6mlhmbqb40oc/9grv41290262977.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