Home » date » 2010 » Nov » 24 »

*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: Wed, 24 Nov 2010 08:59:08 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo.htm/, Retrieved Wed, 24 Nov 2010 10:00:06 +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/24/t1290589194v6qn89wnz6t5jyo.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 12 12 8 13 15 10 12 16 12 9 7 12 10 10 10 11 12 12 7 12 15 13 16 18 9 12 11 11 12 12 14 14 11 6 6 9 11 5 16 14 11 12 11 12 15 11 16 11 7 14 12 12 11 14 7 13 11 12 13 11 10 12 11 12 14 11 15 16 10 11 7 9 6 7 9 11 11 9 7 13 15 11 14 15 11 11 15 10 12 12 7 11 14 12 15 13 15 11 17 16 9 11 15 15 13 8 14 14 13 9 14 14 16 12 8 14 13 10 8 8 12 10 14 13 14 12 14 15 11 8 8 13 9 12 11 11 16 11 16 15 12 12 10 15 10 7 8 9 13 11 14 13 16 11 16 16 14 12 13 13 15 9 5 11 5 15 8 12 8 11 10 12 11 11 8 12 16 11 13 14 17 11 15 14 9 15 6 8 9 11 12 13 13 12 16 16 10 12 5 13 6 9 15 11 12 12 12 14 8 12 8 13 14 13 13 13 12 11 14 13 11 9 12 12 16 9 16 16 8 11 10 15 15 11 15 15 7 12 8 12 16 12 16 14 14 9 19 12 16 11 14 15 9 9 6 12 14 12 13 13 11 12 15 12 13 12 7 12 15 12 13 13 5 14 4 5 15 11 14 13 13 12 13 13 11 11 11 14 11 6 14 17 12 10 12 13 12 12 15 13 12 13 14 12 12 8 13 13 14 12 8 14 6 12 6 11 7 12 7 12 14 6 13 12 14 11 13 16 10 10 11 12 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
popularity[t] = + 0.630092326762164 + 0.0911674453868626finding[t] + 0.341648642438405knowing[t] + 0.48873661315285liked[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.6300923267621641.4920320.42230.6733990.3367
finding0.09116744538686260.1006230.9060.3663540.183177
knowing0.3416486424384050.0590825.782700
liked0.488736613152850.0943665.17921e-060


Multiple Linear Regression - Regression Statistics
Multiple R0.667556284783105
R-squared0.445631393353423
Adjusted R-squared0.434689907695924
F-TEST (value)40.7286000551516
F-TEST (DF numerator)3
F-TEST (DF denominator)152
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.20796509448368
Sum Squared Residuals741.016698485668


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11312.95192608191600.0480739180839669
21210.81086678189881.1891332181012
31513.46133630033721.53866369966277
4129.706979190146952.29302080985305
51010.3343559496962-0.334355949696189
6129.980481526307552.01951847369245
71516.0789064325572-1.07890643255715
8910.8583394829083-1.85833948290832
91213.3494952496821-1.34949524968208
10117.625618372089423.37438162791058
111113.3946204168509-2.39462041685085
121111.3470760960612-0.347076096061168
131512.47541524971352.52458475028652
14711.8710596292733-4.8710596292733
151110.65155303023410.348446969765875
161111.5416367677851-0.541636767785127
171011.3470760960612-1.34707609606117
181414.5774496730393-0.577449673039323
19108.423104241462141.57689575853786
2069.7192049710972-3.7192049710972
211110.19571580329980.804284196700187
221513.74706441744811.25293558255193
231111.6450299941222-0.645029994122223
24129.49174491315472.5082550868453
251413.20240727896760.797592721032365
261515.2607469579161-0.260746957916132
27914.0887130598865-5.08871305988647
281312.98482546813460.0151745318653686
291313.0759929135215-0.0759929135214936
301611.29960339505174.70039660494834
31138.184848825360834.81515117463917
321212.6784237457555-0.678423745755506
331413.83823186283490.161768137165069
341110.44619700035140.553802999648645
35910.8583394829083-1.85833948290832
361614.43036170232491.56963829767512
371212.4716372930813-0.471637293081313
38108.40008310235311.59991689764691
391312.76959119114240.230408808857631
401614.91909831547771.08090168452227
411412.51910999409081.48089000590917
42158.53494529211736.4650547078827
43510.5956325049065-5.59563250490654
44810.9142600082359-2.9142600082359
451110.23096272335910.769037276640908
461612.91667916185683.08332083814319
471713.59997644673363.40002355326638
4897.957388767418331.04261123258167
49912.0862939062656-3.08629390626556
501315.0102657608646-2.01026576086459
51109.78592085458360.214079145416408
52611.9514317165013-5.95143171650135
531212.6661979648053-0.666197964805272
54810.8108667818988-2.81086678189880
551412.61027743947771.38972256052231
561212.7695911911424-0.769591191142369
571111.4152224023390-0.415222402338985
581614.7367634247041.26323657529600
59812.3804698476945-4.38046984769445
601514.08871305988650.911286940113527
61710.3221301687460-3.32213016874595
621614.03279253455891.96720746544111
631413.80676289940780.193237100592184
641613.74706441744812.25293558255193
6599.36533054770856-0.365330547708559
661412.51910999409081.48089000590917
671112.7136706658148-1.71367066581479
68139.980481526307553.01951847369245
691512.51910999409082.48089000590917
7055.71671419769611-0.716714197696112
711512.76959119114242.23040880885763
721312.51910999409080.480890005909173
731112.23338187698-1.23338187698001
741114.2687004168195-3.26870041681946
751211.99512646087870.00487353912130259
761213.2024072789676-1.20240727896764
771212.4631894687632-0.463189468763243
781212.1544402125434-0.154440212543377
791411.29960339505172.70039660494835
8069.1500962707163-3.15009627071630
8179.98048152630755-2.98048152630755
821411.48336870861682.5166312913832
831413.89415238816250.105847611837486
841011.1647412052874-1.16474120528744
85139.297184241430743.70281575856926
861211.77989218388640.220107816113565
8799.2534894970534-0.253489497053393
881212.3574487085854-0.357448708585405
891613.74706441744812.25293558255193
901010.5726113657975-0.572611365797496
911412.86920646084731.1307935391527
921013.4054157750097-3.40541577500966
931615.01026576086460.98973423913541
941513.36172103063231.63827896936768
951211.25590865067430.744091349325694
96109.83339355559310.166606444406895
9788.98843498521087-0.988434985210874
9889.09417574538871-1.09417574538871
991113.4735620812875-2.47356208128748
1001311.83581270921401.16418729078598
1011615.26074695791610.739253042083868
1021614.17988050527331.82011949472666
1031416.5117225203824-2.51172252038242
104119.603585963809871.39641403619013
10547.79572748191291-3.79572748191291
1061413.05154135162100.948458648378974
107911.6534778184403-2.65347781844029
1081414.0887130598865-0.088713059886473
109811.8005657891547-3.80056578915474
110811.6741514237086-3.6741514237086
1111112.4838630740315-1.48386307403155
1121212.8377374974202-0.837737497420186
1131110.46921813946040.5307818605396
1141413.49658322039650.503416779603474
1151513.64367119111101.35632880888903
1161613.25832780429522.74167219570478
1171613.34949524968212.65050475031792
1181112.2770766213574-1.27707662135735
1191413.69114389212050.308856107879515
1201411.59755729311272.40244270688729
1211212.1774613516524-0.177461351652422
1221412.96415186286631.03584813713367
123810.5726113657975-2.57261136579750
1241313.7823113375073-0.782311337507348
1251613.69114389212052.30885610787951
1261210.61630611017481.38369388982515
1271614.32696847598781.67303152401222
1281213.2024072789676-1.20240727896764
1291111.6182308983810-0.618230898381014
13045.3642701970989-1.36427019709890
1311614.32696847598781.67303152401222
1321512.08629390626562.91370609373444
1331012.2770766213574-2.27707662135735
1341312.90445338090660.09554661909342
1351513.00784660724371.99215339275632
1361211.15251542433720.847484575662791
1371413.59997644673360.400023553266377
138712.0303733809380-5.03037338093798
1391914.17988050527334.82011949472666
1401213.1671603589084-1.16716035890836
1411213.4528884760192-1.45288847601918
1421313.3494952496821-0.349495249682081
1431514.32696847598780.673031524012219
14487.890672883931940.109327116068061
1451211.49416406677560.505835933224387
146109.535439657532050.464560342467951
147811.2996033950517-3.29960339505165
1481014.4533828414339-4.45338284143392
1491513.94162508917201.05837491082797
1501613.15493457795812.84506542204188
1511312.08629390626560.91370609373444
1521614.66861711842621.33138288157381
153910.5726113657975-1.57261136579750
1541412.97259968718441.02740031281560
1551412.28085457798951.71914542201048
1561212.23338187698-0.233381876980005


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.0862018809351240.1724037618702480.913798119064876
80.08335222040811760.1667044408162350.916647779591882
90.03608081925875930.07216163851751860.96391918074124
100.02192915076974970.04385830153949950.97807084923025
110.0209402302211660.0418804604423320.979059769778834
120.008806237203607630.01761247440721530.991193762796392
130.1983792665072720.3967585330145430.801620733492728
140.5264115351696980.9471769296606030.473588464830302
150.4343577333591960.8687154667183910.565642266640804
160.3484127614244390.6968255228488770.651587238575561
170.2938824021797420.5877648043594840.706117597820258
180.2262250514656120.4524501029312240.773774948534388
190.1741724173010690.3483448346021380.825827582698931
200.4374334381649690.8748668763299390.56256656183503
210.3659510074739650.731902014947930.634048992526035
220.3484720240371080.6969440480742160.651527975962892
230.2879227986274980.5758455972549960.712077201372502
240.2727887622423820.5455775244847640.727211237757618
250.2489506714659020.4979013429318050.751049328534098
260.2034786398422940.4069572796845870.796521360157706
270.3901864194966890.7803728389933780.609813580503311
280.3333479928138080.6666959856276160.666652007186192
290.2796100345774210.5592200691548420.720389965422579
300.4167098641255720.8334197282511450.583290135874428
310.5663209543545630.8673580912908740.433679045645437
320.5079522196717940.9840955606564120.492047780328206
330.4553699510467810.9107399020935630.544630048953219
340.4041625767880010.8083251535760030.595837423211999
350.3999414131166930.7998828262333850.600058586883307
360.4171946991234490.8343893982468990.582805300876551
370.3718597351616880.7437194703233770.628140264838312
380.3320549346250480.6641098692500950.667945065374952
390.2869994585449140.5739989170898280.713000541455086
400.2743630347731850.548726069546370.725636965226815
410.2545317375516110.5090634751032230.745468262448389
420.505734448379060.988531103241880.49426555162094
430.8188232241369120.3623535517261770.181176775863088
440.8531324985539950.2937350028920100.146867501446005
450.8249675828152250.350064834369550.175032417184775
460.859085014428190.2818299711436190.140914985571809
470.9037856069994560.1924287860010880.096214393000544
480.8848286558390320.2303426883219350.115171344160968
490.9074373402662270.1851253194675460.0925626597337728
500.9002985011568440.1994029976863120.099701498843156
510.881833704103190.2363325917936210.118166295896811
520.970143169064130.05971366187173910.0298568309358696
530.9617606563563310.07647868728733830.0382393436436691
540.9708804076753430.05823918464931360.0291195923246568
550.9676065407349370.06478691853012670.0323934592650633
560.9589061732887620.08218765342247540.0410938267112377
570.9477347558589050.1045304882821900.0522652441410948
580.9398873849986970.1202252300026070.0601126150013035
590.9740626376224570.05187472475508590.0259373623775429
600.9685682093370540.06286358132589140.0314317906629457
610.9786697721239050.04266045575218990.0213302278760949
620.9791279311148170.04174413777036540.0208720688851827
630.9730372725863460.05392545482730810.0269627274136541
640.973792769461770.05241446107646060.0262072305382303
650.9677352883548320.06452942329033660.0322647116451683
660.9631971368204670.07360572635906580.0368028631795329
670.9595122900136350.08097541997272970.0404877099863649
680.9680107714697810.06397845706043770.0319892285302189
690.9705520882420130.05889582351597380.0294479117579869
700.9629019507886360.07419609842272870.0370980492113644
710.9634662982172350.07306740356552950.0365337017827647
720.9537374388166790.09252512236664250.0462625611833212
730.9456101467490260.1087797065019480.0543898532509738
740.9606520836159150.07869583276816960.0393479163840848
750.9496458503271030.1007082993457940.0503541496728972
760.9411994416957230.1176011166085530.0588005583042766
770.9274441031077240.1451117937845520.0725558968922762
780.910028533525960.1799429329480810.0899714664740406
790.9216379357335150.1567241285329700.0783620642664848
800.9371270412021540.1257459175956930.0628729587978463
810.9474633444957570.1050733110084860.0525366555042432
820.9549466858387490.09010662832250250.0450533141612513
830.9426994164166320.1146011671667360.0573005835833679
840.9317770897401770.1364458205196460.0682229102598231
850.9609783987248270.07804320255034670.0390216012751733
860.9501057923550860.09978841528982880.0498942076449144
870.9372866068462720.1254267863074560.0627133931537278
880.9227372571770360.1545254856459280.0772627428229642
890.9239480933604480.1521038132791040.0760519066395522
900.9064675197234980.1870649605530040.0935324802765019
910.8933234718540080.2133530562919840.106676528145992
920.9229778027821240.1540443944357510.0770221972178756
930.9078109451081880.1843781097836240.0921890548918118
940.8982554216672610.2034891566654790.101744578332739
950.878945784652890.2421084306942170.121054215347109
960.853997388558180.2920052228836390.146002611441820
970.8360553601151740.3278892797696520.163944639884826
980.8107985125233650.3784029749532690.189201487476635
990.8132163764296520.3735672471406950.186783623570348
1000.7897485388875470.4205029222249050.210251461112453
1010.7557317890703710.4885364218592580.244268210929629
1020.738131885426550.5237362291468990.261868114573449
1030.7892390751316790.4215218497366420.210760924868321
1040.7999817783379640.4000364433240730.200018221662036
1050.8272919636539870.3454160726920260.172708036346013
1060.7992731596935440.4014536806129120.200726840306456
1070.8074951889546560.3850096220906880.192504811045344
1080.7722489614669050.4555020770661910.227751038533095
1090.8332358472691170.3335283054617650.166764152730883
1100.8903057446833130.2193885106333740.109694255316687
1110.8858739140945560.2282521718108880.114126085905444
1120.8862479440454920.2275041119090150.113752055954508
1130.8658210998549710.2683578002900570.134178900145029
1140.8348785908779450.3302428182441110.165121409122055
1150.8070717447370870.3858565105258260.192928255262913
1160.8093621255428880.3812757489142250.190637874457112
1170.8206352331425590.3587295337148820.179364766857441
1180.7963676072811250.4072647854377490.203632392718875
1190.753887724249750.4922245515005010.246112275750251
1200.7653193160534590.4693613678930820.234680683946541
1210.718182221499350.56363555700130.28181777850065
1220.6743044666351280.6513910667297450.325695533364872
1230.6844148085191450.631170382961710.315585191480855
1240.6343153330555950.731369333888810.365684666944405
1250.6318743049771870.7362513900456270.368125695022813
1260.6090684769766290.7818630460467410.390931523023370
1270.5682481689623810.8635036620752380.431751831037619
1280.5238335372275490.9523329255449010.476166462772451
1290.5277938706926230.9444122586147530.472206129307377
1300.4762491759238160.9524983518476330.523750824076184
1310.430892225500580.861784451001160.56910777449942
1320.4570705893329740.9141411786659490.542929410667026
1330.4873023413803770.9746046827607540.512697658619623
1340.4200887640163290.8401775280326570.579911235983671
1350.413061733255810.826123466511620.58693826674419
1360.3649714087446570.7299428174893140.635028591255343
1370.2966060700510640.5932121401021280.703393929948936
1380.5027752857132160.9944494285735680.497224714286784
1390.8054693544189590.3890612911620820.194530645581041
1400.8292491277534430.3415017444931140.170750872246557
1410.827867868088490.3442642638230210.172132131911510
1420.7589579730337480.4820840539325030.241042026966252
1430.6746872646585090.6506254706829830.325312735341491
1440.5735071062011030.8529857875977940.426492893798897
1450.485171140907600.970342281815200.5148288590924
1460.7310095146824070.5379809706351870.268990485317593
1470.6625412128452650.6749175743094710.337458787154735
1480.8562445892502970.2875108214994060.143755410749703
1490.7671325230614630.4657349538770730.232867476938537


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


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/1l8e71290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/1l8e71290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/2l8e71290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/2l8e71290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/3dhdr1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/3dhdr1290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/4dhdr1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/4dhdr1290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/5dhdr1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/5dhdr1290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/66ruu1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/66ruu1290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/7y0ux1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/7y0ux1290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/8y0ux1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/8y0ux1290589137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/9y0ux1290589137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290589194v6qn89wnz6t5jyo/9y0ux1290589137.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by