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:30:45 +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/t1293535915l14mros99nim7b6.htm/, Retrieved Tue, 28 Dec 2010 12:32:11 +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/t1293535915l14mros99nim7b6.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 time14 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
PersonalStandards[t] = + 19.3022138771632 -1.09313336363418Maand[t] -0.113100006049102DoubtsAboutActions[t] + 0.339616385684055ParentalExpectations[t] + 0.0926111824644228ParentalCriticism[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.302213877163216.1453951.19550.2337320.116866
Maand-1.093133363634181.594907-0.68540.4941350.247068
DoubtsAboutActions-0.1131000060491020.109722-1.03080.3042670.152134
ParentalExpectations0.3396163856840550.1094553.10280.0022840.001142
ParentalCriticism0.09261118246442280.1425980.64950.5170160.258508
`Organization `0.4404531492545670.0794125.546500


Multiple Linear Regression - Regression Statistics
Multiple R0.474394730418846
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.1795098324844-0.179509832484445
22521.46854013027423.53145986972577
33026.31111031586943.68888968413056
41922.3742892812773-3.3742892812773
52221.8367206622880.16327933771202
62225.8298297778066-3.82982977780661
72522.35743388407682.64256611592317
82321.13079955826041.86920044173958
91720.9749243330958-3.97492433309584
102123.2014001967891-2.20140019678910
111923.3374193334425-4.3374193334425
121921.3018108504035-2.30181085040347
131521.8179415431979-6.81794154319787
141617.7575307236066-1.75753072360659
152321.29341916012171.70658083987828
162725.71585891087141.28414108912864
172220.05209128480711.9479087151929
181417.2281876857234-3.22818768572335
192224.4587126084181-2.45871260841806
202322.38874470496290.611255295037127
212320.49317716913522.50682283086484
222122.5021610785487-1.50216107854872
231922.5610710923396-3.56107109233963
241821.0549559055449-3.05495590554492
252023.9361380556491-3.93613805564912
262323.9647022019788-0.9647022019788
272523.57376864853641.42623135146357
281923.1723694245616-4.17236942456159
292423.75076543235920.249234567640815
302222.4540827279138-0.454082727913752
312523.62523607465581.37476392534417
322624.72702958788911.27297041211089
332921.63108771549867.36891228450144
343223.20108382925248.79891617074765
352523.20947551953411.79052448046589
362921.62527659059757.37472340940248
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.61967929749851
452621.50735592974134.49264407025867
462022.5016786018363-2.50167860183632
471823.0390969624646-5.03909696246455
483220.970570304186611.0294296958134
492522.18658870110942.81341129889056
502522.45875312435972.54124687564025
512319.20068238442333.79931761557668
522122.7401418564131-1.74014185641311
532024.3888544473823-4.38885444738228
541517.1476736365619-2.14767363656186
553026.27816008322573.72183991677432
562424.4900075784895-0.490007578489537
572623.94840129812772.05159870187229
582422.46634597039231.53365402960766
592222.6596278072516-0.659627807251617
601418.877533011766-4.87753301176601
612423.27320618813210.7267938118679
622422.78143587111921.21856412888078
632424.7492760241878-0.749276024187759
642421.02188747194492.97811252805510
651921.5691387680321-2.56913876803212
663123.85997803539697.14002196460312
672222.5136254767782-0.513625476778157
682721.75839879433355.24160120566654
691921.8637398451743-2.86373984517431
702522.61477860788542.38522139211458
712021.8797243814887-1.87972438148865
722121.1882283676420-0.188228367641955
732724.73250849443882.26749150556117
742323.9366205323615-0.936620532361528
752524.0142217977910.985778202209004
762021.3056824026003-1.30568240260031
772122.7694889961774-1.76948899617737
782223.1726857920983-1.17268579209834
792323.9238748131705-0.923874813170529
802521.78742956656103.21257043343902
812524.02084002454420.9791599754558
821723.6207317873855-6.6207317873855
831921.8595519254407-2.85955192544072
842524.39692977012730.603070229872722
851921.8597021838018-2.85970218380181
862023.7797962045867-3.7797962045867
872622.00959191728673.99040808271332
882323.3580584153883-0.35805841538827
892723.43406817727943.56593182272057
901721.2130712201359-4.21307122013588
911722.8538745975357-5.85387459753571
921921.6488539729445-2.64885397294445
931720.7768059906149-3.77680599061490
942221.69885604546910.301143954530942
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.22251355168523
1061717.5931135497992-0.593113549799169
1071818.9982258638477-0.998225863847708
1081919.3009022637349-0.300902263734906
1092222.1499650828493-0.149965082849330
1101520.6680600134750-5.66806001347505
1111420.5583649337250-6.55836493372495
1121824.5821521350561-6.58215213505612
1132420.35041365578503.64958634421495
1143522.198701685226912.8012983147731
1152921.55835672996297.4416432700371
1162122.915024700753-1.91502470075300
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.48541821392691
1262123.7715706234806-2.77157062348061
1272221.80356436123640.196435638763590
1282423.055231757140.944768242860015
1292124.2797921027057-3.27979210270568
1302622.27547858973813.72452141026189
1312420.48867288186483.51132711813517
1321621.4187824086494-5.41878240864941
1332323.0035982218449-0.00359822184492027
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.195028554385392
1442120.08562634430500.914373655695048
1452323.3827510095211-0.382751009521110
1462721.42360306345655.57639693654351
1472522.32856922102502.67143077897503
1482120.54610169124640.453898308753637
1491017.9877683970773-7.9877683970773
1502021.9558844017409-1.9558844017409
1512621.83843036678254.16156963321745
1522423.30690735680560.693092643194387
1532927.68014387927981.31985612072019
1541917.94871447179761.05128552820243
1552423.93211624509120.067883754908809
1561921.5731764294046-2.57317642940462
1572421.83502544048352.16497455951646
1582222.6109070556886-0.610907055688577
1591723.3048333765549-6.30483337655489


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.5194814785923160.9610370428153680.480518521407684
100.4238752428868990.8477504857737990.576124757113101
110.3627647972268060.7255295944536110.637235202773194
120.2439815985939850.487963197187970.756018401406015
130.6072282872680350.785543425463930.392771712731965
140.5048073016896880.9903853966206240.495192698310312
150.4722910650045650.944582130009130.527708934995435
160.3758984776095450.751796955219090.624101522390455
170.3160395682529780.6320791365059560.683960431747022
180.3018940664321940.6037881328643880.698105933567806
190.2368810476969590.4737620953939180.763118952303041
200.2469533834175750.493906766835150.753046616582425
210.2627917237131760.5255834474263520.737208276286824
220.2042451484587030.4084902969174060.795754851541297
230.16445550886050.3289110177210.8355444911395
240.1370962955583840.2741925911167670.862903704441616
250.1203409698393880.2406819396787770.879659030160612
260.0880016302333590.1760032604667180.91199836976664
270.0694700805872950.138940161174590.930529919412705
280.06199068562112830.1239813712422570.938009314378872
290.04657160638822210.09314321277644420.953428393611778
300.03201229486848380.06402458973696750.967987705131516
310.02603452490667700.05206904981335390.973965475093323
320.02991790787708360.05983581575416720.970082092122916
330.06722343184393030.1344468636878610.93277656815607
340.2740742278311370.5481484556622750.725925772168863
350.2347297039714340.4694594079428680.765270296028566
360.3601690241911210.7203380483822420.639830975808879
370.4926193235979030.9852386471958060.507380676402097
380.5600610613119460.8798778773761080.439938938688054
390.5905931327727410.8188137344545190.409406867227259
400.6907608973228780.6184782053542450.309239102677122
410.6463746048937190.7072507902125630.353625395106281
420.6076957813124390.7846084373751220.392304218687561
430.7073805502357070.5852388995285870.292619449764293
440.6655574001424720.6688851997150560.334442599857528
450.6763539320924910.6472921358150180.323646067907509
460.6557572174932750.688485565013450.344242782506725
470.6842699221042550.631460155791490.315730077895745
480.8904862606248580.2190274787502840.109513739375142
490.876350823929220.2472983521415580.123649176070779
500.8588357017102170.2823285965795660.141164298289783
510.8451456579355870.3097086841288260.154854342064413
520.8225983842660350.354803231467930.177401615733965
530.8386006447322480.3227987105355050.161399355267752
540.8265128287041340.3469743425917320.173487171295866
550.8703134777561790.2593730444876430.129686522243821
560.8446230316895630.3107539366208730.155376968310437
570.821271779147470.357456441705060.17872822085253
580.7925840338009380.4148319323981230.207415966199062
590.7599655551738920.4800688896522170.240034444826108
600.7847399528103260.4305200943793480.215260047189674
610.7489855294721310.5020289410557370.251014470527869
620.7135353811592320.5729292376815360.286464618840768
630.6773987785474350.645202442905130.322601221452565
640.6586607273775450.682678545244910.341339272622455
650.6393871145458960.7212257709082080.360612885454104
660.7336531772966410.5326936454067180.266346822703359
670.6945931001994060.6108137996011870.305406899800594
680.7320615529413420.5358768941173150.267938447058658
690.7201293350521010.5597413298957980.279870664947899
700.695717804027440.608564391945120.30428219597256
710.6644878982055930.6710242035888150.335512101794407
720.6214254542815280.7571490914369450.378574545718472
730.5940062362783050.811987527443390.405993763721695
740.5505736696380240.8988526607239530.449426330361976
750.5115085591904380.9769828816191230.488491440809562
760.4698163359517980.9396326719035950.530183664048202
770.4371079836163140.8742159672326270.562892016383686
780.3957988192084990.7915976384169980.604201180791501
790.3568779643948460.7137559287896920.643122035605154
800.3481801927094310.6963603854188610.65181980729057
810.3099340775751630.6198681551503250.690065922424837
820.3933433081138550.786686616227710.606656691886145
830.372434995182490.744869990364980.62756500481751
840.3308838893190760.6617677786381520.669116110680924
850.3141908394960310.6283816789920620.685809160503969
860.3110784003048260.6221568006096520.688921599695174
870.3217374235146380.6434748470292750.678262576485362
880.281931917589140.563863835178280.71806808241086
890.2788795988642880.5577591977285770.721120401135712
900.2834642702431360.5669285404862720.716535729756864
910.332204529924990.664409059849980.66779547007501
920.3073468235454590.6146936470909170.692653176454541
930.3019084659495770.6038169318991530.698091534050423
940.2628226546847820.5256453093695640.737177345315218
950.2455497979088690.4910995958177370.754450202091131
960.2816383476749400.5632766953498790.71836165232506
970.2529255975090730.5058511950181460.747074402490927
980.2279256110349100.4558512220698190.77207438896509
990.2157103387940780.4314206775881560.784289661205922
1000.1972267821604970.3944535643209950.802773217839503
1010.166114759078430.332229518156860.83388524092157
1020.1467680604615990.2935361209231980.853231939538401
1030.1246386530211350.249277306042270.875361346978865
1040.1076792493633840.2153584987267670.892320750636616
1050.1128450132029830.2256900264059670.887154986797017
1060.09120968025848860.1824193605169770.908790319741511
1070.07429960800151950.1485992160030390.92570039199848
1080.05951207691321030.1190241538264210.94048792308679
1090.04629173492395180.09258346984790350.953708265076048
1100.06049810639257520.1209962127851500.939501893607425
1110.09530942846349250.1906188569269850.904690571536507
1120.1515749251074310.3031498502148610.84842507489257
1130.1416968075687310.2833936151374610.85830319243127
1140.5843658035692740.8312683928614520.415634196430726
1150.7243272323088860.5513455353822290.275672767691114
1160.6864861444296560.6270277111406880.313513855570344
1170.7361852547346360.5276294905307280.263814745265364
1180.6903301837721030.6193396324557950.309669816227898
1190.6509431598019180.6981136803961640.349056840198082
1200.6528486224057890.6943027551884210.347151377594211
1210.7271676201674490.5456647596651020.272832379832551
1220.6971683500859180.6056632998281640.302831649914082
1230.6928244285888090.6143511428223820.307175571411191
1240.6397624983920420.7204750032159160.360237501607958
1250.6665504761384390.6668990477231220.333449523861561
1260.6366360603363990.7267278793272030.363363939663602
1270.5792239449777980.8415521100444040.420776055022202
1280.5222324124047370.9555351751905270.477767587595263
1290.4883903178616490.9767806357232980.511609682138351
1300.4565535282662560.9131070565325130.543446471733744
1310.4545684776519440.9091369553038880.545431522348056
1320.4923846572948390.9847693145896780.507615342705161
1330.4250371089709630.8500742179419260.574962891029037
1340.3990655978896050.798131195779210.600934402110395
1350.526863963075580.946272073848840.47313603692442
1360.4646325087831060.9292650175662120.535367491216894
1370.437374375717380.874748751434760.56262562428262
1380.3861232781245230.7722465562490460.613876721875477
1390.3379066554385690.6758133108771390.662093344561431
1400.3044424189169890.6088848378339780.695557581083011
1410.416017095276140.832034190552280.58398290472386
1420.5409478801714980.9181042396570050.459052119828502
1430.6727666819284060.6544666361431870.327233318071594
1440.6090868812594630.7818262374810750.390913118740537
1450.5073214181891990.9853571636216020.492678581810801
1460.5130623016777560.9738753966444870.486937698322244
1470.495347684055170.990695368110340.50465231594483
1480.3685358945454840.7370717890909670.631464105454516
1490.5623381708605140.8753236582789720.437661829139486
1500.4673201786676230.9346403573352450.532679821332377


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/t1293535915l14mros99nim7b6/10q4ov1293535830.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293535915l14mros99nim7b6/10q4ov1293535830.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293535915l14mros99nim7b6/4uuqm1293535830.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293535915l14mros99nim7b6/4uuqm1293535830.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293535915l14mros99nim7b6/5uuqm1293535830.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293535915l14mros99nim7b6/5uuqm1293535830.ps (open in new window)


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


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


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


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