Home » date » 2010 » Dec » 21 »

workshop 10 multiple regression

*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, 21 Dec 2010 12:55:43 +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/21/t1292936109xtnhczit9bas1w7.htm/, Retrieved Tue, 21 Dec 2010 13:55:22 +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/21/t1292936109xtnhczit9bas1w7.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 «
162556 807 213118 6282154 29790 444 81767 4321023 87550 412 153198 4111912 84738 428 -26007 223193 54660 315 126942 1491348 42634 168 157214 1629616 40949 263 129352 1398893 45187 267 234817 1926517 37704 228 60448 983660 16275 129 47818 1443586 25830 104 245546 1073089 12679 122 48020 984885 18014 393 -1710 1405225 43556 190 32648 227132 24811 280 95350 929118 6575 63 151352 1071292 7123 102 288170 638830 21950 265 114337 856956 37597 234 37884 992426 17821 277 122844 444477 12988 73 82340 857217 22330 67 79801 711969 13326 103 165548 702380 16189 290 116384 358589 7146 83 134028 297978 15824 56 63838 585715 27664 236 74996 657954 11920 73 31080 209458 8568 34 32168 786690 14416 139 49857 439798 3369 26 87161 688779 11819 70 106113 574339 6984 40 80570 741409 4519 42 102129 597793 2220 12 301670 644190 18562 211 102313 377934 10327 74 88577 640273 5336 80 112477 697458 2365 83 191778 550608 4069 131 79804 207393 8636 203 128294 301607 13718 56 96448 345783 4525 89 93 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 time27 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Orders[t] = -5.92658827283643 + 0.00479191603048801Costs[t] + 0.000213380207732667Dividends[t] + 1.89618540709206e-05Wealth[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-5.926588272836434.329137-1.3690.1717190.08586
Costs0.004791916030488010.00023420.477300
Dividends0.0002133802077326675.6e-053.78290.0001778.9e-05
Wealth1.89618540709206e-057e-062.88660.0040920.002046


Multiple Linear Regression - Regression Statistics
Multiple R0.885374171063649
R-squared0.783887422786644
Adjusted R-squared0.782369067443224
F-TEST (value)516.274023853543
F-TEST (DF numerator)3
F-TEST (DF denominator)427
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation34.7471610458232
Sum Squared Residuals515544.940717848


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1807937.624564489792-130.624564489792
2444236.206657284166207.793342715834
3412524.264556557086-112.264556557086
4428398.81356635180329.1864336481973
5315311.3651754285973.63482457140286
6168262.81885653311-94.81885653311
7263244.42434281708518.5756571829150
8267297.241355855135-30.2413558551345
9228206.29823791310921.7017620868909
10129109.63832696754019.3616730324595
11104190.591016305705-86.5910163057046
1212283.751878299682238.2481217003178
13393106.675778331961286.324221668039
14190214.063387211991-24.0633872119912
15280150.929243097577129.070756902423
166378.1894633997217-15.1894633997217
17102101.8094053107790.190594689221014
18265139.902696025105125.097303974895
19234201.13701150335332.8629884966474
20277114.110733557083162.889266442917
217390.134967096962-17.1349670969620
2267131.605102926254-64.6051029262544
23103106.573578441508-3.57357844150768
24290103.28329473093186.71670526907
258362.565581515369720.4344184846303
265694.628699051993-38.6286990519930
27236155.11566658708180.8843334129188
287361.796619696898711.2033803031013
293456.9116637777817-22.9116637777817
3013982.131555736288956.8684442637111
312641.8763360051794-15.8763360051794
327084.2420135798763-14.2420135798763
334058.79068588598-18.7906858859800
344248.8556511350864-6.8556511350864
351281.2969093555075-69.2969093555075
36211112.01885563527498.9811443647264
377474.6008704259002-0.600870425900242
388056.86853810759123.1314618924090
398356.768471164104926.2315288358951
4013134.532867954447596.4671320455525
4120368.550826858081134.449173141919
425686.9456968950035-30.9456968950034
438945.288333750961543.7116662490385
448859.270707148759428.7292928512406
453938.35480530897560.645194691024411
462540.6255904193863-15.6255904193863
474969.473473692231-20.4734736922310
4814967.362324034154181.6376759658459
495852.46904559699965.53095440300043
504125.008983836012815.9910161639872
519042.343473657976247.6565263420238
5213652.543928153008283.4560718469918
539778.600295774966518.3997042250335
546340.700340253887522.2996597461125
5511454.243973681495859.7560263185042
567726.285770348710550.7142296512895
57635.1578750380283-29.1578750380283
584746.98949241606380.0105075839361630
595127.932446582024223.0675534179758
608564.772588784749120.2274112152509
614350.22984443087-7.22984443087001
623217.045631683695614.9543683163044
632537.0934458023407-12.0934458023407
647754.800831741501222.1991682584988
655426.219680233679327.7803197663207
6625183.745578679784167.254421320216
671520.4826378699126-5.48263786991263
684432.870082512034911.1299174879651
697335.984273922568337.0157260774317
708542.865858746386142.1341412536139
714918.327814541633230.6721854583668
723834.11091562910253.88908437089754
733529.630524536215.36947546378997
74919.8225793994921-10.8225793994921
753436.3849394123636-2.38493941236364
762023.7790710525694-3.77907105256945
772930.3914917537967-1.39149175379666
781118.2376273188775-7.23762731887754
795220.952786427304031.0472135726960
801328.8596601487559-15.8596601487559
812920.28567135361738.71432864638265
826643.800433658261122.1995663417389
833334.6154812276121-1.61548122761210
841512.15344557617132.84655442382866
851525.6143417076105-10.6143417076105
866841.831626939028926.1683730609711
8710039.47672730099560.523272699005
881325.5608724233494-12.5608724233494
894532.732631594778112.2673684052219
901426.1655012690213-12.1655012690213
913631.50924049905244.49075950094761
924033.07186388526426.92813611473582
936827.01873724381240.981262756188
942959.3771051950752-30.3771051950752
954317.933510165020825.0664898349792
963028.71004425470011.28995574529992
97927.6244685842901-18.6244685842901
982222.0928225095097-0.0928225095097268
991941.781430492525-22.7814304925250
100922.3523655020353-13.3523655020353
1013122.18854003169538.81145996830467
1021922.5222512170165-3.52225121701655
1035539.024474738162815.9755252618372
104827.063307566217-19.063307566217
1052823.79243810792574.20756189207431
1062918.031154662083610.9688453379164
1074824.513585787287323.4864142127127
1081634.4470283069271-18.4470283069271
1094749.1546987719381-2.15469877193812
1102023.6368625816104-3.63686258161039
1112220.80862491922221.19137508077781
1123323.79547363509739.20452636490266
1134442.5748974619011.42510253809897
1141326.8437406862499-13.8437406862499
115620.1736564140293-14.1736564140293
1163519.815375719954015.1846242800460
117820.4443700357396-12.4443700357396
1181732.1037281771008-15.1037281771008
1191125.313417746038-14.313417746038
1202117.14237351874153.85762648125847
1219275.419241586618116.5807584133819
1221218.9013807507567-6.90138075075669
12311228.281923832284883.7180761677152
1242534.0869364112974-9.08693641129744
1251726.8781304049759-9.87813040497588
1262330.1574130156002-7.1574130156002
127013.0100474775781-13.0100474775781
1281013.4600036492104-3.46000364921041
1292314.48871408540248.51128591459763
130013.0100474775781-13.0100474775781
131713.1342945797879-6.13429457978795
1322520.41647058307984.58352941692019
133113.0100474775781-12.0100474775781
1342013.20368502336486.79631497663524
135416.0381643895385-12.0381643895385
136414.4713813506895-10.4713813506895
1371013.6759309797160-3.67593097971596
138113.0246588636736-12.0246588636736
139417.2995409710747-13.2995409710747
140013.0100474775781-13.0100474775781
141814.6969627883826-6.69696278838259
142013.0100474775781-13.0100474775781
1431116.6456412247881-5.64564122478809
144413.2282932925694-9.22829329256938
1451516.0477918231461-1.04779182314615
146913.5503108027523-4.55031080275226
147013.0100474775781-13.0100474775781
148713.0702614370919-6.07026143709191
149214.4957912596663-12.4957912596663
150013.1497188849671-13.1497188849671
151714.6101819863223-7.61018198632231
1524621.233758341637224.7662416583628
153513.0100474775781-8.01004747757814
154714.4237004248824-7.42370042488242
155213.1498428331740-11.1498428331740
156013.0100474775781-13.0100474775781
157013.0100474775781-13.0100474775781
158213.6412275015339-11.6412275015339
159515.3764982148149-10.3764982148149
160013.0100474775781-13.0100474775781
161013.0100474775781-13.0100474775781
162013.0100474775781-13.0100474775781
163013.0100474775781-13.0100474775781
164715.1752343288602-8.1752343288602
1652415.47761272251078.52238727748926
166113.2258245276837-12.2258245276837
167013.0100474775781-13.0100474775781
1681814.70694956853103.29305043146897
1695535.813027557617219.1869724423828
170013.0100474775781-13.0100474775781
171013.0100474775781-13.0100474775781
172313.3063705671196-10.3063705671196
173013.0100474775781-13.0100474775781
174914.1330281608394-5.13302816083938
175013.0100474775781-13.0100474775781
176813.6662863550357-5.6662863550357
17711314.886747492121598.1132525078785
178013.3707016567765-13.3707016567765
179013.0100474775781-13.0100474775781
180013.0100474775781-13.0100474775781
1811920.831796783756-1.831796783756
1821118.1633918510094-7.16339185100941
1832523.73072778211111.26927221788888
1841616.8605335618528-0.860533561852824
185513.5009301232321-8.5009301232321
1861116.3306966904075-5.33069669040755
1872325.6140533267311-2.61405332673107
188613.9670843433985-7.96708434339846
189514.7178890212298-9.71788902122985
190013.0100474775781-13.0100474775781
191714.1313071714771-7.13130717147712
192013.0100474775781-13.0100474775781
193713.8796181609567-6.87961816095667
194013.0100474775781-13.0100474775781
195313.1863360128002-10.1863360128002
196013.0100474775781-13.0100474775781
1978949.927859946334139.0721400536659
198013.0100474775781-13.0100474775781
199013.0100474775781-13.0100474775781
2001918.52708417493260.472915825067370
201013.0100474775781-13.0100474775781
202013.0100474775781-13.0100474775781
203013.0100474775781-13.0100474775781
2041211.59353627989550.406463720104487
2051221.2691837331927-9.2691837331927
206513.2723859492258-8.27238594922576
207214.4325752214173-12.4325752214173
208013.0100474775781-13.0100474775781
2092616.38620234027379.6137976597263
210314.1200188721314-11.1200188721314
211013.0100474775781-13.0100474775781
212013.0100474775781-13.0100474775781
2131113.9106190738089-2.91061907380885
2141015.0491364589475-5.04913645894746
215515.7677636324481-10.7677636324481
216213.0100474775781-11.0100474775781
217613.1114516721476-7.11145167214762
218714.9413221345007-7.94132213450074
219213.0100474775781-11.0100474775781
2202821.12442260435746.87557739564265
221313.9902676951109-10.9902676951109
222013.0100474775781-13.0100474775781
223113.0192358528936-12.0192358528936
2242015.19162597159224.80837402840778
225113.1277396392431-12.1277396392431
2262214.47946766697857.52053233302155
227913.2866349784131-4.28663497841312
228013.0100474775781-13.0100474775781
229214.8445925836322-12.8445925836322
230013.0100474775781-13.0100474775781
231714.8945508970458-7.89455089704575
232916.6601767850875-7.66017678508751
233013.0100474775781-13.0100474775781
2341314.7492113305058-1.74921133050579
235013.0100474775781-13.0100474775781
236013.0265679728025-13.0265679728025
237013.0100474775781-13.0100474775781
238613.1926862158565-7.19268621585647
239013.0100474775781-13.0100474775781
240013.0100474775781-13.0100474775781
241013.0100474775781-13.0100474775781
242313.5497790151941-10.5497790151941
243013.0100474775781-13.0100474775781
244712.9374577114312-5.93745771143121
245226.9075744410675-24.9075744410675
246013.0100474775781-13.0100474775781
247013.0100474775781-13.0100474775781
2481513.74876093421791.25123906578206
249013.0100474775781-13.0100474775781
250013.0100474775781-13.0100474775781
251912.0191892886764-3.01918928867639
252013.0100474775781-13.0100474775781
253114.4096680668238-13.4096680668238
2543818.403765618756619.5962343812434
2555727.690862242415429.3091377575846
256013.0100474775781-13.0100474775781
257713.3897956123907-6.38979561239075
2582611.656440709279514.3435592907205
259013.0100474775781-13.0100474775781
260013.0100474775781-13.0100474775781
261013.0100474775781-13.0100474775781
262013.0100474775781-13.0100474775781
2631317.2194636890204-4.21946368902042
2641014.3977177229498-4.39771772294976
265013.0100474775781-13.0100474775781
266013.0100474775781-13.0100474775781
267013.0100474775781-13.0100474775781
268918.7722115071292-9.7722115071292
269013.0100474775781-13.0100474775781
2702615.916599778827110.0834002211729
271013.0100474775781-13.0100474775781
272013.0100474775781-13.0100474775781
273013.0100474775781-13.0100474775781
2741913.52747719535905.47252280464103
275013.0100474775781-13.0100474775781
2761214.8188494734415-2.81884947344151
2772315.44771854923597.55228145076413
278013.0100474775781-13.0100474775781
2792920.34211621493248.65788378506762
280815.3465419868155-7.34654198681545
281013.0100474775781-13.0100474775781
282013.0100474775781-13.0100474775781
2832613.315175077145412.6848249228546
284013.0100474775781-13.0100474775781
285917.0612840314137-8.06128403141368
286013.0100474775781-13.0100474775781
287515.9626129129930-10.9626129129930
288313.4880720531033-10.4880720531033
289013.0100474775781-13.0100474775781
2901312.40921047009510.590789529904885
291013.0100474775781-13.0100474775781
2921214.4390433656884-2.43904336568838
2931920.4938801952274-1.49388019522740
294013.0100474775781-13.0100474775781
2951012.7590212458526-2.75902124585263
296915.0366251417135-6.03662514171350
297013.0100474775781-13.0100474775781
298013.0100474775781-13.0100474775781
299013.0100474775781-13.0100474775781
300913.0100474775781-4.01004747757814
301413.1284291460748-9.12842914607477
302113.7183176080234-12.7183176080234
303113.0100474775781-12.0100474775781
304013.0100474775781-13.0100474775781
3051415.5467934622398-1.54679346223978
3061213.0230974787121-1.02309747871209
307013.0100474775781-13.0100474775781
3081914.73888376174494.26111623825514
3091713.45684240023423.54315759976579
310013.0100474775781-13.0100474775781
311013.0100474775781-13.0100474775781
3123220.999895352294411.0001046477056
313013.0100474775781-13.0100474775781
3141414.0936854180883-0.0936854180882971
315813.0384052859102-5.03840528591021
316415.2282030226009-11.2282030226009
317012.9993063471999-12.9993063471999
3182014.52300827325475.4769917267453
319513.0144743185683-8.01447431856832
320013.0100474775781-13.0100474775781
321013.0100474775781-13.0100474775781
322013.0100474775781-13.0100474775781
323013.0100474775781-13.0100474775781
324013.0100474775781-13.0100474775781
325013.0100474775781-13.0100474775781
326113.0613241746482-12.0613241746482
327013.0100474775781-13.0100474775781
328013.0100474775781-13.0100474775781
329013.0100474775781-13.0100474775781
330013.0100474775781-13.0100474775781
331013.0100474775781-13.0100474775781
332013.0100474775781-13.0100474775781
333013.0100474775781-13.0100474775781
334413.3660027445971-9.36600274459705
335113.0164847498953-12.0164847498953
336414.5145384544647-10.5145384544647
3372016.73332251571663.26667748428339
338013.0100474775781-13.0100474775781
339113.1437494298254-12.1437494298254
3401013.4425976743011-3.44259767430111
3411214.5712373274330-2.57123732743303
342013.0100474775781-13.0100474775781
343013.0100474775781-13.0100474775781
344013.0100474775781-13.0100474775781
3451315.8507430841099-2.85074308410994
346013.0100474775781-13.0100474775781
347313.0165398142265-10.0165398142265
348013.0100474775781-13.0100474775781
349013.0100474775781-13.0100474775781
3501020.7287923820954-10.7287923820954
351314.1150962152564-11.1150962152564
352713.3585298155630-6.35852981556302
3531015.7785168259332-5.77851682593315
354113.9217671518315-12.9217671518315
355013.0100474775781-13.0100474775781
356013.0100474775781-13.0100474775781
3571519.4594339236893-4.45943392368927
358013.0100474775781-13.0100474775781
359013.0100474775781-13.0100474775781
360013.0100474775781-13.0100474775781
361413.0156074673974-9.01560746739736
362013.0100474775781-13.0100474775781
363013.0100474775781-13.0100474775781
3642821.51240272205776.48759727794235
365913.6601504628714-4.66015046287137
366013.0100474775781-13.0100474775781
367013.0100474775781-13.0100474775781
368013.0100474775781-13.0100474775781
369013.0100474775781-13.0100474775781
370714.0579655729788-7.05796557297879
371013.0100474775781-13.0100474775781
372715.1077964015158-8.1077964015158
373717.8987889001276-10.8987889001276
374314.5678392075988-11.5678392075988
375013.0100474775781-13.0100474775781
376013.0100474775781-13.0100474775781
3771112.2412697137863-1.24126971378627
378715.9901150334219-8.99011503342187
3791023.6947906906716-13.6947906906716
380013.0100474775781-13.0100474775781
381013.0100474775781-13.0100474775781
3821818.2987016577717-0.298701657771714
3831410.97683261447813.02316738552192
384013.0100474775781-13.0100474775781
3851213.8432853547052-1.84328535470518
3862924.9838138327924.01618616720799
387313.6335018735263-10.6335018735263
388616.8646314589622-10.8646314589622
389313.2641716356204-10.2641716356204
390815.153123989641-7.153123989641
3911015.4687927553006-5.46879275530057
392614.4279949654862-8.42799496548617
393815.0517082518089-7.05170825180893
394618.8930788490520-12.8930788490520
395933.7120370914658-24.7120370914658
396814.6171572699288-6.61715726992884
3972633.5241407440228-7.52414074402279
39823935.1539148318381203.846085168162
399715.8545870240823-8.85458702408226
4004113.115224698264627.8847753017354
401319.9519839877929-16.9519839877929
402817.8212224514139-9.82122245141392
403615.2613816663721-9.26138166637205
4042121.4741740434027-0.474174043402675
405715.8746714367208-8.87467143672084
4061121.0228158948232-10.0228158948232
4071117.5718925947258-6.57189259472583
4081217.1620397895716-5.16203978957157
409914.2690575146117-5.26905751461167
410316.8812041491677-13.8812041491677
4115721.091874578049235.9081254219508
4122148.5633523272375-27.5633523272375
4131516.9971725150812-1.99717251508119
4143234.4867651701192-2.48676517011915
4151123.3569131145756-12.3569131145756
416218.2533029958991-16.2533029958991
4172324.918032186671-1.91803218667099
4182018.31058618350141.68941381649858
4192420.14674274834963.8532572516504
420115.9817659815525-14.9817659815525
421118.6213829872043-17.6213829872043
4227427.778588316627546.2214116833725
4236844.632145825942223.3678541740578
4242036.4593633237323-16.4593633237323
4252021.8664933108736-1.86649331087360
4268236.943555909331045.056444090669
4272124.9831414487479-3.9831414487479
428244204.14818256461839.8518174353822
4293260.181610753642-28.1816107536420
4308690.6729822987977-4.67298229879773
4316986.3636192402627-17.3636192402627


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.9982348099362940.003530380127411480.00176519006370574
80.9998105630984580.0003788738030850730.000189436901542537
90.9997402158942380.000519568211524220.00025978410576211
100.9999832896657073.34206685858732e-051.67103342929366e-05
110.9999848230241263.03539517479831e-051.51769758739915e-05
120.9999842439325883.1512134824225e-051.57560674121125e-05
130.999999999992061.58823318595012e-117.94116592975059e-12
140.9999999999991171.76613507449794e-128.83067537248972e-13
150.9999999999999921.60103337299119e-148.00516686495595e-15
160.9999999999999921.51206462736369e-147.56032313681844e-15
1712.44781976520175e-161.22390988260088e-16
1812.95926373530191e-181.47963186765095e-18
1914.41338005152886e-182.20669002576443e-18
2017.10471876745017e-233.55235938372508e-23
2115.7379780903922e-252.8689890451961e-25
2213.05128955936061e-291.52564477968030e-29
2315.69924480128118e-292.84962240064059e-29
2415.24880972446123e-372.62440486223062e-37
2511.51959938295583e-367.59799691477914e-37
2617.89591535622413e-403.94795767811207e-40
2711.37550994526974e-396.87754972634871e-40
2812.44589109392692e-401.22294554696346e-40
2913.07564387335214e-431.53782193667607e-43
3018.13018924412074e-434.06509462206037e-43
3118.13901001374471e-444.06950500687236e-44
3213.25205545513416e-441.62602772756708e-44
3313.21219574729773e-451.60609787364887e-45
3412.61257778044837e-451.30628889022419e-45
3512.00580293602613e-471.00290146801307e-47
3618.33735529483842e-494.16867764741921e-49
3717.47138975931544e-493.73569487965772e-49
3812.50466605909606e-481.25233302954803e-48
3916.9090731301995e-483.45453656509975e-48
4015.50564507832185e-502.75282253916092e-50
4111.77732580345025e-558.88662901725124e-56
4216.34381861739689e-573.17190930869844e-57
4311.39960123680557e-566.99800618402784e-57
4415.16156605693118e-562.58078302846559e-56
4513.92550565077711e-561.96275282538855e-56
4611.96723127067771e-569.83615635338854e-57
4718.46307710404787e-574.23153855202393e-57
4816.64308550777684e-583.32154275388842e-58
4911.53724213489926e-577.6862106744963e-58
5012.47398105743513e-571.23699052871756e-57
5114.06606580446589e-572.03303290223295e-57
5211.51595399475413e-587.57976997377063e-59
5313.94854990283233e-581.97427495141617e-58
5411.40094151391943e-577.00470756959713e-58
5514.21111809874073e-582.10555904937036e-58
5611.73884198920716e-588.6942099460358e-59
5712.18862159177530e-601.09431079588765e-60
5812.84818188795705e-601.42409094397853e-60
5915.83449794910527e-602.91724897455264e-60
6011.87616148160744e-599.3808074080372e-60
6111.47223247635142e-597.36116238175708e-60
6211.52291192419695e-597.61455962098476e-60
6311.14952514860330e-595.74762574301649e-60
6413.5913741579527e-591.79568707897635e-59
6515.35159304939798e-592.67579652469899e-59
6615.28766558614244e-712.64383279307122e-71
6716.68556136217954e-713.34278068108977e-71
6811.82503820973948e-709.12519104869742e-71
6912.05513197792759e-701.02756598896380e-70
7011.86757903982125e-709.33789519910624e-71
7117.42975633543278e-713.71487816771639e-71
7219.03134987939469e-714.51567493969734e-71
7312.42053544593104e-701.21026772296552e-70
7412.55888203674623e-701.27944101837311e-70
7516.31310113460474e-703.15655056730237e-70
7611.07985375736825e-695.39926878684127e-70
7712.78526497257905e-691.39263248628952e-69
7814.09692721440528e-692.04846360720264e-69
7913.33132969465356e-691.66566484732678e-69
8014.37515252781158e-692.18757626390579e-69
8118.08161766612265e-694.04080883306133e-69
8212.18496115725785e-681.09248057862892e-68
8316.6349841488424e-683.3174920744212e-68
8418.43848402427376e-684.21924201213688e-68
8511.39280387954948e-676.96401939774741e-68
8612.4494586098786e-671.2247293049393e-67
8711.49726708141129e-687.48633540705647e-69
8812.28547837342715e-681.14273918671358e-68
8916.95108304085186e-683.47554152042593e-68
9011.07363301020348e-675.36816505101739e-68
9113.05461847235042e-671.52730923617521e-67
9218.25202284143078e-674.12601142071539e-67
9312.69337657632568e-671.34668828816284e-67
9413.94451897950782e-681.97225948975391e-68
9512.0886299973186e-681.0443149986593e-68
9614.28368587787804e-682.14184293893902e-68
9713.36359678511384e-681.68179839255692e-68
9817.60838132316371e-683.80419066158186e-68
9912.03708718159636e-681.01854359079818e-68
10012.83150322450868e-681.41575161225434e-68
10117.45711145374817e-683.72855572687408e-68
10211.78934515108981e-678.94672575544907e-68
10316.23796970045352e-673.11898485022676e-67
10413.13824000615114e-671.56912000307557e-67
10517.57824855267344e-673.78912427633672e-67
10611.85824514873908e-669.29122574369542e-67
10712.38256005658335e-661.19128002829167e-66
10811.67898347280208e-668.39491736401039e-67
10913.63488305198468e-661.81744152599234e-66
11018.73822024617598e-664.36911012308799e-66
11112.09357110529229e-651.04678555264614e-65
11213.55620878934363e-651.77810439467182e-65
11311.01786406531744e-645.08932032658721e-65
11411.52891683364392e-647.64458416821961e-65
11512.32926529666929e-641.16463264833465e-64
11613.40610050454673e-641.70305025227337e-64
11715.20374210395379e-642.60187105197690e-64
11815.74208797248764e-642.87104398624382e-64
11918.51668145217964e-644.25834072608982e-64
12011.9977908918844e-639.988954459422e-64
12116.16834712861427e-633.08417356430714e-63
12211.38212570769498e-626.9106285384749e-63
12313.82153184267664e-661.91076592133832e-66
12414.8422842226676e-662.4211421113338e-66
12511.00664189100455e-655.03320945502275e-66
12612.37308211422996e-651.18654105711498e-65
12714.43386634719849e-652.21693317359924e-65
12811.07363725168442e-645.36818625842208e-65
12912.10979580421703e-641.05489790210851e-64
13014.07679945876484e-642.03839972938242e-64
13119.72122439984863e-644.86061219992431e-64
13212.15009590539141e-631.07504795269570e-63
13314.45078622272992e-632.22539311136496e-63
13419.86598541655797e-634.93299270827898e-63
13512.07668137788452e-621.03834068894226e-62
13614.63875564292600e-622.31937782146300e-62
13711.17759215870516e-615.88796079352582e-62
13812.53448680394992e-611.26724340197496e-61
13915.24677882397741e-612.62338941198871e-61
14011.10869396510078e-605.5434698255039e-61
14112.75860945268596e-601.37930472634298e-60
14215.91002855199899e-602.95501427599950e-60
14311.49661589336219e-597.48307946681094e-60
14413.61983685542457e-591.80991842771228e-59
14519.7203888612894e-594.8601944306447e-59
14612.45233988757918e-581.22616994378959e-58
14715.37717944648044e-582.68858972324022e-58
14811.38456472088595e-576.92282360442973e-58
14913.10750000833887e-571.55375000416944e-57
15016.86336652715282e-573.43168326357641e-57
15111.74347566610564e-568.7173783305282e-57
15211.41377956009012e-567.0688978004506e-57
15313.57594594768825e-561.78797297384412e-56
15419.1188552787193e-564.55942763935965e-56
15512.16597408410390e-551.08298704205195e-55
15614.89212923356338e-552.44606461678169e-55
15711.10838371987778e-545.54191859938892e-55
15812.61405924371962e-541.30702962185981e-54
15916.36832156852283e-543.18416078426142e-54
16011.45266995487522e-537.26334977437609e-54
16113.32094604924863e-531.66047302462432e-53
16217.60708723655404e-533.80354361827702e-53
16311.74561858035052e-528.7280929017526e-53
16414.47024887445388e-522.23512443722694e-52
16519.92349920292482e-524.96174960146241e-52
16612.32948614885633e-511.16474307442816e-51
16715.35661856968898e-512.67830928484449e-51
16811.00588299266067e-505.02941496330337e-51
16911.36818124568571e-506.84090622842853e-51
17013.15472863639478e-501.57736431819739e-50
17117.27959094119862e-503.63979547059931e-50
17211.78788112279391e-498.93940561396953e-50
17314.12769576132851e-492.06384788066425e-49
17411.08139271874425e-485.40696359372124e-49
17512.49491741084623e-481.24745870542312e-48
17616.46827727550871e-483.23413863775436e-48
17715.12078927308147e-552.56039463654073e-55
17811.25344828051824e-546.2672414025912e-55
17913.10332931679821e-541.55166465839910e-54
18017.68376504881011e-543.84188252440505e-54
18112.24116361137165e-531.12058180568582e-53
18216.03351755757645e-533.01675877878823e-53
18311.50299868034252e-527.51499340171258e-53
18414.36734022963868e-522.18367011481934e-52
18511.17351145610884e-515.86755728054419e-52
18613.21106714828239e-511.60553357414120e-51
18719.02743920279372e-514.51371960139686e-51
18812.42618321297856e-501.21309160648928e-50
18916.23285084765044e-503.11642542382522e-50
19011.52100781110506e-497.60503905552532e-50
19114.07669589891722e-492.03834794945861e-49
19219.9259906075307e-494.96299530376535e-49
19312.66662514011145e-481.33331257005573e-48
19416.47518518778447e-483.23759259389224e-48
19511.66611263497586e-478.33056317487932e-48
19614.03496192505144e-472.01748096252572e-47
19715.04448957725076e-472.52224478862538e-47
19811.22000129277103e-466.10000646385515e-47
19912.94667151425359e-461.47333575712679e-46
20018.21538730244708e-464.10769365122354e-46
20111.97497033817323e-459.87485169086615e-46
20214.74075520470578e-452.37037760235289e-45
20311.13621194141645e-445.68105970708226e-45
20412.48029538436169e-441.24014769218084e-44
20514.8438114178909e-442.42190570894545e-44
20611.25093674707174e-436.2546837353587e-44
20712.91448909413641e-431.45724454706821e-43
20816.92624010765067e-433.46312005382533e-43
20918.82593414455457e-434.41296707227728e-43
21012.17732030815514e-421.08866015407757e-42
21115.16502462231835e-422.58251231115918e-42
21211.22280488373966e-416.11402441869831e-42
21313.02278665166282e-411.51139332583141e-41
21417.82950643503619e-413.91475321751809e-41
21511.90029114852110e-409.50145574260552e-41
21614.63453989766342e-402.31726994883171e-40
21711.17434272822083e-395.87171364110413e-40
21812.95220135011220e-391.47610067505610e-39
21917.13825060981613e-393.56912530490807e-39
22011.31744256536668e-386.58721282683342e-39
22113.16465229706981e-381.58232614853491e-38
22217.32333557495351e-383.66166778747676e-38
22311.72447643139934e-378.6223821569967e-38
22413.67546790826598e-371.83773395413299e-37
22518.59225503573986e-374.29612751786993e-37
22611.67313497532791e-368.36567487663957e-37
22714.11062780547336e-362.05531390273668e-36
22819.3843284526578e-364.6921642263289e-36
22912.06550679725664e-351.03275339862832e-35
23014.69052553044052e-352.34526276522026e-35
23111.12998491650061e-345.64992458250306e-35
23212.72970057233053e-341.36485028616527e-34
23316.1435848734371e-343.07179243671855e-34
23411.46466618838024e-337.3233309419012e-34
23513.27733024704943e-331.63866512352472e-33
23617.30917072631797e-333.65458536315899e-33
23711.62611333621280e-328.13056668106402e-33
23813.85363431549492e-321.92681715774746e-32
23918.52109246212984e-324.26054623106492e-32
24011.87853826592921e-319.39269132964606e-32
24114.12886052531367e-312.06443026265684e-31
24219.3754177987665e-314.68770889938325e-31
24312.04762108367869e-301.02381054183934e-30
24414.75582540138898e-302.37791270069449e-30
24515.00774669738699e-302.50387334869349e-30
24611.08761213098283e-295.43806065491413e-30
24712.35456340373811e-291.17728170186905e-29
24815.18128271567583e-292.59064135783791e-29
24911.11483315792834e-285.57416578964169e-29
25012.39085333892216e-281.19542666946108e-28
25115.14004363860766e-282.57002181930383e-28
25211.09579253018530e-275.47896265092649e-28
25312.23930202080812e-271.11965101040406e-27
25413.26841135754302e-271.63420567877151e-27
25513.78242914274922e-271.89121457137461e-27
25618.01773971598919e-274.00886985799459e-27
25711.77416428944891e-268.87082144724455e-27
25811.72001338798137e-268.60006693990683e-27
25913.63653444195537e-261.81826722097769e-26
26017.6616595440602e-263.8308297720301e-26
26111.60851356934201e-258.04256784671006e-26
26213.36496776232945e-251.68248388116473e-25
26317.44883297854506e-253.72441648927253e-25
26411.61816182236191e-248.09080911180956e-25
26513.34761503590771e-241.67380751795385e-24
26616.90016938983736e-243.45008469491868e-24
26711.41704135676248e-237.08520678381239e-24
26812.73932281861096e-231.36966140930548e-23
26915.58326960165559e-232.79163480082780e-23
27011.03104039458292e-225.1552019729146e-23
27112.08903318208909e-221.04451659104454e-22
27214.21658944236068e-222.10829472118034e-22
27318.47835546005043e-224.23917773002522e-22
27411.56341658619619e-217.81708293098095e-22
27513.1246297321886e-211.5623148660943e-21
27616.54046869168723e-213.27023434584361e-21
27711.17946384046544e-205.8973192023272e-21
27812.3339907771185e-201.16699538855925e-20
27914.30859984060138e-202.15429992030069e-20
28018.7779714429378e-204.3889857214689e-20
28111.71800363959293e-198.59001819796467e-20
28213.34886009650247e-191.67443004825124e-19
28314.43077907789652e-192.21538953894826e-19
28418.61088233887128e-194.30544116943564e-19
28511.69353543132355e-188.46767715661775e-19
28613.26328398748072e-181.63164199374036e-18
28716.4075200346868e-183.2037600173434e-18
28811.25424462177876e-176.27122310889378e-18
28912.38595339486368e-171.19297669743184e-17
29014.33081312904271e-172.16540656452135e-17
29118.1804112525482e-174.0902056262741e-17
29211.60174507636877e-168.00872538184383e-17
29313.11818878797958e-161.55909439398979e-16
29415.81187246278491e-162.90593623139246e-16
29511.11226848913519e-155.56134244567594e-16
2960.9999999999999992.14014715673791e-151.07007357836896e-15
2970.9999999999999983.93817584398754e-151.96908792199377e-15
2980.9999999999999967.21442833708648e-153.60721416854324e-15
2990.9999999999999931.31568222746619e-146.57841113733097e-15
3000.9999999999999882.48325186147578e-141.24162593073789e-14
3010.9999999999999774.63985790316949e-142.31992895158474e-14
3020.9999999999999588.4204751314591e-144.21023756572955e-14
3030.9999999999999241.52430235839104e-137.62151179195522e-14
3040.9999999999998642.71659705278077e-131.35829852639038e-13
3050.9999999999997524.95226922362221e-132.47613461181111e-13
3060.9999999999995548.92429165196976e-134.46214582598488e-13
3070.9999999999992151.56969837914969e-127.84849189574847e-13
3080.999999999998652.69868137159103e-121.34934068579551e-12
3090.999999999997844.31914443846627e-122.15957221923313e-12
3100.9999999999962437.51471269430358e-123.75735634715179e-12
3110.9999999999934951.30108880040795e-116.50544400203976e-12
3120.9999999999885392.29217186314002e-111.14608593157001e-11
3130.9999999999803473.93049480892956e-111.96524740446478e-11
3140.9999999999657066.85887910661232e-113.42943955330616e-11
3150.9999999999397821.20435883256748e-106.02179416283741e-11
3160.9999999998982962.03408187133727e-101.01704093566863e-10
3170.9999999998285563.42887489698554e-101.71443744849277e-10
3180.9999999997272825.45436644196202e-102.72718322098101e-10
3190.9999999995316029.36795107623622e-104.68397553811811e-10
3200.9999999992232721.55345580950646e-097.76727904753229e-10
3210.999999998718692.56261817439845e-091.28130908719923e-09
3220.9999999978974154.20516967420905e-092.10258483710453e-09
3230.9999999965679666.86406765453378e-093.43203382726689e-09
3240.9999999944277361.11445272971520e-085.57226364857602e-09
3250.999999991001351.79972992666599e-088.99864963332997e-09
3260.9999999854360822.91278351928237e-081.45639175964119e-08
3270.999999976736074.65278607231484e-082.32639303615742e-08
3280.9999999630424397.39151226748087e-083.69575613374043e-08
3290.9999999416122361.16775528855100e-075.83877644275498e-08
3300.9999999082678531.83464294745858e-079.17321473729288e-08
3310.999999856687142.86625718443498e-071.43312859221749e-07
3320.9999997773640814.45271837701677e-072.22635918850839e-07
3330.9999996560983756.8780325081374e-073.4390162540687e-07
3340.9999994592953061.08140938877368e-065.40704694386840e-07
3350.9999991681419221.66371615505912e-068.3185807752956e-07
3360.9999987162055632.56758887481389e-061.28379443740694e-06
3370.9999980665276063.86694478870484e-061.93347239435242e-06
3380.9999970965082785.80698344345886e-062.90349172172943e-06
3390.9999956409196228.71816075529148e-064.35908037764574e-06
3400.999993355579821.32888403604296e-056.64442018021478e-06
3410.9999899116257632.01767484740991e-051.00883742370496e-05
3420.9999852064967072.95870065857005e-051.47935032928503e-05
3430.999978439549734.31209005393889e-052.15604502696945e-05
3440.9999687706940126.24586119761482e-053.12293059880741e-05
3450.999953841895559.23162089015729e-054.61581044507865e-05
3460.9999339605122020.0001320789755951236.60394877975615e-05
3470.9999043658498060.0001912683003871029.56341501935512e-05
3480.9998649142383150.0002701715233693410.000135085761684671
3490.9998104067979780.0003791864040445010.000189593202022250
3500.9997326331992470.0005347336015054370.000267366800752719
3510.999624310190040.0007513796199216890.000375689809960844
3520.9994699850905340.001060029818932910.000530014909466457
3530.9992570932721680.001485813455664530.000742906727832266
3540.9989944046179530.002011190764094930.00100559538204747
3550.9986437122936930.002712575412613680.00135628770630684
3560.9981830017569220.003633996486156020.00181699824307801
3570.9975754491759320.004849101648136930.00242455082406846
3580.9967958837935740.006408232412852950.00320411620642648
3590.995794605445410.008410789109180640.00420539455459032
3600.9945183733029450.01096325339410920.0054816266970546
3610.9927849199738110.01443016005237730.00721508002618863
3620.9907271619475240.01854567610495300.00927283805247652
3630.9881658189704710.02366836205905780.0118341810295289
3640.9849628444873170.03007431102536620.0150371555126831
3650.980626166257150.03874766748569970.0193738337428499
3660.9757660507981850.04846789840362980.0242339492018149
3670.9699037765027060.06019244699458870.0300962234972944
3680.962891911057390.07421617788521960.0371080889426098
3690.9545760205840940.09084795883181190.0454239794159059
3700.9438182167023320.1123635665953360.056181783297668
3710.9322369551863110.1355260896273780.067763044813689
3720.917602636150390.1647947276992210.0823973638496103
3730.9043553996439580.1912892007120840.0956446003560421
3740.8872372605928280.2255254788143440.112762739407172
3750.8678234148448870.2643531703102260.132176585155113
3760.8461840708871910.3076318582256170.153815929112808
3770.818906704292380.3621865914152390.181093295707619
3780.7900137122939540.4199725754120920.209986287706046
3790.7615561174447860.4768877651104280.238443882555214
3800.7303780379274230.5392439241451550.269621962072577
3810.6972588274749280.6054823450501440.302741172525072
3820.6577735481838410.6844529036323180.342226451816159
3830.620890687680490.7582186246390210.379109312319511
3840.5824354006627380.8351291986745240.417564599337262
3850.5369887315460940.9260225369078110.463011268453906
3860.4906021087642040.9812042175284080.509397891235796
3870.4478182355582190.8956364711164370.552181764441781
3880.4052253221247690.8104506442495390.59477467787523
3890.3637517630523930.7275035261047860.636248236947607
3900.3212151471042130.6424302942084260.678784852895787
3910.2808053409735110.5616106819470230.719194659026489
3920.2433549099681300.4867098199362590.75664509003187
3930.2080829193814210.4161658387628420.791917080618579
3940.1831175793144940.3662351586289880.816882420685506
3950.1847396964242230.3694793928484470.815260303575777
3960.1542966132451820.3085932264903630.845703386754818
3970.1263187992731050.2526375985462100.873681200726895
3980.9998226898804780.0003546202390447610.000177310119522381
3990.9996823092828180.0006353814343632320.000317690717181616
4000.9997480481640020.0005039036719968790.000251951835998439
4010.9996025993187630.0007948013624741380.000397400681237069
4020.9992983302358920.001403339528216180.000701669764108089
4030.9987702116267770.002459576746445360.00122978837322268
4040.9978371775657140.004325644868572240.00216282243428612
4050.996336082270180.007327835459638690.00366391772981935
4060.9940501798408550.01189964031829070.00594982015914535
4070.9902170329250660.01956593414986750.00978296707493373
4080.9841477631873540.03170447362529190.0158522368126459
4090.9748771338201140.05024573235977280.0251228661798864
4100.9636438904155650.07271221916887030.0363561095844351
4110.9738500226058760.05229995478824730.0261499773941236
4120.9745167594415280.05096648111694340.0254832405584717
4130.958527652364530.08294469527094230.0414723476354712
4140.9351712628050590.1296574743898820.0648287371949412
4150.9050945542239560.1898108915520880.094905445776044
4160.8721892380566710.2556215238866570.127810761943329
4170.8136384236590360.3727231526819280.186361576340964
4180.7373297292160390.5253405415679230.262670270783961
4190.6444105278202470.7111789443595060.355589472179753
4200.5614007777356270.8771984445287460.438599222264373
4210.4995466824356570.9990933648713140.500453317564343
4220.5616003605915150.876799278816970.438399639408485
4230.6038776714399980.7922446571200030.396122328560001
4240.4811527178230650.962305435646130.518847282176935


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level3610.863636363636364NOK
5% type I error level3710.88755980861244NOK
10% type I error level3790.906698564593301NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/10w54u1292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/10w54u1292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/1plp11292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/1plp11292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/2plp11292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/2plp11292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/3plp11292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/3plp11292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/4hd6m1292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/4hd6m1292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/5hd6m1292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/5hd6m1292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/6sm571292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/6sm571292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/7lv5a1292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/7lv5a1292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/8lv5a1292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/8lv5a1292936115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/9lv5a1292936115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936109xtnhczit9bas1w7/9lv5a1292936115.ps (open in new window)


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