Home » date » 2010 » Nov » 30 »

Verbetering

*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, 30 Nov 2010 14:39:39 +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/30/t1291127946x2pbt8k2ssqot2f.htm/, Retrieved Tue, 30 Nov 2010 15:39:17 +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/30/t1291127946x2pbt8k2ssqot2f.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 «
26 1 24 14 11 12 24 23 1 25 11 7 8 25 25 1 17 6 17 8 30 23 1 18 12 10 8 19 19 1 18 8 12 9 22 29 1 16 10 12 7 22 25 1 20 10 11 4 25 21 1 16 11 11 11 23 22 1 18 16 12 7 17 25 2 17 11 13 7 21 24 2 23 13 14 12 19 18 2 30 12 16 10 19 22 2 23 8 11 10 15 15 2 18 12 10 8 16 22 2 15 11 11 8 23 28 2 12 4 15 4 27 20 2 21 9 9 9 22 12 2 15 8 11 8 14 24 2 20 8 17 7 22 20 3 31 14 17 11 23 21 3 27 15 11 9 23 20 3 34 16 18 11 21 21 3 21 9 14 13 19 23 3 31 14 10 8 18 28 3 19 11 11 8 20 24 3 16 8 15 9 23 24 3 20 9 15 6 25 24 3 21 9 13 9 19 23 3 22 9 16 9 24 23 3 17 9 13 6 22 29 3 24 10 9 6 25 24 3 25 16 18 16 26 18 3 26 11 18 5 29 25 3 25 8 12 7 32 21 3 17 9 17 9 25 26 3 32 16 9 6 29 22 3 33 11 9 6 28 22 3 13 16 12 5 17 22 3 32 12 18 12 28 23 3 25 12 12 7 29 30 3 29 14 18 10 26 23 3 22 9 14 9 25 17 3 18 10 15 8 14 23 3 17 9 16 5 25 23 3 20 10 10 8 26 25 3 15 12 11 8 20 24 3 20 14 14 10 18 24 3 33 14 9 6 32 23 3 29 10 12 8 25 21 3 23 14 17 7 25 24 3 26 16 5 4 23 24 3 18 9 12 8 2 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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Organisation[t] = + 16.7236576391504 + 0.366018263287189Week[t] -0.0633161091808469Concern[t] + 0.218004431283425Doubts[t] -0.137045430156790Pexpect[t] -0.246992813773941Pcriticism[t] + 0.398548887973243Pstandards[t] -0.0204592057986341t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16.72365763915042.4504516.824700
Week0.3660182632871890.6620120.55290.5811580.290579
Concern-0.06331610918084690.062625-1.0110.3136160.156808
Doubts0.2180044312834250.1110771.96260.0515250.025762
Pexpect-0.1370454301567900.103252-1.32730.1864170.093208
Pcriticism-0.2469928137739410.129078-1.91350.0575750.028787
Pstandards0.3985488879732430.0754965.279100
t-0.02045920579863410.011777-1.73720.0843930.042197


Multiple Linear Regression - Regression Statistics
Multiple R0.50375119888588
R-squared0.253765270378961
Adjusted R-squared0.219171607416397
F-TEST (value)7.33559989451166
F-TEST (DF numerator)7
F-TEST (DF denominator)151
p-value1.42350557119642e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.4506244838084
Sum Squared Residuals1797.92820856696


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12623.69545192861242.30454807138757
22324.8923651834789-1.89236518347886
32524.91070283300820.0892971669918024
42322.71023434912110.289765650878871
51922.492320408021-3.492320408021
62923.52848791069885.47151208930121
72525.3284348035751-0.328434803575101
82123.2531969934192-2.25319699341922
92222.6557602227755-0.655760222775531
102523.4317633547641.56823664523601
112421.29830908147412.70169091852586
121820.8365274473605-2.83652744736046
132219.47829487958502.52170512041497
141521.6760138905022-6.67601389050225
152224.2802953666186-2.28029536661864
162824.95773855574013.04226144425986
172023.0520205959358-3.05202059593584
181219.9779644636133-7.97796446361327
192422.25403604852951.74596395147045
202022.6217221256068-2.62172212560682
212124.3887899963036-3.38878999630362
222021.8927210429306-1.89272104293058
232120.42643855463180.573561445368221
242322.24743731496540.752562685034579
252822.99281047127645.00718952872363
262422.90875842868861.09124157131137
272424.3911154347183-0.391115434718338
282421.44915921089122.55084078910884
292322.94699204530750.0530079546924787
302323.5981303412588-0.598130341258829
312925.09629118702463.90370881297542
322423.01575433856840.984245661431628
331825.7545244826048-7.75452448260484
342526.6673017094494-1.66730170944937
352123.4023208142364-2.4023208142364
362627.3896884241782-1.38968842417815
372225.8173420648083-3.81734206480831
382223.6050459546416-1.60504595464164
392223.3423784396206-1.34237843962055
402326.2209175358715-3.22091753587153
413023.62430506973416.37569493026593
422323.3536621182121-0.353662118212101
431719.5303813963318-2.53038139633176
442324.3432046473012-1.34320464730125
452324.8306445728357-1.83064457283566
462523.03443601751191.96556398248813
472421.43118543441112.56881456558889
482427.8404996467666-3.84049964676658
492323.5063230187267-0.50632301872668
502124.2995438561368-3.29954385613682
512426.1135710126193-2.11357101261931
522422.32922261914371.6707773808563
532822.00158673829365.99841326170645
541621.4964541861591-5.49645418615913
552020.3951605432463-0.395160543246316
562923.80852131155585.19147868844419
572724.18441102457682.81558897542322
582223.4673204934033-1.46732049340335
592824.20164326492443.79835673507555
601620.7999523512091-4.79995235120908
612523.15705972628261.84294027371737
622423.70527352620910.294726473790939
632823.86341715740824.13658284259176
642424.4525654454667-0.452565445466737
652322.86871234402380.131287655976217
663026.91992901106503.08007098893503
672421.51681499965982.48318500034021
682124.1928071148674-3.19280711486737
692523.39425754024321.60574245975678
702524.00157454102320.998425458976798
712220.93777611167851.06222388832154
722322.51485149823450.485148501765518
732622.87295021079743.12704978920264
742321.72451623196891.27548376803110
752523.02917690129881.97082309870118
762121.3410766773824-0.341076677382429
772523.58128537389031.41871462610970
782422.13881344857271.86118655142733
792923.43870988351015.56129011648993
802223.5103483768244-1.51034837682439
812723.47251175568453.5274882443155
822619.60428302959826.39571697040178
832221.22490899959050.775091000409499
842421.88191958766022.11808041233978
852723.28559108759143.71440891240865
862421.54595062547522.45404937452482
872424.8779930945644-0.877993094564404
882924.44691402405664.55308597594342
892222.3202571944919-0.320257194491883
902120.72527664606630.274723353933659
912420.61253872704803.38746127295204
922421.75645337102722.24354662897284
932321.97697370551471.02302629448534
942022.2820924584990-2.28209245849905
952721.39523872651775.60476127348232
962623.35258848042222.64741151957780
972521.95641454703783.0435854529622
982120.11941410380160.8805858961984
992120.72168825056850.278311749431548
1001920.3452469045800-1.34524690457997
1012121.4861395416052-0.486139541605241
1022121.1231079090763-0.123107909076271
1031619.6733366417202-3.6733366417202
1042220.50823583160021.49176416839976
1052921.62885550025187.37114449974816
1061521.5210814810415-6.52108148104148
1071720.4874688148478-3.48746881484784
1081519.7414998689711-4.74149986897114
1092121.422309700241-0.422309700240991
1102120.76463751141650.235362488583492
1111919.0438744528935-0.0438744528935296
1122417.88472337177836.1152766282217
1132021.9050810829565-1.90508108295652
1141724.5639819054456-7.56398190544563
1152324.3177369889856-1.31773698898557
1162421.89841250956162.10158749043839
1171421.5570315035976-7.55703150359757
1181922.3508313015137-3.35083130151374
1192421.71170326980252.28829673019747
1201319.9611534042659-6.96115340426591
1212224.6890301896486-2.6890301896486
1221620.6051670376977-4.60516703769771
1231922.6585212406792-3.65852124067917
1242522.11183128170372.88816871829627
1252523.53452825252201.46547174747796
1262320.80540914675322.19459085324683
1272422.79335534717501.20664465282497
1282622.78240998001643.21759001998363
1292620.81680279313205.18319720686803
1302523.36949321886491.63050678113515
1311821.5793308426234-3.57933084262337
1322119.19239219703561.80760780296436
1332622.77648296934753.22351703065253
1342321.12967467566761.87032532433243
1352319.03243846501893.96756153498107
1362221.74455181809660.255448181903442
1372021.5251139662821-1.52511396628209
1381321.2057242336679-8.2057242336679
1392420.51360884207323.4863911579268
1401520.6771688796649-5.67716887966494
1411422.1658416652423-8.16584166524233
1422223.0314015300016-1.03140153000162
1431016.9351197289185-6.93511972891846
1442423.35727780122030.642722198779667
1452220.84549632458981.15450367541021
1462424.6239537408981-0.623953740898068
1471920.5904824995447-1.59048249954472
1482020.9885631513311-0.988563151331053
1491316.2062995568455-3.20629955684547
1502019.05234447032320.94765552967677
1512221.98993548368660.0100645163133675
1522422.18965517303561.81034482696445
1532922.00052282186756.99947717813247
1541219.7779344455346-7.77793444553464
1552019.76163848317240.238361516827564
1562120.19064200999840.809357990001604
1572422.33657743225951.66342256774052
1582220.63874532614101.36125467385902
1592016.67957138842803.32042861157202


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.6758729669614380.6482540660771250.324127033038562
120.5323310631721140.9353378736557710.467668936827886
130.5517485855023250.896502828995350.448251414497675
140.7785162238108170.4429675523783670.221483776189183
150.694936121901740.6101277561965210.305063878098261
160.692611740043190.614776519913620.30738825995681
170.6075192603053480.7849614793893030.392480739694652
180.7155676324328610.5688647351342780.284432367567139
190.6833601140084980.6332797719830050.316639885991502
200.6411031731831580.7177936536336830.358896826816842
210.5691171057998040.8617657884003920.430882894200196
220.491848026826440.983696053652880.508151973173561
230.4720824225383430.9441648450766870.527917577461656
240.5290062832888490.9419874334223020.470993716711151
250.6825439318629530.6349121362740940.317456068137047
260.6186626842616620.7626746314766760.381337315738338
270.5521518517017470.8956962965965070.447848148298253
280.547556566559150.90488686688170.45244343344085
290.4793149067101190.9586298134202390.520685093289881
300.4142605113047640.8285210226095290.585739488695236
310.4304494323769370.8608988647538740.569550567623063
320.3685473000678560.7370946001357120.631452699932144
330.5947399301965250.8105201396069490.405260069803475
340.5415901028590680.9168197942818650.458409897140932
350.4961119617154720.9922239234309440.503888038284528
360.4457432071299560.8914864142599130.554256792870044
370.4121754676421460.8243509352842920.587824532357854
380.3615802622533290.7231605245066580.638419737746671
390.3230417784582550.646083556916510.676958221541745
400.2917476633802540.5834953267605080.708252336619746
410.5203818502856810.9592362994286380.479618149714319
420.4659933880647980.9319867761295960.534006611935202
430.4296720386958430.8593440773916870.570327961304157
440.3812421736736370.7624843473472730.618757826326363
450.3390589993071640.6781179986143280.660941000692836
460.3179591744185390.6359183488370790.682040825581461
470.3006154738324820.6012309476649640.699384526167518
480.2924341794240330.5848683588480660.707565820575967
490.2568880056808280.5137760113616570.743111994319172
500.2515160847588810.5030321695177610.74848391524112
510.2315076636502690.4630153273005380.768492336349731
520.2043458924222450.4086917848444890.795654107577755
530.2787246577681670.5574493155363340.721275342231833
540.3594050131844090.7188100263688180.640594986815591
550.3365956813020830.6731913626041660.663404318697917
560.4035830876845680.8071661753691360.596416912315432
570.3799954017280310.7599908034560610.620004598271969
580.3491151871079690.6982303742159390.65088481289203
590.3480944095513560.6961888191027120.651905590448644
600.4290216746757240.8580433493514470.570978325324276
610.384781681161170.769563362322340.61521831883883
620.3429327390693820.6858654781387630.657067260930618
630.3442373415916270.6884746831832530.655762658408374
640.3105177168315740.6210354336631490.689482283168426
650.271744179711050.54348835942210.72825582028895
660.2540769743934600.5081539487869190.74592302560654
670.2234108055460760.4468216110921530.776589194453924
680.2502706445834610.5005412891669220.749729355416539
690.2163347368726330.4326694737452660.783665263127367
700.1836554278144510.3673108556289020.816344572185549
710.1546970452364640.3093940904729280.845302954763536
720.1302573218711180.2605146437422370.869742678128882
730.1116451723236280.2232903446472550.888354827676372
740.091480792379470.182961584758940.90851920762053
750.0741707792945590.1483415585891180.925829220705441
760.06457467542984480.1291493508596900.935425324570155
770.05205748190185440.1041149638037090.947942518098146
780.04102416532102720.08204833064205450.958975834678973
790.04279728266286570.08559456532573130.957202717337134
800.04411612928966200.08823225857932390.955883870710338
810.03538895918976940.07077791837953880.96461104081023
820.04081653660663410.08163307321326820.959183463393366
830.03253897819096360.06507795638192710.967461021809036
840.02488023950211450.04976047900422890.975119760497886
850.02309882699663690.04619765399327390.976901173003363
860.01829031029038260.03658062058076520.981709689709617
870.01473022882630080.02946045765260160.9852697711737
880.01528890754168840.03057781508337670.984711092458312
890.01273845817082840.02547691634165670.987261541829172
900.00956257069627580.01912514139255160.990437429303724
910.008145341661795460.01629068332359090.991854658338205
920.006621822675517290.01324364535103460.993378177324483
930.004851197665856540.009702395331713080.995148802334143
940.004593294157705640.009186588315411280.995406705842294
950.006872635015548180.01374527003109640.993127364984452
960.005582762565948350.01116552513189670.994417237434052
970.004744216059177240.009488432118354480.995255783940823
980.003625872079375000.007251744158750010.996374127920625
990.002724003703632970.005448007407265950.997275996296367
1000.002258621154904590.004517242309809190.997741378845095
1010.00177185623297080.00354371246594160.998228143767029
1020.001294893473246290.002589786946492580.998705106526754
1030.001597367492719960.003194734985439930.99840263250728
1040.001242031122739850.002484062245479690.99875796887726
1050.00542742657206040.01085485314412080.99457257342794
1060.01329715880043870.02659431760087730.986702841199561
1070.0140082338446370.0280164676892740.985991766155363
1080.01906866922809180.03813733845618350.980931330771908
1090.0148425447332350.029685089466470.985157455266765
1100.01074999120002250.02149998240004500.989250008799978
1110.007756585227446460.01551317045489290.992243414772554
1120.02234887922916570.04469775845833140.977651120770834
1130.02236085217383380.04472170434766770.977639147826166
1140.05576375221696020.1115275044339200.94423624778304
1150.04760514197905930.09521028395811860.95239485802094
1160.03987427934270350.0797485586854070.960125720657297
1170.1042970248789920.2085940497579840.895702975121008
1180.0982563321210110.1965126642420220.901743667878989
1190.08763753477730450.1752750695546090.912362465222696
1200.1522612207618320.3045224415236630.847738779238169
1210.1492114026616990.2984228053233980.850788597338301
1220.1890161968715840.3780323937431680.810983803128416
1230.1877893851345680.3755787702691360.812210614865432
1240.1779683645924080.3559367291848160.822031635407592
1250.1541732272053000.3083464544106010.8458267727947
1260.1237962052112020.2475924104224040.876203794788798
1270.09693575212675760.1938715042535150.903064247873242
1280.09452594172957770.1890518834591550.905474058270422
1290.1326537850814920.2653075701629850.867346214918508
1300.1147389290341890.2294778580683780.885261070965811
1310.09600094863167750.1920018972633550.903999051368322
1320.08522188205855690.1704437641171140.914778117941443
1330.08339158831356290.1667831766271260.916608411686437
1340.074196941559150.14839388311830.92580305844085
1350.1733886391726960.3467772783453920.826611360827304
1360.1382620265602180.2765240531204360.861737973439782
1370.1158031539862230.2316063079724450.884196846013777
1380.16283236947670.32566473895340.8371676305233
1390.3946676757069980.7893353514139960.605332324293002
1400.3396057682623480.6792115365246960.660394231737652
1410.4819298332321710.9638596664643430.518070166767829
1420.3906349505151320.7812699010302640.609365049484868
1430.5523327565503380.8953344868993230.447667243449662
1440.4988138597761710.9976277195523420.501186140223829
1450.4024557155115350.804911431023070.597544284488465
1460.2980692672244290.5961385344488580.701930732775571
1470.2895097932688310.5790195865376620.710490206731169
1480.1723315308513670.3446630617027350.827668469148633


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.072463768115942NOK
5% type I error level300.217391304347826NOK
10% type I error level380.275362318840580NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/10qy081291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/10qy081291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/11f3e1291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/11f3e1291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/2u6lh1291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/2u6lh1291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/3u6lh1291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/3u6lh1291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/4u6lh1291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/4u6lh1291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/55gk21291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/55gk21291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/65gk21291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/65gk21291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/7gpjn1291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/7gpjn1291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/8gpjn1291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/8gpjn1291127967.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/9qy081291127967.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291127946x2pbt8k2ssqot2f/9qy081291127967.ps (open in new window)


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