Home » date » 2010 » Nov » 23 »

twowayanova

*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, 23 Nov 2010 19:55:57 +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/23/t12905421227nk13gndzkvbgj2.htm/, Retrieved Tue, 23 Nov 2010 20:55:33 +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/23/t12905421227nk13gndzkvbgj2.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 «
13 13 14 13 3 12 12 8 13 5 15 10 12 16 6 12 9 7 12 6 10 10 10 11 5 12 12 7 12 3 15 13 16 18 8 9 12 11 11 4 12 12 14 14 4 11 6 6 9 4 11 5 16 14 6 11 12 11 12 6 15 11 16 11 5 7 14 12 12 4 11 14 7 13 6 11 12 13 11 4 10 12 11 12 6 14 11 15 16 6 10 11 7 9 4 6 7 9 11 4 11 9 7 13 2 15 11 14 15 7 11 11 15 10 5 12 12 7 11 4 14 12 15 13 6 15 11 17 16 6 9 11 15 15 7 13 8 14 14 5 13 9 14 14 6 16 12 8 14 4 13 10 8 8 4 12 10 14 13 7 14 12 14 15 7 11 8 8 13 4 9 12 11 11 4 16 11 16 15 6 12 12 10 15 6 10 7 8 9 5 13 11 14 13 6 16 11 16 16 7 14 12 13 13 6 15 9 5 11 3 5 15 8 12 3 8 11 10 12 4 11 11 8 12 6 16 11 13 14 7 17 11 15 14 5 9 15 6 8 4 9 11 12 13 5 13 12 16 16 6 10 12 5 13 6 6 9 15 11 6 12 12 12 14 5 8 12 8 13 4 14 13 13 13 5 12 11 14 13 5 11 9 12 12 4 16 9 16 16 6 8 11 10 15 2 15 11 15 15 8 7 12 8 12 3 16 12 16 14 6 14 9 19 12 6 16 11 14 15 6 9 9 6 12 5 14 12 13 13 5 11 12 15 12 6 13 12 7 12 5 15 12 13 13 6 5 14 4 5 2 15 11 14 13 5 13 12 13 13 5 11 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time10 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Liked[t] = + 6.44337607583825 + 0.228447260896724Popularity[t] + 0.0600370360974463FindingFriends[t] + 0.110103033300961KnowingPeople[t] + 0.393494049827484Celebrity[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.443376075838251.027256.272500
Popularity0.2284472608967240.0631713.61640.0004070.000203
FindingFriends0.06003703609744630.0777420.77230.4411680.220584
KnowingPeople0.1101030333009610.0514182.14130.0338510.016926
Celebrity0.3934940498274840.1289213.05220.0026850.001342


Multiple Linear Regression - Regression Statistics
Multiple R0.634459073838359
R-squared0.402538316375828
Adjusted R-squared0.386711516809625
F-TEST (value)25.4339681684864
F-TEST (DF numerator)4
F-TEST (DF denominator)151
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.70372255642955
Sum Squared Residuals438.303252942315


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11312.91559655245860.0844034475414042
21312.75348215531340.246517844686591
31614.15265604884001.84734395115998
41212.8567620635476-0.856762063547592
51112.396719627927-1.39671962792700
61211.85639102235750.143608977642517
71815.56016738999122.43983261000883
81112.0049554226986-1.00495542269864
91413.02060630529170.979393694708303
10911.5511125614026-2.55111256140260
111413.37909395796970.62090604203026
121213.2488380441471-1.24883804414706
131114.2596111683138-3.25961116831383
141211.77823800640100.221761993598952
151312.92849998313810.0715000168618957
161112.6820560110940-1.68205601109401
171213.0203907832503-1.02039078325033
181614.31455492394361.68544507605637
19911.7329535142941-2.73295351429407
201110.79922239291930.200777607080684
211311.05433860334091.94566139665906
221514.82639320136690.173606798633125
231013.2357190914260-3.23571909142597
241112.2498850721850-1.24988507218497
251314.3745919600411-1.37459196004107
261614.76320825144231.23679174855773
271513.56581266928751.43418733071251
281413.40239947162610.59760052837388
291413.85593055755100.144069442448950
301413.27377714907280.726222850927177
31812.4683612941878-4.46836129418776
321314.0810143825793-1.08101438257926
331514.65798297656760.342017023432403
341311.89139270019941.10860729980058
351112.0049554226986-1.00495542269864
361514.88155247903800.118447520961963
371513.36718227174281.63281772825718
38911.9964024530327-2.99640245303273
391313.9760046297459-0.976004629745943
401615.27504652886550.724953471134479
411314.1543858934392-1.15438589343915
421112.1414156301534-1.14141563015339
431210.54747433767371.45252566232628
441211.60636809240350.39363190759649
451212.8584919081467-0.858491908146727
461414.9447374289626-0.944737428962637
471414.6064026568063-0.606402656806315
48811.6345513644862-3.63455136448617
491312.44851546972960.551484530270359
501614.25624773244531.74375226755469
511312.35977258344460.640227416555435
521112.3669027645749-1.36690276457495
531413.19389428851730.806105711482742
541311.44619906189901.55380093810097
551313.8209288797091-0.820928879709113
561313.3540633190217-0.354063319021735
571212.3918418695007-0.391841869500712
581614.76147840684311.23852159315686
591510.81937999274854.18062000725146
601515.3299902844953-0.32999028449532
611210.82425775117481.17574224882517
621414.9415895151355-0.941589515135483
631214.6348929849526-2.63489298495258
641514.66134641243610.338653587563886
651211.66782319772900.33217680227102
661313.7608918436117-0.760891843611667
671213.6892501773509-1.68925017735090
681212.8718263829092-0.871826382909175
691314.3828331543359-1.38283315433588
7059.65353111854494-4.65353111854494
711314.0394051017119-1.03940510171191
721313.5324445827149-0.532444582714944
731412.79530695822211.20469304177787
741713.21892492746533.78107507253474
751313.4673142661499-0.46731426614985
761313.9176974382476-0.917697438247627
771213.4741373912166-1.47413739121663
781313.0638491774284-0.0638491774284345
791412.81688262727941.18311737272062
80119.98211037384871.01788962615131
811211.10764876770130.892351232298652
821213.7941636768545-1.79416367685447
831614.09434885734171.90565114265829
841212.5068226612280-0.506822661227957
851211.86463221665230.135367783347716
861213.6474253744422-1.64742537444219
871011.6146092866983-1.61460928669831
881512.78360607472912.21639392527093
891515.4483345120911-0.448334512091082
901211.9531595808960.0468404191040039
911613.76403975743882.23596024256118
921513.18055981375481.81944018624519
931615.33508356496300.664916435037033
941314.5930681820439-1.59306818204387
951213.0237542191189-1.02375421911885
961111.9030935836925-0.90309358369248
971311.49258984786291.50741015213708
981011.0026390148680-1.00263901486803
991512.94550494983272.05449505016733
1001313.7057325659405-0.705732565940505
1011615.38514956216650.614850437833517
1021515.224980531662-0.224980531662006
1031814.71487209883793.28512790116211
1041311.28766362266391.71233637733606
105109.184935713258430.815064286741568
1061614.67110192928871.32889807071132
1071311.49138730067631.50861269932374
1081515.1015430235986-0.101543023598596
1091411.15283700647862.84716299352142
1101511.25611691471283.74388308528724
1111412.84537295542561.15462704457436
1121314.0710433436853-1.07104334368533
1131312.80842591094320.191574089056788
1141514.15438589343920.845614106560848
1151614.66622417086241.33377582913760
1161414.6613464124361-0.661346412436114
1171414.7213834485336-0.72138344853356
1181612.91852894424423.08147105575583
1191414.3745919600411-0.374591960041074
1201213.1972577243858-1.19725772438577
1211312.80040023868980.199599761310226
1221214.0311639074171-2.03116390741711
1231211.49626505910250.503734940897451
1241414.2061817352418-0.206181735241797
1251414.8314864818345-0.831486481834522
1261412.53327608871151.46672391128851
1271615.50837154818850.491628451811471
1281313.9176974382476-0.917697438247627
1291412.50509281662881.49490718337117
130410.0720558073204-6.07205580732043
1311615.50837154818850.491628451811471
1321314.2126930849375-1.21269308493747
1331611.90309358369254.09690641630752
1341513.76576960203801.23423039796205
1351414.3828331543359-0.382833154335875
1361312.47009113878690.52990886121311
1371414.3145549239436-0.314554923943628
1381211.37477291767960.625227082320367
1391515.5168282645247-0.516828264524693
1401413.29402628292430.705973717075711
1411313.1807753357962-0.180775335796174
1421414.0360416658434-0.0360416658433889
1431613.70594808798192.29405191201813
144611.5463310563061-5.54633105630606
1451312.58019417208790.419805827912149
1461312.30970658624110.69029341375895
1471411.83969311172652.16030688827348
1481513.64091402474651.35908597525348
1491414.6531052181413-0.653105218141313
1501515.2881654815866-0.288165481586606
1511314.1492926129715-1.14929261297150
1521615.2249805316620.775019468337994
1531211.72471231999930.275287680000728
1541513.92420878794331.07579121205670
1551214.2044518906427-2.20445189064267
1561411.84327206963642.15672793036360


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.04822720346502540.09645440693005090.951772796534974
90.03201831822877070.06403663645754140.96798168177123
100.01225177012046470.02450354024092940.987748229879535
110.01968019256972420.03936038513944840.980319807430276
120.01790076440253170.03580152880506330.982099235597468
130.5870119464516490.8259761070967010.412988053548351
140.4941171573574150.988234314714830.505882842642585
150.3980323886186340.7960647772372680.601967611381366
160.3637796588002020.7275593176004040.636220341199798
170.3134448209152190.6268896418304380.686555179084781
180.2832861426877740.5665722853755480.716713857312226
190.2823228756308550.5646457512617090.717677124369145
200.3020448102176820.6040896204353640.697955189782318
210.5007564077130330.9984871845739350.499243592286967
220.4270951146940970.8541902293881930.572904885305903
230.5849981733661440.8300036532677130.415001826633856
240.5337917437006010.9324165125987980.466208256299399
250.5097240209205730.9805519581588540.490275979079427
260.4697283553232330.9394567106464650.530271644676767
270.4604107788785290.9208215577570570.539589221121471
280.4058773776572760.8117547553145530.594122622342724
290.3440440590393460.6880881180786930.655955940960653
300.3031569761516720.6063139523033440.696843023848328
310.5812166010560260.8375667978879470.418783398943974
320.5485062748260610.9029874503478780.451493725173939
330.4891654339692920.9783308679385830.510834566030708
340.4937641049674720.9875282099349440.506235895032528
350.4417585402841110.8835170805682210.55824145971589
360.385217546443720.770435092887440.61478245355628
370.392993398912770.785986797825540.60700660108723
380.4602008816845680.9204017633691370.539799118315432
390.4233810456118460.8467620912236920.576618954388154
400.3730752121043650.746150424208730.626924787895635
410.3470362414181630.6940724828363270.652963758581837
420.3136258853807910.6272517707615820.686374114619209
430.3361932031328480.6723864062656950.663806796867152
440.2985062834130850.597012566826170.701493716586915
450.2601041604144120.5202083208288230.739895839585588
460.2310135486903250.462027097380650.768986451309675
470.1973499896537460.3946999793074910.802650010346254
480.3157980960007430.6315961920014860.684201903999257
490.2804597835757380.5609195671514750.719540216424262
500.2805567384907320.5611134769814650.719443261509268
510.2625385555279560.5250771110559130.737461444472044
520.2458957232143860.4917914464287730.754104276785614
530.2199575308157710.4399150616315420.78004246918423
540.2340770927070990.4681541854141980.765922907292901
550.2054466117838860.4108932235677730.794553388216114
560.1725036724482930.3450073448965870.827496327551707
570.1443631840970620.2887263681941240.855636815902938
580.1316555763261060.2633111526522130.868344423673894
590.3415211629510890.6830423259021790.65847883704891
600.2986981194786840.5973962389573670.701301880521316
610.2808985671279410.5617971342558820.719101432872059
620.2547782219781330.5095564439562670.745221778021867
630.3174980403424680.6349960806849360.682501959657532
640.2793726458431410.5587452916862830.720627354156859
650.2486165695395280.4972331390790570.751383430460472
660.2187340896532990.4374681793065980.781265910346701
670.2164139731005060.4328279462010120.783586026899494
680.1916517999918010.3833035999836010.8083482000082
690.1791884055283060.3583768110566130.820811594471694
700.4326252166857860.8652504333715710.567374783314214
710.4046197576366200.8092395152732410.59538024236338
720.3642969631375790.7285939262751590.635703036862421
730.3470679803603570.6941359607207150.652932019639643
740.5433236394478350.913352721104330.456676360552165
750.4991266005143350.998253201028670.500873399485665
760.4637680724549650.927536144909930.536231927545035
770.4527402995101450.9054805990202910.547259700489855
780.4065809553293620.8131619106587230.593419044670638
790.3906416792708580.7812833585417150.609358320729142
800.3650981442351690.7301962884703380.634901855764831
810.3354258575419330.6708517150838660.664574142458067
820.3367362046754090.6734724093508190.66326379532459
830.3491749775886050.698349955177210.650825022411395
840.3104750517790870.6209501035581740.689524948220913
850.283627615173330.567255230346660.71637238482667
860.2814790623358540.5629581246717090.718520937664146
870.2869880359787360.5739760719574730.713011964021264
880.3186263343198170.6372526686396350.681373665680183
890.2793079839579830.5586159679159660.720692016042017
900.2434902491236820.4869804982473640.756509750876318
910.2675774556806720.5351549113613430.732422544319328
920.2781831867806640.5563663735613280.721816813219336
930.2462300150463750.492460030092750.753769984953625
940.2372308690956850.474461738191370.762769130904315
950.2182898530843310.4365797061686610.78171014691567
960.2055834477875780.4111668955751560.794416552212422
970.2006992619208110.4013985238416210.79930073807919
980.2052718801041820.4105437602083640.794728119895818
990.2517800586215120.5035601172430230.748219941378488
1000.2274560141118210.4549120282236420.77254398588818
1010.2035779661751190.4071559323502380.796422033824881
1020.1710820521319840.3421641042639690.828917947868016
1030.2586042904984780.5172085809969550.741395709501522
1040.242527027032360.485054054064720.75747297296764
1050.2102265818918850.420453163783770.789773418108115
1060.1914040952045650.3828081904091300.808595904795435
1070.1785799041489930.3571598082979860.821420095851007
1080.1519723089266830.3039446178533650.848027691073317
1090.2015907291632520.4031814583265030.798409270836748
1100.5338162601906610.9323674796186770.466183739809339
1110.5488630437728980.9022739124542050.451136956227102
1120.5844460407735730.8311079184528530.415553959226427
1130.5397549112157360.9204901775685280.460245088784264
1140.4957578961820590.9915157923641180.504242103817941
1150.4683980156613540.9367960313227090.531601984338646
1160.4182861938503020.8365723877006050.581713806149698
1170.3892107843684890.7784215687369780.610789215631511
1180.4824247237188450.964849447437690.517575276281155
1190.4278491800197220.8556983600394430.572150819980279
1200.4306852518320670.8613705036641340.569314748167933
1210.3835721863719250.7671443727438490.616427813628075
1220.3889930962986870.7779861925973730.611006903701313
1230.3455561772739760.6911123545479530.654443822726024
1240.2986499923679590.5972999847359180.701350007632041
1250.2830932442291280.5661864884582560.716906755770872
1260.2426441581328310.4852883162656620.757355841867169
1270.2039377694278350.4078755388556690.796062230572165
1280.167047240390850.33409448078170.83295275960915
1290.4287600128871310.8575200257742620.571239987112869
1300.6043444602046290.7913110795907430.395655539795371
1310.5585180369344180.8829639261311650.441481963065582
1320.5158910450198530.9682179099602940.484108954980147
1330.7056380945064960.5887238109870090.294361905493504
1340.6443889786026890.7112220427946230.355611021397311
1350.5886082163867120.8227835672265770.411391783613288
1360.5232848906960060.9534302186079880.476715109303994
1370.4461313903272210.8922627806544430.553868609672779
1380.371085686192920.742171372385840.62891431380708
1390.4210791084570230.8421582169140470.578920891542977
1400.4932200323538660.9864400647077310.506779967646134
1410.4105300221475590.8210600442951180.589469977852441
1420.3204692422149110.6409384844298220.679530757785089
1430.2471008789985260.4942017579970530.752899121001474
1440.809533475834210.3809330483315790.190466524165789
1450.7482055900936630.5035888198126740.251794409906337
1460.7202622060225770.5594755879548460.279737793977423
1470.662052541687220.6758949166255590.337947458312779
1480.6286909868140050.7426180263719910.371309013185995


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


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/1xvjy1290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/1xvjy1290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/27mi11290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/27mi11290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/37mi11290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/37mi11290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/47mi11290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/47mi11290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/57mi11290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/57mi11290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/60ehm1290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/60ehm1290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/7bny71290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/7bny71290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/8bny71290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/8bny71290542145.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/9leys1290542145.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905421227nk13gndzkvbgj2/9leys1290542145.ps (open in new window)


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