Home » date » 2010 » Dec » 30 »

*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: Thu, 30 Dec 2010 00:54:49 +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/30/t1293670372tt5c2k1f40lcrx5.htm/, Retrieved Thu, 30 Dec 2010 01:53:05 +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/30/t1293670372tt5c2k1f40lcrx5.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 8 360 175 3821 11 73 0 0 15 8 390 190 3850 8.5 70 0 0 17 8 304 150 3672 11.5 72 0 0 19.4 6 232 90 3210 17.2 78 0 0 24.3 4 151 90 3003 20.1 80 0 0 18.1 6 258 120 3410 15.1 78 0 0 20.2 6 232 90 3265 18.2 79 0 0 18 6 232 100 2789 15 73 0 0 19 6 232 100 2634 13 71 0 0 20 6 232 100 2914 16 75 0 0 21 6 199 90 2648 15 70 0 0 18 6 199 97 2774 15.5 70 0 0 18 6 232 100 2945 16 73 0 0 19 6 232 100 2901 16 74 0 0 22.5 6 232 90 3085 17.6 76 0 0 18 6 258 110 2962 13.5 71 0 0 14 8 304 150 3672 11.5 73 0 0 15 6 258 110 3730 19 75 0 0 15.5 8 304 120 3962 13.9 76 0 0 16 6 258 110 3632 18 74 0 0 18 6 232 100 3288 15.5 71 0 0 14 8 304 150 4257 15.5 74 0 0 15 8 304 150 3892 12.5 72 0 0 19 6 232 90 3211 17 75 0 0 17.5 6 258 95 3193 17.8 76 0 0 16 8 304 150 3433 12 70 0 0 27.4 4 121 80 2670 15 79 0 0 24 4 107 90 2430 14.5 70 0 1 20 4 114 91 2582 14 73 0 1 23 4 115 95 2694 15 75 0 1 34.3 4 97 78 2188 15.8 80 0 1 20.3 5 131 103 2830 15.9 78 0 1 36.4 5 121 67 2950 19.9 80 0 1 29 4 98 83 2219 16.5 74 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 time30 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
MPG[t] = -17.9546020672902 -0.489709424047163Cylin[t] + 0.0239786440278725Displ[t] -0.0181834640388510HP[t] -0.00671038412737677Weight[t] + 0.0791030360112797Accel[t] + 0.77702693910102Year[t] + 2.85322822847746OriginJapan[t] + 2.63000236001736OriginEurope[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-17.95460206729024.676934-3.8390.0001457.2e-05
Cylin-0.4897094240471630.321231-1.52450.1282150.064107
Displ0.02397864402787250.0076533.13310.0018630.000931
HP-0.01818346403885100.013709-1.32640.1854880.092744
Weight-0.006710384127376770.000655-10.242800
Accel0.07910303601127970.0982180.80540.4211010.210551
Year0.777026939101020.05178415.005100
OriginJapan2.853228228477460.5527365.16200
OriginEurope2.630002360017360.5664154.64325e-062e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.907854321965764
R-squared0.824199469911917
Adjusted R-squared0.820527396176396
F-TEST (value)224.450686253692
F-TEST (DF numerator)8
F-TEST (DF denominator)383
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.30652953119832
Sum Squared Residuals4187.39167808295


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11315.5306503833598-2.53065038335978
21513.25381819658781.74618180341217
31714.90480473265382.09519526734622
419.423.4620154597908-4.06201545979085
524.325.6716663386293-1.37166633862928
618.122.0317630822510-3.93176308225096
720.223.9490743078974-3.74907430789742
81822.0460911622980-4.04609116229804
91921.3739407518168-2.37394075181683
102022.8404500605893-2.84045006058927
112120.05171389442380.948286105576179
121819.1184727641080-1.11847276410803
131821.0783742744385-3.07837427443855
141922.1506581151441-3.15065811514414
1522.522.7784008119154-0.278400811915418
161819.6540963803791-1.65409638037907
171415.6818316717548-1.68183167175481
181518.0436958250198-3.04369582501984
1915.516.8022522997112-1.30225229971122
201617.8451834943905-1.84518349439046
211817.18310712254060.816892877459366
221412.84969604038551.15030395961445
231513.50762326064221.49237673935781
241921.1084036511582-2.10840365115816
2517.522.6020273578914-5.10202735789141
261614.99408417890041.00591582109956
2727.426.18824714983951.21175285016050
282422.87841207373371.12158792626626
292024.2996300298262-4.29963002982615
302325.1324687096457-2.13246870964574
3134.332.35384349857131.94615650142872
3220.326.3706111861237-6.0706111861237
3336.427.85064937820568.54935062179443
342927.4720934050581.52790659494201
352623.95292263417372.04707736582633
3621.527.0143919201809-5.51439192018086
371716.36674051774420.633259482255848
3822.423.919075355761-1.51907535576099
391313.5768728435653-0.576872843565337
402526.6985124549422-1.69851245494223
411310.90762084535592.09237915464413
4220.621.9137753031104-1.31377530311037
43129.31671430012922.68328569987079
441419.4213968443725-5.42139684437254
4516.917.0082996542520-0.108299654251955
461310.50549228404152.49450771595848
473027.83443404975552.16556595024448
4817.720.1967452060727-2.49674520607275
492121.7167357242395-0.716735724239508
5020.520.9217944178898-0.421794417889803
5126.628.7345341875963-2.13453418759629
521514.04009845247620.95990154752379
5328.426.80487486629841.59512513370155
542320.8383378640392.161662135961
5516.513.86693605259852.63306394740150
562524.74426634148160.255733658518398
571616.7825983257136-0.782598325713552
581513.47400307563611.52599692436391
592727.3598820747507-0.359882074750678
601312.70870878755380.291291212446185
611719.9127985382105-2.91279853821053
6217.517.5881785298979-0.0881785298979375
632828.9581013925123-0.95810139251228
643430.24071720164343.75928279835664
652728.6441349120428-1.64413491204281
661312.67954389728010.320456102719870
671717.3395969658199-0.339596965819891
681814.95325211871733.04674788128267
691616.7562387115656-0.756238711565572
7017.514.69364174632562.80635825367440
712928.33370792078630.666292079213678
723028.65241534617961.34758465382042
7330.528.70373719452561.79626280547436
7432.130.32586270475081.77413729524917
7523.526.9053493347983-3.40534933479826
762827.56777025038610.432229749613906
7728.826.02989412614632.77010587385372
7817.520.6094333241187-3.10943332411869
79119.290280119684561.70971988031544
801311.7349706706781.26502932932201
811411.39411869985652.60588130014354
821410.90046541101393.0995345889861
831314.8739397869971-1.87393978699707
8420.523.0519556937217-2.55195569372168
8519.220.6378264408747-1.43782644087466
861514.89727042176840.102729578231579
8715.516.2131580942661-0.713158094266136
8819.221.4738023721633-2.27380237216328
891514.24316367902370.75683632097635
902020.1407103758097-0.140710375809735
911519.7423596482482-4.74235964824823
921819.5239889834764-1.52398898347638
932220.89366208606241.10633791393758
941619.4336380245463-3.43363802454635
952023.1369024756969-3.1369024756969
962124.2882044563889-3.28820445638888
972523.8667592513851.13324074861498
982222.6476263712896-0.647626371289558
992823.0097587068934.99024129310699
10024.527.6264127248051-3.12641272480513
1011316.6763218317546-3.6763218317546
102108.066263784959051.93373621504095
1033128.44753790308992.55246209691009
10415.516.0380419833115-0.538041983311481
1052629.6712100724733-3.67121007247328
10617.623.9575533150052-6.35755331500522
10718.520.0070689798017-1.50706897980174
1081310.5883122516132.41168774838699
1091311.52573093825421.47426906174578
1103529.18050954324155.8194904567585
11123.929.6777137526534-5.77771375265345
11232.930.53715320748972.36284679251029
11331.833.1449785879386-1.34497858793860
11440.833.31807095557577.48192904442429
1153735.01682035907481.98317964092515
11632.727.12527648840245.57472351159762
11737.233.73120605436333.46879394563672
1183835.51401483648182.48598516351823
11927.230.3664834788258-3.16648347882576
1202825.53017058815522.46982941184484
1213731.13599411495695.86400588504305
1222225.8843992098881-3.88439920988815
1232426.5732955331413-2.57329553314133
1243229.38287638349632.61712361650369
1252225.7857926475817-3.78579264758167
12624.227.6486144312360-3.44861443123596
1273230.75026529503781.24973470496223
1283129.53351138190271.46648861809732
12939.431.89405330066777.50594669933228
13033.531.81343891266851.68656108733151
1312724.91133366820582.08866633179415
1322725.68836060730691.31163939269313
1332929.8344038618583-0.834403861858288
13425.828.6514093853129-2.85140938531294
13518.620.2978927326112-1.69789273261117
13619.123.8193976980333-4.71939769803327
13720.622.6535031692065-2.05350316920646
1382018.63854855083771.36145144916232
1391515.4941717677438-0.494171767743808
1403630.63720429356785.36279570643215
1412626.3222285940260-0.322228594026039
14227.926.43012827077901.46987172922096
1432825.26829964107932.73170035892069
1442823.59300413194394.40699586805606
1452523.99421547879291.00578452120712
14635.730.65561653176115.04438346823888
14733.528.09200535507925.40799464492083
1481614.99128908148381.00871091851615
1491515.3920453907817-0.392045390781749
1501411.68511415927782.31488584072215
1511317.9894092129040-4.98940921290402
152117.989277370095963.01072262990404
1531517.8099160369132-2.80991603691325
15419.419.7962229852331-0.396222985233084
15517.517.5206919792937-0.0206919792937378
156126.867163915164785.13283608483522
15715.516.2501246723559-0.750124672355856
15830.928.03149672452692.86850327547308
1593231.02973885270530.970261147294687
16018.220.1848868244501-1.98488682445013
1612626.1800015118144-0.180001511814401
1622627.6702387484031-1.67023874840313
1633025.90370347934164.09629652065838
1642428.0914815672734-4.09148156727336
1652929.1933092433122-0.19330924331219
1662827.46425754017570.535742459824258
16737.331.89878481142815.40121518857187
1683128.73745719903992.2625428009601
169129.473151632598462.52684836740154
170138.89865730465454.10134269534549
17115.519.2745790521554-3.77457905215541
17229.929.86044287818680.0395571218131987
17334.431.75245789880732.64754210119274
1741317.2768290505980-4.27682905059803
175107.38149511539922.6185048846008
17626.426.17854319931890.221456800681091
17720.224.3189160318847-4.11891603188470
17825.125.4174687429929-0.317468742992924
17922.325.2040261488613-2.90402614886133
1802427.5589399807833-3.55893998078325
18136.130.90485226385235.19514773614765
18218.122.8290456603131-4.7290456603131
1831413.02925961765300.970740382347014
1841412.12402459337321.87597540662681
1851510.86737354883904.13262645116101
1861413.62472639710860.375273602891430
18714.515.5626371959393-1.06263719593926
1881613.64332339747712.3566766025229
1891311.22078681980901.77921318019103
1901410.46646855819343.5335314418066
19118.520.9997508655774-2.49975086557735
1921820.4157904570344-2.41579045703445
19320.226.0607939117851-5.86079391178508
1942228.4887234650783-6.4887234650783
1951312.14513935075360.854860649246412
1961411.9477264539012.05227354609899
19717.620.4725341727915-2.87253417279153
1981522.4207295451384-7.42072954513835
1991821.2577537597315-3.25775375973147
2002120.65504632642720.344953673572788
2012422.66459342067171.33540657932834
2021818.7536684824764-0.75366848247641
2032728.1080371457606-1.10803714576059
2041320.9846557407931-7.98465574079314
20525.524.41903610979941.08096389020062
2061820.8439217240723-2.84392172407230
2071924.1517457509621-5.15174575096211
2082323.8474112178197-0.847411217819685
2092623.91531977627472.08468022372530
21026.525.05207436433561.44792563566440
2112222.588395106967-0.588395106967016
2122123.7620015424993-2.76200154249933
2132829.1002710025261-1.10027100252611
2141615.72344359309080.276556406909202
2151714.90194083117832.09805916882174
2161917.73897890572531.26102109427472
21796.009575977840742.99042402215926
21832.432.33642105376430.0635789462356846
2193634.20854960064861.79145039935137
22031.531.62496496159-0.124964961590032
22129.531.6477615608057-2.14776156080571
2222426.0378226771787-2.03782267717872
2233332.54342216710850.456577832891547
2243835.62040271708952.37959728291046
2253235.6757748422974-3.67577484229744
22635.136.1935156717064-1.09351567170639
22744.634.74311937032239.8568806296777
2283331.77430553160861.22569446839144
22936.133.85753684039042.24246315960963
23033.733.39006043730960.309939562690409
23134.133.15451237365330.945487626346694
2321827.0094928614788-9.0094928614788
23331.330.94212775191680.357872248083203
23431.631.17655486001970.423445139980348
23546.633.239215652788913.3607843472111
23634.134.7700876674134-0.670087667413412
2373135.7743352260431-4.77433522604314
2383735.45272592064421.54727407935582
23932.832.6871702248080.112829775192019
24021.525.9943288374680-4.49432883746803
24123.730.2014700570826-6.50147005708263
2421924.7228425438662-5.7228425438662
24325.424.50226154176790.89773845823214
2443027.07700543315792.92299456684206
24516.518.3249409669513-1.82494096695134
2462322.82747931813440.172520681865629
2472122.1205400562471-1.12054005624706
2481515.1940324319628-0.194032431962800
24916.519.9246275973087-3.42462759730871
2503631.98875012713634.01124987286371
2511110.35926365746980.640736342530218
252129.217064218331762.78293578166824
2531520.7007388482540-5.70073884825403
25420.220.5063203114386-0.30632031143863
25520.823.6855184309203-2.88551843092029
25619.825.1180306542284-5.31803065422837
2573634.58585422623791.41414577376214
2583828.67310415486169.32689584513842
25926.624.05694310292702.54305689707296
26019.921.6157446627374-1.71574466273736
26123.922.91736009688530.982639903114749
2621716.45186138114900.548138618851039
2631210.72325263370661.27674736629341
2641116.2534769308848-5.25347693088479
26526.825.45186865038981.34813134961023
26623.825.003909041445-1.20390904144503
2671210.76896073854211.23103926145789
2682529.5190606341166-4.51906063411657
2692825.89178321818462.10821678181535
2702427.6023801665282-3.60238016652819
2712626.8372848948843-0.837284894884293
2723026.13211819023393.86788180976612
2731922.8373028082669-3.8373028082669
2742323.7730212245795-0.773021224579534
2752521.61829454714263.38170545285742
27627.226.74728357343860.452716426561396
2772121.5102530105412-0.510253010541234
27828.127.52121755174630.578782448253719
27916.222.2027813523233-6.00278135232327
2801414.1780409730519-0.178040973051911
28125.526.8896301361788-1.38963013617876
2823932.63948354336796.36051645663205
2832624.66749830572011.33250169427990
2841310.19002379747162.80997620252841
2852020.1170658467936-0.117065846793644
2862218.73494838464263.26505161535737
2872320.62914344690762.37085655309242
2881817.15608140567710.843918594322912
2891412.4634747642111.53652523578900
2901411.73693049395222.26306950604784
2911410.89796633016213.10203366983787
2921512.29180397009112.70819602990887
2931612.26611838516773.7338816148323
29434.228.99791856082885.20208143917117
29534.730.71307608661143.98692391338865
2963832.0782169899745.92178301002597
29734.529.46791292841685.03208707158315
29827.229.2685094564121-2.06850945641207
2993029.75161128895500.248388711044954
30023.225.4270825024087-2.22708250240866
3011815.23055100689722.76944899310276
3021615.91107129091740.0889287090826203
3031412.72055776748461.27944223251538
3041817.15364830606820.846351693931836
3051819.6781303576365-1.67813035763651
3062221.26155213325520.738447866744777
3071920.4148824280065-1.41488242800655
30820.521.6360458031843-1.13604580318434
3091919.5564935566136-0.55649355661361
3101316.6847057205303-3.68470572053029
3112324.3723711460176-1.37237114601757
3121412.00721559354431.99278440645572
3131410.43619249781503.56380750218495
3141612.49062350498833.50937649501166
3151410.66051679037493.33948320962514
3161917.61543350180101.38456649819904
3171612.30440552210963.69559447789039
3181616.8374536174621-0.837453617462145
3193128.94501298601182.05498701398821
32021.523.3832282446142-1.88322824461423
3212728.8579867873446-1.85798678734458
32233.527.34837015598786.15162984401218
32319.221.1426160858053-1.94261608580532
324136.16384863827386.8361513617262
32524.524.8174610272577-0.317461027257735
32618.518.9777877618933-0.477787761893321
3272626.4446168131823-0.44461681318234
3282729.1172361022955-2.11723610229552
3293632.61217430861293.38782569138712
3302523.32193905649541.67806094350457
33121.626.6213754386819-5.02137543868186
3322423.59858475934770.401415240652298
3332524.94835557394870.0516444260512951
3342626.5199819674882-0.519981967488218
33532.334.5376977302497-2.23769773024966
3363031.8556764536199-1.85567645361993
33733.833.23966066816080.560339331839241
3382026.5985309125805-6.59853091258053
3393231.57966816466400.420331835336043
34021.129.3277077835367-8.22770778353667
3412829.7924165005541-1.79241650055405
3422928.87638220101050.123617798989512
34332.232.3312234440398-0.131223444039747
34432.432.6644325899318-0.264432589931794
3453434.2448774862028-0.244877486202757
3463128.23470633100002.76529366899997
3473230.30123902030091.69876097969909
3482726.82490514225180.175094857748248
3492629.9736866504639-3.97368665046393
35038.134.42613618356443.67386381643556
3512425.6207677235606-1.62076772356064
3522525.2475655009923-0.247565500992309
35327.528.9782786761979-1.47827867619795
3543131.556395442714-0.556395442714031
3552425.8077277877414-1.80772778774141
35629.829.7128158181750.0871841818249851
3572423.58334628356030.416653716439685
35825.428.3552663366123-2.95526633661232
3591924.3559429056950-5.35594290569497
3602022.4374647674928-2.43746476749277
36139.136.27875966117432.82124033882574
36237.734.49789014212593.20210985787405
3632324.3301407508056-1.33014075080563
3643530.62246298593014.37753701406987
36529.834.7150600086545-4.9150600086545
3662627.9059948230213-1.90599482302132
3672224.7560549765919-2.75605497659188
3682528.2486512238927-3.24865122389273
3692628.9461898937472-2.9461898937472
37030.529.87486675179430.625133248205712
3713333.2554478201779-0.255447820177882
3722728.3165090956889-1.31650909568888
3732929.9882469583331-0.98824695833314
37429.531.5241184990363-2.02411849903631
3752931.584103998043-2.58410399804299
37643.132.990538316461410.1094616835386
3773635.52866876564040.471331234359568
37831.531.9927080412287-0.492708041228663
3792629.5049329836817-3.50493298368169
3802326.7402391475755-3.74023914757553
3811922.2851124867926-3.28511248679255
3821820.9928075434008-2.99280754340076
3832223.4979322477192-1.49793224771922
3842023.137328024017-3.13732802401699
3851723.986026099801-6.986026099801
38630.727.11689159602623.58310840397380
38743.432.369984429306411.0300155706936
3884435.46597643807068.53402356192944
3892930.7810945046364-1.78109450463642
39041.532.6224326326698.87756736733098
39144.333.889374389128110.4106256108719
39231.933.134717216199-1.23471721619902


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
120.2392043215786490.4784086431572970.760795678421351
130.1274501715508270.2549003431016530.872549828449173
140.05986350646088860.1197270129217770.940136493539111
150.08135979827594250.1627195965518850.918640201724057
160.04589479270846980.09178958541693960.95410520729153
170.02983529035707180.05967058071414360.970164709642928
180.0381073210983090.0762146421966180.961892678901691
190.02010917692972930.04021835385945870.97989082307027
200.01023405473065730.02046810946131450.989765945269343
210.005260916582704680.01052183316540940.994739083417295
220.002542790285223370.005085580570446750.997457209714777
230.001178557439131880.002357114878263760.998821442560868
240.0005294318276584540.001058863655316910.999470568172341
250.0002542635333760350.000508527066752070.999745736466624
260.0001230748388384870.0002461496776769730.999876925161161
275.65202080174117e-050.0001130404160348230.999943479791983
282.28348831231655e-054.5669766246331e-050.999977165116877
298.79242847601574e-050.0001758485695203150.99991207571524
304.01027737543953e-058.02055475087906e-050.999959897226246
310.001346141944164780.002692283888329550.998653858055835
320.005479964334307240.01095992866861450.994520035665693
330.2413182049657260.4826364099314530.758681795034274
340.2111455801345140.4222911602690290.788854419865486
350.1875640556947560.3751281113895130.812435944305244
360.2371660545616930.4743321091233860.762833945438307
370.1951036565589550.390207313117910.804896343441045
380.1614877304781300.3229754609562590.83851226952187
390.1291615766715050.258323153343010.870838423328495
400.1058406919186520.2116813838373050.894159308081348
410.09405959738202660.1881191947640530.905940402617973
420.07372292925262940.1474458585052590.92627707074737
430.09533062835072970.1906612567014590.90466937164927
440.08199565425990980.1639913085198200.91800434574009
450.06403574085755880.1280714817151180.935964259142441
460.05178934457182790.1035786891436560.948210655428172
470.07211002123435370.1442200424687070.927889978765646
480.06591985537908930.1318397107581790.93408014462091
490.0524548856552340.1049097713104680.947545114344766
500.04079256009047700.08158512018095410.959207439909523
510.03224471373933940.06448942747867890.96775528626066
520.02607280471021380.05214560942042760.973927195289786
530.02980846350374490.05961692700748980.970191536496255
540.0373540639038920.0747081278077840.962645936096108
550.03272458650589120.06544917301178230.96727541349411
560.02717578408444490.05435156816888970.972824215915555
570.02114026200196900.04228052400393810.97885973799803
580.01635693737402470.03271387474804940.983643062625975
590.01272745536881450.02545491073762890.987272544631186
600.009446615684861780.01889323136972360.990553384315138
610.008663628574141230.01732725714828250.991336371425859
620.006348637825864470.01269727565172890.993651362174136
630.004709310051732610.009418620103465220.995290689948267
640.009157452989770190.01831490597954040.99084254701023
650.007038269841123670.01407653968224730.992961730158876
660.005217783402390280.01043556680478060.99478221659761
670.003815724389354450.007631448778708910.996184275610646
680.004033667136125350.00806733427225070.995966332863875
690.002986223193444740.005972446386889490.997013776806555
700.002415051617398830.004830103234797650.997584948382601
710.002037627214904060.004075254429808120.997962372785096
720.001760526143418850.003521052286837690.998239473856581
730.00165878502308820.00331757004617640.998341214976912
740.001474523489702900.002949046979405800.998525476510297
750.001679455672778550.003358911345557110.998320544327221
760.001312249539104710.002624499078209430.998687750460895
770.001229557612657870.002459115225315750.998770442387342
780.001120810723103000.002241621446205990.998879189276897
790.0008973291937433650.001794658387486730.999102670806257
800.0006482138787378710.001296427757475740.999351786121262
810.0005391096500736380.001078219300147280.999460890349926
820.0007222238582950840.001444447716590170.999277776141705
830.0005659691399056310.001131938279811260.999434030860094
840.0004743084119418910.0009486168238837820.999525691588058
850.0003550671760277150.000710134352055430.999644932823972
860.0002667449586863880.0005334899173727760.999733255041314
870.0001910531366147690.0003821062732295370.999808946863385
880.0001425358435975870.0002850716871951750.999857464156402
890.0001009160397242340.0002018320794484670.999899083960276
906.9110973360128e-050.0001382219467202560.99993088902664
919.69522708262066e-050.0001939045416524130.999903047729174
926.99442575929416e-050.0001398885151858830.999930055742407
935.37870512930481e-050.0001075741025860960.999946212948707
944.78208803334762e-059.56417606669524e-050.999952179119667
954.07459399036579e-058.14918798073159e-050.999959254060096
963.36550715951034e-056.73101431902068e-050.999966344928405
972.59577647935411e-055.19155295870822e-050.999974042235206
981.79467854018835e-053.58935708037670e-050.999982053214598
994.18276697376868e-058.36553394753735e-050.999958172330262
1003.2938265910107e-056.5876531820214e-050.99996706173409
1013.78927321931971e-057.57854643863942e-050.999962107267807
1022.65508176004433e-055.31016352008867e-050.9999734491824
1032.93364932647647e-055.86729865295295e-050.999970663506735
1042.03446870028639e-054.06893740057278e-050.999979655312997
1052.12979606909436e-054.25959213818873e-050.99997870203931
1065.30771725403926e-050.0001061543450807850.99994692282746
1073.83894620221839e-057.67789240443677e-050.999961610537978
1083.2286569878504e-056.4573139757008e-050.999967713430121
1092.37733635665999e-054.75467271331999e-050.999976226636433
1102.0316857118142e-054.0633714236284e-050.999979683142882
1110.0002029561344867940.0004059122689735880.999797043865513
1120.0001700226955885000.0003400453911770010.999829977304411
1130.0001253380999182530.0002506761998365070.999874661900082
1140.0006127348762755050.001225469752551010.999387265123725
1150.0004868324219062120.0009736648438124240.999513167578094
1160.0005130027926496250.001026005585299250.99948699720735
1170.0004441699096911170.0008883398193822340.999555830090309
1180.0003511274064379070.0007022548128758150.999648872593562
1190.0006589219734084620.001317843946816920.999341078026592
1200.0005317025841487490.001063405168297500.999468297415851
1210.000723111656298740.001446223312597480.999276888343701
1220.001845806514632520.003691613029265040.998154193485367
1230.002389556513507990.004779113027015980.997610443486492
1240.00201235038136770.00402470076273540.997987649618632
1250.003704831953560940.007409663907121880.99629516804644
1260.005405426478843250.01081085295768650.994594573521157
1270.004341200000902730.008682400001805450.995658799999097
1280.003495036562110850.006990073124221710.99650496343789
1290.008913400570739350.01782680114147870.99108659942926
1300.007381689970364980.01476337994073000.992618310029635
1310.006192242883368710.01238448576673740.993807757116631
1320.005139381897551960.01027876379510390.994860618102448
1330.00413002307978680.00826004615957360.995869976920213
1340.003751230857590970.007502461715181940.996248769142409
1350.003124931178518590.006249862357037180.996875068821481
1360.003645860251608540.007291720503217080.996354139748391
1370.003082558255613540.006165116511227090.996917441744386
1380.002557966806586210.005115933613172410.997442033193414
1390.00202192323198740.00404384646397480.997978076768013
1400.003731484839697150.00746296967939430.996268515160303
1410.002952461355760630.005904922711521260.99704753864424
1420.002433295271684770.004866590543369530.997566704728315
1430.002166551068861940.004333102137723880.997833448931138
1440.002425595052916680.004851190105833360.997574404947083
1450.001917098716203680.003834197432407360.998082901283796
1460.002782426567818420.005564853135636840.997217573432182
1470.004101461908368350.00820292381673670.995898538091632
1480.003311321668087930.006622643336175860.996688678331912
1490.002628480314795740.005256960629591490.997371519685204
1500.002255502707264070.004511005414528150.997744497292736
1510.002969926122690570.005939852245381150.99703007387731
1520.002663098132239880.005326196264479760.99733690186776
1530.002505042526216490.005010085052432980.997494957473783
1540.001998977960499440.003997955920998880.9980010220395
1550.001573789252137210.003147578504274430.998426210747863
1560.001920176308992620.003840352617985250.998079823691007
1570.001518109541942510.003036219083885030.998481890458057
1580.001376514236538500.002753028473076990.998623485763461
1590.001078551137412770.002157102274825550.998921448862587
1600.0008885093847597550.001777018769519510.99911149061524
1610.0006843985713855040.001368797142771010.999315601428614
1620.0005470637981364590.001094127596272920.999452936201864
1630.000675428929799890.001350857859599780.9993245710702
1640.0007454913106509420.001490982621301880.99925450868935
1650.0006043937020925190.001208787404185040.999395606297907
1660.0004727251402576580.0009454502805153160.999527274859742
1670.0009514391712558730.001902878342511750.999048560828744
1680.000865732642898010.001731465285796020.999134267357102
1690.0007613599092642040.001522719818528410.999238640090736
1700.0008329645447673550.001665929089534710.999167035455233
1710.0008519334227016870.001703866845403370.999148066577298
1720.0006770352123010230.001354070424602050.9993229647877
1730.0006465628943985830.001293125788797170.999353437105601
1740.0007504773803613230.001500954760722650.999249522619639
1750.0006487089381464950.001297417876292990.999351291061853
1760.000498822967444910.000997645934889820.999501177032555
1770.0005696302120850070.001139260424170010.999430369787915
1780.0004491814037731840.0008983628075463670.999550818596227
1790.0004571879727923890.0009143759455847780.999542812027208
1800.0005155950977315280.001031190195463060.999484404902268
1810.0007903040388940280.001580608077788060.999209695961106
1820.0009992436329794960.001998487265958990.99900075636702
1830.0007942577041325020.001588515408265000.999205742295868
1840.0006681089330593340.001336217866118670.99933189106694
1850.0007562510360922070.001512502072184410.999243748963908
1860.0005858285983427020.001171657196685400.999414171401657
1870.0004666829674428530.0009333659348857060.999533317032557
1880.0004043463605842620.0008086927211685240.999595653639416
1890.0003323140422631550.000664628084526310.999667685957737
1900.0003389175070366230.0006778350140732470.999661082492963
1910.0002989113058360040.0005978226116720090.999701088694164
1920.0002680623720537230.0005361247441074460.999731937627946
1930.0004592194892072260.0009184389784144530.999540780510793
1940.0009614205583047220.001922841116609440.999038579441695
1950.0007537926218359720.001507585243671940.999246207378164
1960.0006313415535432750.001262683107086550.999368658446457
1970.000594649662073490.001189299324146980.999405350337927
1980.001687846476961910.003375692953923820.998312153523038
1990.001807272360222820.003614544720445650.998192727639777
2000.001438914341633770.002877828683267540.998561085658366
2010.001245395446885650.002490790893771310.998754604553114
2020.00102283775665820.00204567551331640.998977162243342
2030.0008481867730826820.001696373546165360.999151813226917
2040.003202779317742150.00640555863548430.996797220682258
2050.002588076090658950.00517615218131790.99741192390934
2060.002729618812560850.00545923762512170.99727038118744
2070.004330892515978850.00866178503195770.995669107484021
2080.003636776149948170.007273552299896330.996363223850052
2090.003089778551215710.006179557102431430.996910221448784
2100.002498580344848660.004997160689697310.997501419655151
2110.00209907959286810.00419815918573620.997900920407132
2120.002150272485398600.004300544970797210.997849727514601
2130.001811064920333660.003622129840667320.998188935079666
2140.001486884816706560.002973769633413120.998513115183293
2150.001254808814165670.002509617628331350.998745191185834
2160.0010142551482060.0020285102964120.998985744851794
2170.001127569700211180.002255139400422360.998872430299789
2180.0008824700446608170.001764940089321630.99911752995534
2190.0007194056253412660.001438811250682530.999280594374659
2200.0005573295135794980.001114659027159000.99944267048642
2210.0005137112137424340.001027422427484870.999486288786258
2220.0005544831662091630.001108966332418330.99944551683379
2230.000430530897678880.000861061795357760.99956946910232
2240.0003758492575785620.0007516985151571240.999624150742422
2250.0004330841540841150.000866168308168230.999566915845916
2260.0003476087314511330.0006952174629022660.99965239126855
2270.002749319033017180.005498638066034370.997250680966983
2280.002242127722340710.004484255444681410.99775787227766
2290.001965175417345330.003930350834690650.998034824582655
2300.001574188000656000.003148376001312000.998425811999344
2310.001272247953591130.002544495907182260.99872775204641
2320.01044788760990840.02089577521981680.989552112390092
2330.008579549159690.017159098319380.99142045084031
2340.007014413883355330.01402882776671070.992985586116645
2350.1192580918860120.2385161837720250.880741908113988
2360.1058742527083480.2117485054166970.894125747291652
2370.1235450587819120.2470901175638230.876454941218088
2380.1128588554511480.2257177109022950.887141144548852
2390.09927791757936880.1985558351587380.900722082420631
2400.1284392236817580.2568784473635150.871560776318242
2410.1870487921870130.3740975843740270.812951207812987
2420.2361098449237310.4722196898474620.76389015507627
2430.2163534596063690.4327069192127380.783646540393631
2440.2111613358957760.4223226717915530.788838664104224
2450.1996252005092780.3992504010185560.800374799490722
2460.1792459933726810.3584919867453620.82075400662732
2470.1623196840734880.3246393681469750.837680315926512
2480.1444764226641510.2889528453283030.855523577335849
2490.1631079688270630.3262159376541250.836892031172937
2500.1685585899161080.3371171798322160.831441410083892
2510.1513614598279760.3027229196559520.848638540172024
2520.1416081140905120.2832162281810240.858391885909488
2530.2308401926389330.4616803852778660.769159807361067
2540.2110354307597490.4220708615194980.788964569240251
2550.2205206196882350.4410412393764710.779479380311765
2560.2995127159948630.5990254319897260.700487284005137
2570.2780739847518390.5561479695036770.721926015248161
2580.4129373730297230.8258747460594460.587062626970277
2590.4209559396187880.8419118792375760.579044060381212
2600.4164331530031850.832866306006370.583566846996815
2610.4103691750286770.8207383500573540.589630824971323
2620.3829545695467060.7659091390934110.617045430453294
2630.3549732213110420.7099464426220850.645026778688958
2640.4383568232143320.8767136464286630.561643176785668
2650.4107746841025310.8215493682050620.589225315897469
2660.3932616106723350.786523221344670.606738389327665
2670.3666428118242850.7332856236485690.633357188175715
2680.405743533742020.811487067484040.59425646625798
2690.3945593933536970.7891187867073930.605440606646303
2700.406564905932650.81312981186530.59343509406735
2710.3768985413838190.7537970827676370.623101458616181
2720.3980922132581840.7961844265163690.601907786741816
2730.3982528621846410.7965057243692820.601747137815359
2740.3688034947740820.7376069895481650.631196505225918
2750.4025713988517260.8051427977034510.597428601148274
2760.3781660914309940.7563321828619880.621833908569006
2770.3502212511029970.7004425022059940.649778748897003
2780.3220038027079750.644007605415950.677996197292025
2790.3565345418969110.7130690837938230.643465458103089
2800.32874002548310.65748005096620.6712599745169
2810.3086122439321280.6172244878642560.691387756067872
2820.3594679725189120.7189359450378240.640532027481088
2830.3322745328884290.6645490657768580.667725467111571
2840.3169314524390220.6338629048780440.683068547560978
2850.2904574269684610.5809148539369220.709542573031539
2860.2836784904817930.5673569809635870.716321509518207
2870.2640354398110930.5280708796221870.735964560188907
2880.2383401713276530.4766803426553070.761659828672347
2890.2156819208429180.4313638416858350.784318079157083
2900.2017866886403630.4035733772807260.798213311359637
2910.1881145092883370.3762290185766740.811885490711663
2920.179569280396210.359138560792420.82043071960379
2930.1872996491118220.3745992982236440.812700350888178
2940.2255865195702650.451173039140530.774413480429735
2950.2320753400095760.4641506800191510.767924659990424
2960.2887055008928340.5774110017856680.711294499107166
2970.3592425610372030.7184851220744050.640757438962797
2980.3397447789976450.679489557995290.660255221002355
2990.3109313046066090.6218626092132180.689068695393391
3000.2955778774924930.5911557549849860.704422122507507
3010.3009814490654850.601962898130970.699018550934515
3020.2762586335769780.5525172671539550.723741366423022
3030.2599950306415840.5199900612831690.740004969358416
3040.2387838373737880.4775676747475770.761216162626212
3050.2176125898272310.4352251796544630.782387410172769
3060.1937662661930650.387532532386130.806233733806935
3070.1743532261935150.3487064523870290.825646773806485
3080.1593805776470330.3187611552940650.840619422352967
3090.1409542822804400.2819085645608810.85904571771956
3100.1489419128841330.2978838257682650.851058087115868
3110.1366191226326540.2732382452653070.863380877367346
3120.1198113546713740.2396227093427480.880188645328626
3130.1080241295430150.2160482590860290.891975870456985
3140.09683708211106980.1936741642221400.90316291788893
3150.08844603431965770.1768920686393150.911553965680342
3160.0755267687603630.1510535375207260.924473231239637
3170.09633333335929070.1926666667185810.90366666664071
3180.0824313592181140.1648627184362280.917568640781886
3190.07423501693492220.1484700338698440.925764983065078
3200.06990855489066310.1398171097813260.930091445109337
3210.0804929583770640.1609859167541280.919507041622936
3220.1164329168244800.2328658336489600.88356708317552
3230.1392542789609940.2785085579219890.860745721039006
3240.3236591487099890.6473182974199770.676340851290011
3250.308677399203570.617354798407140.69132260079643
3260.2743108195569620.5486216391139240.725689180443038
3270.2416594784251090.4833189568502170.758340521574891
3280.2183909616497030.4367819232994050.781609038350297
3290.2021894392685910.4043788785371820.79781056073141
3300.2035390945922520.4070781891845050.796460905407748
3310.2539462380438650.507892476087730.746053761956135
3320.2455926652361540.4911853304723080.754407334763846
3330.2286557380509410.4573114761018820.771344261949059
3340.2051718810486070.4103437620972140.794828118951393
3350.2300162977617240.4600325955234470.769983702238276
3360.2086089974962120.4172179949924240.791391002503788
3370.1871213394288450.374242678857690.812878660571155
3380.3138845737790490.6277691475580970.686115426220951
3390.2810323848311030.5620647696622050.718967615168898
3400.4560649809418760.9121299618837510.543935019058124
3410.428946721835040.857893443670080.57105327816496
3420.3855392329279420.7710784658558850.614460767072058
3430.3456648069689530.6913296139379070.654335193031047
3440.3374235567280180.6748471134560360.662576443271982
3450.3519045018944860.7038090037889720.648095498105514
3460.3399272403094540.6798544806189080.660072759690546
3470.3051790813157470.6103581626314930.694820918684253
3480.2702637620700350.5405275241400710.729736237929965
3490.4234381085184230.8468762170368460.576561891481577
3500.3964372730566710.7928745461133420.603562726943329
3510.3526031658094970.7052063316189950.647396834190503
3520.3575554389912030.7151108779824070.642444561008797
3530.3173696279487680.6347392558975370.682630372051232
3540.2720288793395090.5440577586790180.727971120660491
3550.2308650043624750.461730008724950.769134995637525
3560.2171339872539020.4342679745078040.782866012746098
3570.2411506393597300.4823012787194610.75884936064027
3580.2066290327067210.4132580654134420.793370967293279
3590.202575764168390.405151528336780.79742423583161
3600.2534773264646650.5069546529293290.746522673535335
3610.2216548593406530.4433097186813050.778345140659347
3620.2414294334228590.4828588668457180.758570566577141
3630.1961670244600870.3923340489201740.803832975539913
3640.1925199242680990.3850398485361970.807480075731901
3650.4096758664449540.8193517328899080.590324133555046
3660.3637539234866010.7275078469732010.636246076513399
3670.3162463329022890.6324926658045780.683753667097711
3680.3327869853730420.6655739707460830.667213014626958
3690.3461390461149590.6922780922299180.653860953885041
3700.2774663959816540.5549327919633080.722533604018346
3710.246063430650140.492126861300280.75393656934986
3720.3163266213991350.6326532427982690.683673378600866
3730.2471893138858610.4943786277717220.752810686114139
3740.2340493109208440.4680986218416880.765950689079156
3750.1694304426364100.3388608852728210.83056955736359
3760.3362247727142790.6724495454285590.663775227285721
3770.2685895951060430.5371791902120870.731410404893956
3780.2376107666788420.4752215333576840.762389233321158
3790.1915197397929310.3830394795858620.80848026020707
3800.1069685718418660.2139371436837330.893031428158134


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level1710.463414634146341NOK
5% type I error level1920.520325203252033NOK
10% type I error level2020.547425474254743NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/10br8i1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/10br8i1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/1fzar1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/1fzar1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/2fzar1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/2fzar1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/38qrc1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/38qrc1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/48qrc1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/48qrc1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/58qrc1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/58qrc1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/6izrx1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/6izrx1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/7izrx1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/7izrx1293670458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/8br8i1293670458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/30/t1293670372tt5c2k1f40lcrx5/8br8i1293670458.ps (open in new window)


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