Home » date » 2010 » Dec » 28 »

*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: Tue, 28 Dec 2010 11:42:46 +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/28/t1293536435uvar110iaqq80ur.htm/, Retrieved Tue, 28 Dec 2010 12:40:35 +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/28/t1293536435uvar110iaqq80ur.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 «
9 14 11 12 24 26 9 11 7 8 25 23 9 6 17 8 30 25 9 12 10 8 19 23 9 8 12 9 22 19 9 10 12 7 22 29 10 10 11 4 25 25 10 11 11 11 23 21 10 16 12 7 17 22 10 11 13 7 21 25 10 13 14 12 19 24 10 12 16 10 19 18 10 8 11 10 15 22 10 12 10 8 16 15 10 11 11 8 23 22 10 4 15 4 27 28 10 9 9 9 22 20 10 8 11 8 14 12 10 8 17 7 22 24 10 14 17 11 23 20 10 15 11 9 23 21 10 16 18 11 21 20 10 9 14 13 19 21 10 14 10 8 18 23 10 11 11 8 20 28 10 8 15 9 23 24 10 9 15 6 25 24 10 9 13 9 19 24 10 9 16 9 24 23 10 9 13 6 22 23 10 10 9 6 25 29 10 16 18 16 26 24 10 11 18 5 29 18 10 8 12 7 32 25 10 9 17 9 25 21 10 16 9 6 29 26 10 11 9 6 28 22 10 16 12 5 17 22 10 12 18 12 28 22 10 12 12 7 29 23 10 14 18 10 26 30 10 9 14 9 25 23 10 10 15 8 14 17 10 9 16 5 25 23 10 10 10 8 26 23 10 12 11 8 20 25 10 14 14 10 18 24 10 14 9 6 32 24 10 10 12 8 25 23 10 14 17 7 25 21 10 16 5 4 23 24 10 9 12 8 21 24 10 10 12 8 20 28 10 6 6 4 15 16 10 8 24 20 30 20 10 13 12 8 24 29 10 10 12 8 26 27 10 8 14 6 24 22 10 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24
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
PersonalStandards[t] = + 19.3022138771629 -1.09313336363416Maand[t] -0.113100006049103DoubtsAboutActions[t] + 0.339616385684055ParentalExpectations[t] + 0.0926111824644223ParentalCriticism[t] + 0.440453149254567`Organization `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)19.302213877162916.1453951.19550.2337320.116866
Maand-1.093133363634161.594907-0.68540.4941350.247068
DoubtsAboutActions-0.1131000060491030.109722-1.03080.3042670.152134
ParentalExpectations0.3396163856840550.1094553.10280.0022840.001142
ParentalCriticism0.09261118246442230.1425980.64950.5170160.258508
`Organization `0.4404531492545670.0794125.546500


Multiple Linear Regression - Regression Statistics
Multiple R0.474394730418847
R-squared0.22505036024917
Adjusted R-squared0.199725208623326
F-TEST (value)8.88643683457784
F-TEST (DF numerator)5
F-TEST (DF denominator)153
p-value1.99000035228103e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.77241020116043
Sum Squared Residuals2177.35504505035


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12424.1795098324845-0.179509832484548
22521.46854013027423.53145986972578
33026.31111031586943.68888968413058
41922.3742892812773-3.37428928127728
52221.83672066228800.163279337712045
62225.8298297778066-3.82982977780658
72522.35743388407682.64256611592317
82321.13079955826041.86920044173959
91720.9749243330958-3.97492433309583
102123.2014001967891-2.20140019678911
111923.3374193334425-4.3374193334425
121921.3018108504035-2.30181085040347
131521.8179415431979-6.81794154319787
141617.7575307236066-1.75753072360659
152321.29341916012171.70658083987829
162725.71585891087141.28414108912863
172220.05209128480711.94790871519290
181417.2281876857233-3.22818768572335
192224.4587126084181-2.45871260841807
202322.38874470496290.611255295037128
212320.49317716913522.50682283086484
222122.5021610785487-1.50216107854872
231922.5610710923396-3.56107109233963
241821.0549559055449-3.05495590554492
252023.9361380556491-3.93613805564912
262323.9647022019788-0.964702201978801
272523.57376864853641.42623135146357
281923.1723694245616-4.17236942456159
292423.75076543235920.249234567640813
302222.4540827279138-0.454082727913754
312523.62523607465581.37476392534417
322624.72702958788911.27297041211090
332921.63108771549867.36891228450143
343223.20108382925248.79891617074764
352523.20947551953411.79052448046589
362921.62527659059757.37472340940249
372820.42896402382487.57103597617524
381720.789701968167-3.78970196816699
392823.92807858371874.07192141628131
402921.86777750654687.13222249345319
412627.0402814007282-1.04028140072818
422523.07153266099111.92846733900892
431420.5627189626342-6.5627189626342
442523.38032070250151.61967929749850
452621.50735592974134.49264407025867
462022.5016786018363-2.50167860183631
471823.0390969624646-5.03909696246455
483220.970570304186611.0294296958134
492522.18658870110942.81341129889056
502522.45875312435982.54124687564025
512319.20068238442333.79931761557669
522122.7401418564131-1.74014185641311
532024.3888544473823-4.38885444738228
541517.1476736365619-2.14767363656186
553026.27816008322573.72183991677432
562424.4900075784895-0.490007578489536
572623.94840129812772.05159870187229
582422.46634597039231.53365402960766
592222.6596278072516-0.659627807251618
601418.877533011766-4.87753301176601
612423.27320618813210.7267938118679
622422.78143587111921.21856412888078
632424.7492760241878-0.74927602418776
642421.02188747194492.9781125280551
651921.5691387680321-2.56913876803212
663123.85997803539697.14002196460313
672222.5136254767782-0.513625476778157
682721.75839879433355.24160120566654
691921.8637398451743-2.86373984517431
702522.61477860788542.38522139211458
712021.8797243814887-1.87972438148866
722121.1882283676420-0.188228367641955
732724.73250849443882.26749150556117
742323.9366205323615-0.936620532361526
752524.0142217977910.985778202209001
762021.3056824026003-1.30568240260031
772122.7694889961774-1.76948899617738
782223.1726857920983-1.17268579209834
792323.9238748131705-0.923874813170527
802521.7874295665613.21257043343902
812524.02084002454420.979159975455801
821723.6207317873855-6.6207317873855
831921.8595519254407-2.85955192544072
842524.39692977012730.603070229872721
851921.8597021838018-2.85970218380181
862023.7797962045867-3.77979620458670
872622.00959191728673.99040808271331
882323.3580584153883-0.358058415388266
892723.43406817727943.56593182272058
901721.2130712201359-4.21307122013588
911722.8538745975357-5.85387459753571
921921.6488539729445-2.64885397294445
931720.7768059906149-3.77680599061490
942221.69885604546910.30114395453094
952123.9071072834216-2.9071072834216
963226.93494034988735.06505965011267
972123.1607389171565-2.16073891715649
982123.374525428415-2.37452542841502
991821.326171226185-3.32617122618499
1001820.7643924897752-2.76439248977523
1012322.50975392458130.490246075418683
1021921.4597600558188-2.45976005581877
1032021.7790537270938-1.77905372709380
1042123.1764070859341-2.17640708593409
1052024.2225135516852-4.22251355168522
1061717.5931135497992-0.593113549799169
1071818.9982258638477-0.998225863847709
1081919.3009022637349-0.300902263734905
1092222.1499650828493-0.149965082849328
1101520.6680600134750-5.66806001347505
1111420.5583649337250-6.55836493372495
1121824.5821521350561-6.58215213505612
1132420.35041365578503.64958634421496
1143522.198701685226912.8012983147731
1152921.55835672996297.4416432700371
1162122.915024700753-1.915024700753
1172520.37299231043504.62700768956498
1182019.10760457606110.892395423938942
1192223.2861021656842-1.28610216568419
1201315.9400469299208-2.94004692992075
1212619.56450888752786.4354911124722
1221718.8977054678139-1.89770546781394
1232520.92944239865614.07055760134386
1242021.0707743326836-1.07077433268360
1251920.4854182139269-1.48541821392690
1262123.7715706234806-2.77157062348062
1272221.80356436123640.196435638763587
1282423.055231757140.944768242860016
1292124.2797921027057-3.27979210270568
1302622.27547858973813.72452141026189
1312420.48867288186483.51132711813518
1321621.4187824086494-5.41878240864941
1332323.0035982218449-0.00359822184492236
1341821.0234948262978-3.02349482629779
1351622.1865887011094-6.18658870110944
1362624.30898898410891.69101101589115
1371920.3407068702696-1.34070687026959
1382117.98808476461403.01191523538596
1392122.9458530449266-1.94585304492664
1402218.78671940124773.21328059875229
1412316.84387235903426.15612764096582
1422922.72400706173776.27599293826232
1432121.1950285543854-0.195028554385388
1442120.08562634430490.91437365569505
1452323.3827510095211-0.382751009521109
1462721.42360306345655.57639693654351
1472522.32856922102502.67143077897503
1482120.54610169124640.453898308753636
1491017.9877683970773-7.9877683970773
1502021.9558844017409-1.9558844017409
1512621.83843036678254.16156963321745
1522423.30690735680560.693092643194387
1532927.68014387927981.31985612072018
1541917.94871447179761.05128552820243
1552423.93211624509120.0678837549088088
1561921.5731764294046-2.57317642940462
1572421.83502544048352.16497455951646
1582222.6109070556886-0.610907055688576
1591723.3048333765549-6.30483337655489


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.5194814785923160.9610370428153680.480518521407684
100.4238752428868990.8477504857737980.576124757113101
110.3627647972268050.725529594453610.637235202773195
120.2439815985939860.4879631971879710.756018401406014
130.6072282872680340.7855434254639310.392771712731966
140.5048073016896890.9903853966206230.495192698310311
150.4722910650045650.944582130009130.527708934995435
160.3758984776095470.7517969552190930.624101522390453
170.3160395682529780.6320791365059560.683960431747022
180.3018940664321940.6037881328643880.698105933567806
190.2368810476969590.4737620953939170.763118952303041
200.2469533834175760.4939067668351510.753046616582424
210.2627917237131740.5255834474263490.737208276286826
220.2042451484587030.4084902969174060.795754851541297
230.1644555088605000.3289110177209990.8355444911395
240.1370962955583830.2741925911167670.862903704441617
250.1203409698393880.2406819396787770.879659030160612
260.08800163023335910.1760032604667180.911998369766641
270.06947008058729430.1389401611745890.930529919412706
280.0619906856211280.1239813712422560.938009314378872
290.0465716063882220.0931432127764440.953428393611778
300.03201229486848360.06402458973696730.967987705131516
310.02603452490667690.05206904981335370.973965475093323
320.02991790787708370.05983581575416740.970082092122916
330.06722343184393030.1344468636878610.93277656815607
340.2740742278311380.5481484556622750.725925772168862
350.2347297039714350.4694594079428710.765270296028565
360.3601690241911190.7203380483822380.639830975808881
370.4926193235979050.985238647195810.507380676402095
380.5600610613119440.8798778773761120.439938938688056
390.5905931327727420.8188137344545170.409406867227258
400.6907608973228790.6184782053542420.309239102677121
410.646374604893720.707250790212560.35362539510628
420.607695781312440.784608437375120.39230421868756
430.7073805502357060.5852388995285880.292619449764294
440.665557400142470.668885199715060.33444259985753
450.6763539320924910.6472921358150180.323646067907509
460.6557572174932760.6884855650134490.344242782506724
470.6842699221042560.6314601557914890.315730077895744
480.8904862606248580.2190274787502850.109513739375142
490.876350823929220.2472983521415590.123649176070779
500.8588357017102170.2823285965795660.141164298289783
510.8451456579355860.3097086841288280.154854342064414
520.8225983842660340.3548032314679320.177401615733966
530.8386006447322470.3227987105355060.161399355267753
540.8265128287041340.3469743425917330.173487171295866
550.870313477756180.2593730444876420.129686522243821
560.8446230316895640.3107539366208720.155376968310436
570.8212717791474720.3574564417050570.178728220852529
580.7925840338009380.4148319323981240.207415966199062
590.7599655551738920.4800688896522160.240034444826108
600.7847399528103270.4305200943793450.215260047189673
610.7489855294721310.5020289410557380.251014470527869
620.7135353811592330.5729292376815330.286464618840767
630.6773987785474360.6452024429051290.322601221452564
640.6586607273775450.682678545244910.341339272622455
650.6393871145458980.7212257709082030.360612885454102
660.7336531772966430.5326936454067150.266346822703357
670.6945931001994040.6108137996011920.305406899800596
680.7320615529413420.5358768941173160.267938447058658
690.72012933505210.5597413298958010.279870664947901
700.695717804027440.608564391945120.30428219597256
710.6644878982055950.6710242035888090.335512101794405
720.6214254542815240.7571490914369520.378574545718476
730.5940062362783030.8119875274433930.405993763721697
740.550573669638020.898852660723960.44942633036198
750.511508559190440.976982881619120.48849144080956
760.46981633595180.93963267190360.5301836640482
770.4371079836163150.874215967232630.562892016383685
780.3957988192085010.7915976384170030.604201180791499
790.3568779643948450.713755928789690.643122035605155
800.3481801927094300.6963603854188590.65181980729057
810.3099340775751640.6198681551503280.690065922424836
820.3933433081138560.7866866162277130.606656691886144
830.3724349951824910.7448699903649830.627565004817509
840.3308838893190770.6617677786381540.669116110680923
850.3141908394960310.6283816789920630.685809160503969
860.3110784003048280.6221568006096570.688921599695172
870.3217374235146390.6434748470292780.678262576485361
880.2819319175891380.5638638351782750.718068082410862
890.2788795988642850.557759197728570.721120401135715
900.2834642702431340.5669285404862690.716535729756866
910.3322045299249890.6644090598499780.667795470075011
920.3073468235454590.6146936470909180.692653176454541
930.3019084659495770.6038169318991530.698091534050423
940.2628226546847810.5256453093695620.737177345315219
950.2455497979088680.4910995958177360.754450202091132
960.2816383476749410.5632766953498810.71836165232506
970.2529255975090710.5058511950181420.747074402490929
980.2279256110349100.4558512220698210.77207438896509
990.2157103387940780.4314206775881560.784289661205922
1000.1972267821604990.3944535643209980.802773217839501
1010.1661147590784320.3322295181568640.833885240921568
1020.1467680604616000.2935361209231990.8532319395384
1030.1246386530211340.2492773060422690.875361346978866
1040.1076792493633850.215358498726770.892320750636615
1050.1128450132029840.2256900264059670.887154986797016
1060.09120968025848840.1824193605169770.908790319741512
1070.07429960800151930.1485992160030390.92570039199848
1080.05951207691321050.1190241538264210.94048792308679
1090.04629173492395220.09258346984790430.953708265076048
1100.06049810639257550.1209962127851510.939501893607424
1110.09530942846349120.1906188569269820.904690571536509
1120.1515749251074300.3031498502148600.84842507489257
1130.1416968075687310.2833936151374620.85830319243127
1140.5843658035692720.8312683928614570.415634196430728
1150.7243272323088850.5513455353822290.275672767691115
1160.6864861444296570.6270277111406850.313513855570343
1170.7361852547346360.5276294905307280.263814745265364
1180.6903301837721020.6193396324557960.309669816227898
1190.6509431598019190.6981136803961630.349056840198081
1200.652848622405790.694302755188420.34715137759421
1210.7271676201674480.5456647596651040.272832379832552
1220.6971683500859190.6056632998281610.302831649914081
1230.6928244285888090.6143511428223820.307175571411191
1240.6397624983920430.7204750032159140.360237501607957
1250.6665504761384390.6668990477231220.333449523861561
1260.6366360603363980.7267278793272040.363363939663602
1270.5792239449777980.8415521100444040.420776055022202
1280.5222324124047370.9555351751905260.477767587595263
1290.488390317861650.97678063572330.51160968213835
1300.4565535282662570.9131070565325150.543446471733743
1310.4545684776519430.9091369553038860.545431522348057
1320.4923846572948390.9847693145896780.507615342705161
1330.4250371089709650.850074217941930.574962891029035
1340.3990655978896040.7981311957792090.600934402110396
1350.526863963075580.946272073848840.47313603692442
1360.4646325087831070.9292650175662130.535367491216894
1370.437374375717380.874748751434760.56262562428262
1380.3861232781245230.7722465562490450.613876721875477
1390.337906655438570.675813310877140.66209334456143
1400.3044424189169890.6088848378339780.695557581083011
1410.4160170952761410.8320341905522820.583982904723859
1420.5409478801714970.9181042396570060.459052119828503
1430.6727666819284060.6544666361431880.327233318071594
1440.6090868812594630.7818262374810750.390913118740537
1450.50732141818920.98535716362160.4926785818108
1460.5130623016777550.973875396644490.486937698322245
1470.495347684055170.990695368110340.50465231594483
1480.3685358945454840.7370717890909690.631464105454516
1490.5623381708605150.8753236582789710.437661829139486
1500.4673201786676220.9346403573352450.532679821332378


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.0352112676056338OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/10vsot1293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/10vsot1293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/1h1821293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/1h1821293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/2h1821293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/2h1821293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/3h1821293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/3h1821293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/49s751293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/49s751293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/59s751293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/59s751293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/69s751293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/69s751293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/7kjp81293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/7kjp81293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/8vsot1293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/8vsot1293536554.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/9vsot1293536554.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293536435uvar110iaqq80ur/9vsot1293536554.ps (open in new window)


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