Home » date » 2010 » Nov » 23 »

Personal Standards (Yt)

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 23 Nov 2010 14:52:31 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965.htm/, Retrieved Tue, 23 Nov 2010 15:52:44 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965.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 «
24 24 14 11 12 25 25 11 7 8 30 17 6 17 8 19 18 12 10 8 22 18 8 12 9 22 16 10 12 7 25 20 10 11 4 23 16 11 11 11 17 18 16 12 7 21 17 11 13 7 19 23 13 14 12 19 30 12 16 10 15 23 8 11 10 16 18 12 10 8 23 15 11 11 8 27 12 4 15 4 22 21 9 9 9 14 15 8 11 8 22 20 8 17 7 23 31 14 17 11 23 27 15 11 9 21 34 16 18 11 19 21 9 14 13 18 31 14 10 8 20 19 11 11 8 23 16 8 15 9 25 20 9 15 6 19 21 9 13 9 24 22 9 16 9 22 17 9 13 6 25 24 10 9 6 26 25 16 18 16 29 26 11 18 5 32 25 8 12 7 25 17 9 17 9 29 32 16 9 6 28 33 11 9 6 17 13 16 12 5 28 32 12 18 12 29 25 12 12 7 26 29 14 18 10 25 22 9 14 9 14 18 10 15 8 25 17 9 16 5 26 20 10 10 8 20 15 12 11 8 18 20 14 14 10 32 33 14 9 6 25 29 10 12 8 25 23 14 17 7 23 26 16 5 4 21 18 9 12 8 20 20 10 12 8 15 11 6 6 4 30 28 8 24 20 24 26 13 12 8 26 22 10 12 8 24 17 8 14 6 22 12 7 7 4 14 14 15 13 8 24 17 9 12 9 24 21 10 13 6 24 19 12 14 7 24 18 13 8 9 19 10 10 11 5 31 29 11 9 5 22 31 8 11 8 27 19 9 13 8 19 9 13 10 6 25 20 11 11 8 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 time11 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
PS[t] = + 16.7814871438007 + 0.361040957079362CM[t] -0.331410467693096D[t] + 0.152692331465191PE[t] -0.0951446605742276PC[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16.78148714380071.64963510.172800
CM0.3610409570793620.0604145.976100
D-0.3314104676930960.11701-2.83230.0052390.00262
PE0.1526923314651910.1104311.38270.1687620.084381
PC-0.09514466057422760.138765-0.68570.4939640.246982


Multiple Linear Regression - Regression Statistics
Multiple R0.487604702873295
R-squared0.237758346264154
Adjusted R-squared0.217959861751535
F-TEST (value)12.0089164457315
F-TEST (DF numerator)4
F-TEST (DF denominator)154
p-value1.61012581045838e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.72918444517006
Sum Squared Residuals2141.64976041915


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12421.34460328522832.65539671477173
22522.46968496182322.5303150381768
33022.76533295830577.23466704169429
41920.0690647889702-1.06906478897016
52221.60494666209870.395053337901304
62220.41033313370221.58966686629777
72521.98723861227723.01276138772283
82319.54565169224703.45434830775297
91719.1439522417024-2.14395224170238
102120.59265595455370.407344045446312
111921.7730497902377-2.77304979023772
121925.1274209415652-6.12742094156519
131523.1623144554561-8.16231445545609
141620.0690647889702-4.06906478897015
152319.47004471689043.52995528310965
162721.69814308766165.30185691233838
172221.89858207124810.101417928751890
181420.4642761199696-6.46427611996964
192223.2807795547318-1.28077955473183
202324.8831886341493-1.88318863414932
212322.38174967049610.618250329503914
222125.4561829014664-4.45618290146640
231922.2814650862772-3.28146508627715
241824.0997762956157-6.09977629561567
252020.9142085452078-0.914208545207802
262321.34094174233551.65905825766446
272522.73912908468262.26087091531742
281922.5093513971089-3.50935139710887
292423.32846934858380.671530651416192
302221.35062155051410.649378449485892
312522.93572845651582.06427154348422
322621.7310909848814.26890901511899
332924.79577554674244.20422445325765
343224.32252268280277.67747731719732
352521.67595689465223.32404310534781
362923.83559330699215.1644066930079
372825.85368660253692.14631339746306
381717.5290367774540-0.529036777454021
392825.96459819750582.03540180249416
402922.99688081203036.0031191879697
412624.4089437120301.59105628796999
422523.02308468565341.97691531434657
431421.4953473816823-7.4953473816823
442521.90384320548393.09615679451609
452621.45396763851514.54603236148493
462019.13863424919730.861365750802742
471820.548805772455-2.54880577245499
483224.85945519945777.14054480054234
492525.0087209151597-0.00872091515971016
502522.37543961981132.62456038018867
512321.24886755980361.75113244019638
522121.3686808549798-0.368680854979824
532021.7593523014455-1.75935230144545
541519.3000502120093-4.30005021200934
553026.00107294415813.9989270558419
562422.93136664084231.06863335915767
572622.48143421560423.51856578439582
582421.83472434967242.16527565032760
592219.48237303286082.5176269671392
601418.088746551969-4.08874655196899
612420.91249523732623.08750476267377
622422.46337491113851.53662508886154
632421.13601973248452.86398026751549
642419.33712499777244.66287500222755
651918.28168438090930.718315619090677
663124.50466743479376.49533256520628
672226.2409314332394-4.24093143323944
682721.88241414352445.11758585647562
691916.67857502871132.32142497128875
702521.27524950228723.72475049771284
712025.4056455540408-5.40564555404077
722121.3667894782378-0.366789478237841
732726.06410467375350.935895326246486
742323.9823885837627-0.98238858376269
752524.90537482715870.094625172841252
762022.8424751726835-2.84247517268354
772118.24940538373122.75059461626882
782221.66781232549480.332187674505225
792320.43010574604952.56989425395049
802524.65925114300090.340748856999103
812521.47923631222793.52076368777211
821722.2102199265939-5.21021992659392
831921.6102646546038-2.61026465460381
842522.84265324154402.15734675845605
851921.1914979577731-2.19149795777307
862022.4948967772667-2.49489677726671
872622.25313490878233.74686509121769
882318.17042865088074.82957134911932
892724.02476038510962.97523961489045
901721.4934560049403-4.49345600494032
911722.9053408360796-5.90534083607962
921919.385515064405-0.385515064405005
931719.811134992762-2.81113499276202
942223.1298005311482-1.12980053114820
952121.3867401594455-0.38674015944554
963226.72445517020825.27554482979176
972123.952580025516-2.95258002551601
982124.5500648585747-3.55006485857466
991821.8248664726334-3.82486647263341
1001822.6341265470694-4.63412654706937
1012323.1102628459307-0.110262845930655
1021921.1386682402764-2.13866824027639
1032022.9693197682464-2.96931976824643
1042121.9678789959200-0.967878995920038
1052021.1738516492975-1.17385164929751
1061722.3716568663274-5.37165686632737
1071822.5729741915549-4.57297419155485
1081923.4973296077727-4.49732960777273
1092222.4115582287428-0.411558228742766
1101519.5408768805834-4.54087688058343
1111419.9900311978503-5.99003119785034
1121825.5406915770304-7.5406915770304
1132422.03970321779281.96029678220725
1143525.189508496999.81049150300998
1152918.217340336761410.7826596632386
1162121.4161357217021-0.41613572170207
1172523.48741487246441.51258512753557
1182020.0770312892672-0.0770312892671516
1192222.6018475498912-0.601847549891221
1201321.1977511501885-8.1977511501885
1212624.29442743243761.70557256756243
1221719.3568407518504-2.35684075185041
1232521.17574302603953.82425697396051
1242019.89110378379210.108896216207855
1251917.56858200214861.43141799785141
1262122.1914034910783-1.19140349107831
1272220.69216243080141.30783756919864
1282421.27524950228722.72475049771284
1292121.2475103896429-0.247510389642882
1302624.97455054123961.02544945876042
1312422.01728209765361.98271790234641
1321620.6465989408211-4.6465989408211
1332321.14038154815801.85961845184205
1341820.9005110564155-2.90051105641553
1351622.1203932585248-6.12039325852481
1362623.96261597141542.03738402858459
1371920.2333283053559-1.23332830535589
1382120.43199712279150.568002877208502
1392121.2439057050193-0.243905705019331
1402221.01147950965370.988520490346251
1412323.4908983464969-0.490898346496886
1422924.97472861014.0252713899
1432122.5684463096821-1.56844630968207
1442119.98531324445611.01468675554394
1452321.60418953104881.39581046895120
1462723.05785509868443.94214490131560
1472526.7305302937633-1.73053029376326
1482122.0332150982476-1.03321509824759
1491020.5514542802469-10.5514542802469
1502023.2593504927723-3.25935049277230
1512622.50574671248533.49425328751468
1522423.26998647778250.730013522217467
1532929.3960547049418-0.396054704941817
1541923.3085186673761-4.30851866737611
1552422.17375718260271.82624281739725
1561921.3506215505141-2.35062155051411
1572423.16934575584280.830654244157229
1582221.7549904857720.245009514227996
1591724.0500290588224-7.05002905882237


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2754412611970730.5508825223941460.724558738802927
90.1678850470169580.3357700940339150.832114952983042
100.09178645566371220.1835729113274240.908213544336288
110.1987154803475440.3974309606950880.801284519652456
120.2628167872889330.5256335745778650.737183212711067
130.7782173561052580.4435652877894850.221782643894742
140.8037838038949030.3924323922101940.196216196105097
150.7478400137733070.5043199724533850.252159986226693
160.6872422534817190.6255154930365630.312757746518281
170.6060763138356120.7878473723287760.393923686164388
180.8417922453648490.3164155092703030.158207754635151
190.8014489903082780.3971020193834440.198551009691722
200.7583049033845610.4833901932308790.241695096615439
210.7261498346951060.5477003306097890.273850165304894
220.6784936221330820.6430127557338360.321506377866918
230.6281535287869320.7436929424261360.371846471213068
240.6265932096379930.7468135807240130.373406790362007
250.5633272495956460.8733455008087080.436672750404354
260.5001888522652840.9996222954694330.499811147734716
270.447564412790410.895128825580820.55243558720959
280.4238526183690060.8477052367380130.576147381630994
290.36770596305960.73541192611920.6322940369404
300.3120352291454530.6240704582909060.687964770854547
310.2944473222095460.5888946444190910.705552677790454
320.3883460723174240.7766921446348480.611653927682576
330.3982704093436160.7965408186872320.601729590656384
340.6460050596789990.7079898806420020.353994940321001
350.6112600627614750.777479874477050.388739937238525
360.6988485992597370.6023028014805260.301151400740263
370.6699967514137460.6600064971725080.330003248586254
380.6355862213148490.7288275573703030.364413778685151
390.6050840406247640.7898319187504710.394915959375236
400.6643752782665190.6712494434669620.335624721733481
410.619661932913910.760676134172180.38033806708609
420.5770462425201970.8459075149596060.422953757479803
430.7505464895294580.4989070209410830.249453510470542
440.7265485572003730.5469028855992550.273451442799627
450.7402811826253020.5194376347493950.259718817374698
460.698387913650950.60322417269810.30161208634905
470.669589995881270.6608200082374600.330410004118730
480.7460552141686080.5078895716627840.253944785831392
490.7076532421289530.5846935157420950.292346757871047
500.6798015396485940.6403969207028120.320198460351406
510.638411864347820.7231762713043590.361588135652180
520.5926858233459090.8146283533081830.407314176654091
530.5596023297889920.8807953404220150.440397670211007
540.5981748355629520.8036503288740960.401825164437048
550.6252249682946070.7495500634107870.374775031705393
560.5805027543487680.8389944913024640.419497245651232
570.5690368818848010.8619262362303980.430963118115199
580.5344696030056070.9310607939887850.465530396994393
590.5067757700254680.9864484599490630.493224229974532
600.5059431773861980.9881136452276040.494056822613802
610.4916514748479360.9833029496958720.508348525152064
620.4523953906624830.9047907813249660.547604609337517
630.4316161271442290.8632322542884580.568383872855771
640.4737948689652360.9475897379304710.526205131034764
650.4296843509942590.8593687019885180.570315649005741
660.5079921625753370.9840156748493250.492007837424663
670.5533789949083330.8932420101833350.446621005091668
680.5922193816303870.8155612367392260.407780618369613
690.5669951572397730.8660096855204540.433004842760227
700.5669447660109460.8661104679781080.433055233989054
710.6379097697764440.7241804604471130.362090230223556
720.5949545294263990.8100909411472020.405045470573601
730.5539537692909830.8920924614180330.446046230709017
740.513213745158880.973572509682240.48678625484112
750.4768863263255760.9537726526511520.523113673674424
760.4607732695113190.9215465390226380.539226730488681
770.4468524688599230.8937049377198470.553147531140077
780.4030721977610310.8061443955220630.596927802238969
790.3810781252257180.7621562504514360.618921874774282
800.3437444825671910.6874889651343830.656255517432809
810.3407382927454760.6814765854909520.659261707254524
820.3843105570236280.7686211140472550.615689442976372
830.3636675877263750.7273351754527500.636332412273625
840.3375813180892450.675162636178490.662418681910755
850.3125965300381290.6251930600762580.687403469961871
860.2941429150706600.5882858301413210.70585708492934
870.3060252897185950.612050579437190.693974710281405
880.3448846597215880.6897693194431750.655115340278412
890.326866423271440.653732846542880.67313357672856
900.3428073015399070.6856146030798140.657192698460093
910.404620726117970.809241452235940.59537927388203
920.3612803121929690.7225606243859380.638719687807031
930.3385149047118950.677029809423790.661485095288105
940.3027043964718440.6054087929436880.697295603528156
950.2630397197022530.5260794394045070.736960280297747
960.3095137578117170.6190275156234340.690486242188283
970.2918866416572210.5837732833144420.708113358342779
980.2856909536681720.5713819073363430.714309046331828
990.2809120094822820.5618240189645630.719087990517718
1000.2952709794597250.5905419589194490.704729020540275
1010.2555362467762350.511072493552470.744463753223765
1020.2266818196853790.4533636393707580.773318180314621
1030.2076222648910150.4152445297820290.792377735108985
1040.1757424599689530.3514849199379060.824257540031047
1050.1486454991580140.2972909983160280.851354500841986
1060.1698723668565230.3397447337130460.830127633143477
1070.1805770684631330.3611541369262670.819422931536867
1080.1949786495970260.3899572991940520.805021350402974
1090.162687542608810.325375085217620.83731245739119
1100.1656197896384990.3312395792769980.834380210361501
1110.2051066923460300.4102133846920590.79489330765397
1120.3469946945599250.693989389119850.653005305440075
1130.3077416619354810.6154833238709620.692258338064519
1140.5937222136621340.8125555726757320.406277786337866
1150.9127735173226040.1744529653547930.0872264826773963
1160.8904166990187950.2191666019624100.109583300981205
1170.885354929816860.2292901403662790.114645070183140
1180.8569571123491210.2860857753017580.143042887650879
1190.8240604337270610.3518791325458770.175939566272939
1200.9373567640638860.1252864718722270.0626432359361137
1210.9195925215550850.1608149568898300.0804074784449148
1220.9020246459417130.1959507081165730.0979753540582866
1230.908418987322610.1831620253547800.0915810126773901
1240.8841945791955290.2316108416089430.115805420804471
1250.8538813135818130.2922373728363740.146118686418187
1260.8173239419572470.3653521160855060.182676058042753
1270.7923920942847880.4152158114304240.207607905715212
1280.787914754946560.4241704901068810.212085245053440
1290.744653963678050.51069207264390.25534603632195
1300.6909937316650140.6180125366699720.309006268334986
1310.6777359483726970.6445281032546050.322264051627303
1320.6619571664911050.676085667017790.338042833508895
1330.6421109326781190.7157781346437610.357889067321881
1340.5875625798771230.8248748402457550.412437420122877
1350.6530211744981560.6939576510036880.346978825501844
1360.6161416949918030.7677166100163930.383858305008197
1370.5504156703461040.8991686593077920.449584329653896
1380.4846473405024010.9692946810048020.515352659497599
1390.4231122143952950.8462244287905890.576887785604705
1400.3704251926296260.7408503852592530.629574807370374
1410.3013785508102840.6027571016205690.698621449189716
1420.3299509228869580.6599018457739170.670049077113042
1430.2762896567480820.5525793134961650.723710343251918
1440.2073955475906530.4147910951813050.792604452409347
1450.1832847246320270.3665694492640540.816715275367973
1460.1606976164982460.3213952329964920.839302383501754
1470.10768201922510.21536403845020.8923179807749
1480.06702926623690720.1340585324738140.932970733763093
1490.3242593938372840.6485187876745670.675740606162716
1500.2597457727350670.5194915454701350.740254227264933
1510.3333318291019670.6666636582039340.666668170898033


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


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


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/2pkxf1290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/2pkxf1290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/3ibw01290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/3ibw01290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/4ibw01290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/4ibw01290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/5ibw01290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/5ibw01290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/6s2v31290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/6s2v31290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/73bdo1290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/73bdo1290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/83bdo1290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/83bdo1290523939.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/93bdo1290523939.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905239438aje5a7e91dr965/93bdo1290523939.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