Home » date » 2010 » Dec » 19 »

paper - multiple regression - persoonlijke redenen

*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: Sun, 19 Dec 2010 10:24: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/Dec/19/t12927541777y6nr6qas3too6i.htm/, Retrieved Sun, 19 Dec 2010 11:23:09 +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/19/t12927541777y6nr6qas3too6i.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 «
46 11 52 26 23 44 8 39 25 15 42 10 42 28 25 41 12 35 30 18 48 12 32 28 21 49 10 49 40 19 51 8 33 28 15 47 10 47 27 22 49 11 46 25 19 46 7 40 27 20 51 10 33 32 26 54 9 39 28 26 52 9 37 21 21 52 11 56 40 18 45 12 36 29 19 52 5 24 27 19 56 10 56 31 18 54 11 32 33 19 50 12 41 28 24 35 9 24 26 28 48 3 42 25 20 37 10 47 37 27 47 7 25 13 18 31 9 33 32 19 45 9 43 32 24 47 10 45 38 21 44 9 44 30 22 30 19 46 33 25 40 14 31 22 19 44 5 31 29 15 43 13 42 33 34 51 7 28 31 23 48 8 38 23 19 55 11 59 42 26 48 11 43 35 15 53 12 29 31 15 49 9 38 31 17 44 13 39 38 30 45 12 50 34 19 40 11 44 33 28 44 18 29 23 23 41 8 29 18 23 46 14 36 33 21 47 10 43 26 18 48 13 28 29 19 43 13 39 23 24 46 8 35 18 15 53 10 43 36 20 33 8 28 21 24 47 9 49 31 9 43 10 33 31 20 45 9 39 29 20 49 9 36 24 10 45 9 24 35 44 37 10 47 37 20 42 8 34 29 20 43 11 33 31 11 44 11 43 34 21 39 10 41 38 21 37 23 40 27 19 53 9 39 33 17 48 12 54 36 16 47 9 43 27 14 49 9 45 33 19 47 8 29 24 21 56 9 45 31 16 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time10 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Persoonlijke_redenen[t] = + 7.80479634304143 + 0.0803501248472529`Carrièremogelijkheden`[t] + 0.401757129542155Geen_Motivatie[t] + 0.346563713966344Leermogelijkheden[t] + 0.0272609904231642Ouders[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.804796343041434.4672051.74710.0827920.041396
`Carrièremogelijkheden`0.08035012484725290.0774061.0380.3010330.150516
Geen_Motivatie0.4017571295421550.1515532.65090.0089450.004473
Leermogelijkheden0.3465637139663440.055626.230900
Ouders0.02726099042316420.0777730.35050.726470.363235


Multiple Linear Regression - Regression Statistics
Multiple R0.540252823616273
R-squared0.291873113425356
Adjusted R-squared0.271784407423239
F-TEST (value)14.5292142457852
F-TEST (DF numerator)4
F-TEST (DF denominator)141
p-value5.84552628524193e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.96128070174827
Sum Squared Residuals3470.61717441711


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12634.5685464169613-8.56854641696128
22528.4791585736927-3.47915857369266
32830.4342736292131-2.43427362921313
43028.54066483272361.45933516727636
52828.1452075360249-0.145207536024866
64033.25910455836936.74089544163067
72826.96222716382541.03777283617463
82732.4870598520116-5.48705985201163
92532.6211705460125-7.62117054601245
102728.7209703599272-1.72097035992717
113228.06561231756453.93438768243552
122829.9842878463621-1.98428784636215
132128.9941552166191-7.99415521661913
144036.30059706979453.69940293020552
152929.2358900365022-0.235890036502157
162722.82727643604174.17272356395829
173136.2202404396413-5.22024043964134
183328.17102917471994.8289708252801
192831.5067641826860-3.50676418268596
202623.31370174561552.68629825438449
212527.9677695193857-2.96776951938575
223731.81986355565495.18013644434508
231323.5483427944329-10.5483427944329
243225.86602575811516.13397424188488
253230.59286959775591.40713040224408
263831.76667143365586.23332856634423
273030.8045612060287-0.80456120602868
283334.4721411527909-1.47214115279087
292227.9048351015185-5.90483510151848
302924.50137747333544.49862252666456
313331.96524405649531.03475594350467
323125.04573938783685.9542606121632
332328.563039320808-5.56303932080798
344237.79942650962064.20057349037941
353531.39208531757353.60791468242649
363127.34370107582313.65629892417688
373128.99062459435112.00937540564894
383830.89685907775097.1031409222491
393434.087782032031-0.0877820320309693
403331.4502409082631.54975909173704
412329.2491806528361-6.24918065283609
421824.9905589828728-6.99055898287277
433330.17427640128002.82572359871995
442630.9917610344536-4.99176103445359
452927.10618782885531.89381217114468
462330.6529430103647-7.65294301036466
471827.2536039675218-9.25360396752179
483631.52838376438344.47161623561656
492124.0284552605516-3.02845526055157
503132.424037274901-1.42403727490102
513127.25924537624753.74075462375253
522929.0975707801979-0.0975707801978863
532428.1066702334562-4.10667023345622
543524.553378840858710.4466211591413
553731.62903662269285.37096337730723
562926.72194470628232.27805529371775
573127.41565359198123.58434640801885
583431.23425076072352.76574923927652
593829.73761557901248.26238442098762
602734.3986723185532-7.39867231855322
613329.65858880770643.34141119229358
623635.63330429116860.366695708831389
632730.4809599432188-3.48095994321878
643331.47109257296181.52890742703820
652425.4181377511100-1.41813775110996
663131.9517604756231-0.951760475623074
673132.324920250589-1.32492025058899
682328.5630458261139-5.56304582611387
693834.77947010823553.22052989176447
703027.955916437062.04408356293999
713935.63624695036463.36375304963542
722823.65530199089154.34469800910845
733930.29796867709738.70203132290269
741926.1909503744663-7.19095037446631
753228.96269867450433.03730132549570
763228.53788261153653.46211738846346
773529.93255459200885.0674454079912
784234.5398525801167.46014741988399
792529.6467357253807-4.64673572538069
801128.5728762812253-17.5728762812253
813130.72966603067470.270333969325325
823023.14249960608016.85750039391993
833033.7621729703385-3.76217297033851
843129.87744464809041.12255535190962
852832.0035197512-4.00351975119998
863428.9459460792285.05405392077203
873228.24087090442033.75912909557968
883030.1595594438298-0.159559443829771
892727.9495970882990-0.949597088298955
903636.5982802116402-0.598280211640183
913227.36770137486804.63229862513197
922725.68856640783841.31143359216161
933532.86584802509142.13415197490855
943428.80410270596155.19589729403848
953230.03873936616291.96126063383712
962827.85250737878720.147492621212848
972932.0566153909300-3.05661539092996
981829.9821835652104-11.9821835652104
993431.68632130880852.31367869119148
1003528.61679338465576.38320661534434
1013429.23168147419874.76831852580129
1022626.8792108159779-0.879210815977853
1033028.35699562656681.64300437343320
1043533.89980778130151.10019221869848
1051726.1622565376209-9.16225653762091
1063428.3360344689875.66396553101298
1073030.277678954247-0.277678954247020
1083126.89182349227644.10817650772359
1092525.7150594812629-0.715059481262907
1101625.2211074675736-9.22110746757359
1113532.68200537031392.31799462968605
1122825.06728200318282.93271799681721
1134232.24944361746889.75055638253123
1143031.5039884668048-1.50398846680475
1153734.13313198188352.86686801811646
1162626.8818770389781-0.881877038978112
1172827.87278409102570.127215908974335
1183331.68135784011821.31864215988179
1192928.27167552772330.728324472276659
1202124.9451190560569-3.94511905605693
1213833.52531814748844.47468185251158
1221830.3566927149412-12.3566927149412
1233832.49748477550115.50251522449893
1243028.00890258390901.99109741609095
1253533.41693911521931.58306088478065
1263433.47710901009730.522890989902743
1272125.1562227012576-4.15622270125759
1283031.343198240147-1.34319824014698
1293224.94300826959937.05699173040068
1302330.8276201394543-7.82762013945429
1313136.7373543743313-5.73735437433132
1322626.9084796052836-0.908479605283575
1332931.1071113342955-2.10711133429553
1342832.6598878025076-4.65988780250764
1352928.7739695173880.226030482612012
1363633.41560925637222.58439074362783
1373630.36088826663295.63911173336714
1383132.4080460913174-1.40804609131745
1393029.89831582870690.101684171293118
1402930.6480630133317-1.64806301333173
1413532.39685793841532.60314206158469
1422630.1407990496709-4.14079904967088
1432526.6437953448559-1.64379534485589
1442529.173053918624-4.17305391862399
1452027.6639581755974-7.66395817559738
1462730.5012283324315-3.50122833243147


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.7789044345127680.4421911309744640.221095565487232
90.8154861979529550.3690276040940890.184513802047045
100.7125464040086940.5749071919826120.287453595991306
110.6382858213905460.7234283572189090.361714178609454
120.5465186620629710.9069626758740580.453481337937029
130.661808221473110.6763835570537790.338191778526889
140.704609251782340.590781496435320.29539074821766
150.6168932530453590.7662134939092820.383106746954641
160.5749518092691660.8500963814616680.425048190730834
170.5325895700948390.9348208598103220.467410429905161
180.4757450699728370.9514901399456740.524254930027163
190.4119784204053580.8239568408107150.588021579594642
200.3768354830969600.7536709661939210.62316451690304
210.3073240653784550.614648130756910.692675934621545
220.4198959629678690.8397919259357380.580104037032131
230.6755993968059230.6488012063881550.324400603194077
240.6774152660724430.6451694678551140.322584733927557
250.6244889667709410.7510220664581180.375511033229059
260.6789820812107640.6420358375784730.321017918789236
270.6180367446618340.7639265106763310.381963255338166
280.5875941551604940.8248116896790120.412405844839506
290.6067998807447970.7864002385104050.393200119255203
300.5881911305863280.8236177388273440.411808869413672
310.5295358995156330.9409282009687340.470464100484367
320.5458810093560480.9082379812879030.454118990643952
330.5499847684679580.9000304630640830.450015231532042
340.5581302308963640.8837395382072720.441869769103636
350.5562450220863590.8875099558272810.443754977913641
360.5428399877252060.9143200245495890.457160012274794
370.4966148105606820.9932296211213640.503385189439318
380.5325419635310250.934916072937950.467458036468975
390.4769648684554050.953929736910810.523035131544595
400.4233467777390210.8466935554780420.576653222260979
410.4492226746875880.8984453493751760.550777325312412
420.5164795249026340.9670409501947330.483520475097366
430.4849573523124770.9699147046249540.515042647687523
440.4755459044339330.9510918088678670.524454095566067
450.432899558642770.865799117285540.56710044135723
460.4985303004118840.9970606008237690.501469699588116
470.5986035982171630.8027928035656730.401396401782837
480.5917640117178080.8164719765643840.408235988282192
490.5565988928093760.8868022143812480.443401107190624
500.5090302281386540.9819395437226910.490969771861346
510.4921957094050780.9843914188101550.507804290594922
520.4413272080677620.8826544161355250.558672791932238
530.4133404752041510.8266809504083030.586659524795849
540.514298594235260.971402811529480.48570140576474
550.5380675805421420.9238648389157160.461932419457858
560.4991794688328090.9983589376656180.500820531167191
570.5003765367788330.9992469264423340.499623463221167
580.4672684652778070.9345369305556140.532731534722193
590.5540049792649360.8919900414701290.445995020735064
600.5964251420754160.8071497158491680.403574857924584
610.5745917612567340.8508164774865320.425408238743266
620.5304138993906760.939172201218650.469586100609325
630.503338054300390.993323891399220.49666194569961
640.4589544435069970.9179088870139940.541045556493003
650.4157423322690270.8314846645380540.584257667730973
660.3698886647137220.7397773294274440.630111335286278
670.3278720658612890.6557441317225790.672127934138711
680.3405742558496190.6811485116992380.659425744150381
690.3192647348449880.6385294696899760.680735265155012
700.283130234547850.56626046909570.71686976545215
710.2649611477579850.529922295515970.735038852242015
720.2539131914548330.5078263829096650.746086808545167
730.3413808273143870.6827616546287740.658619172685613
740.3996191462376430.7992382924752850.600380853762357
750.3705790104141270.7411580208282550.629420989585872
760.3478642320624440.6957284641248870.652135767937556
770.3494305095772770.6988610191545550.650569490422723
780.4098313912614440.8196627825228880.590168608738556
790.4143507081556170.8287014163112350.585649291844383
800.891524659059650.2169506818807010.108475340940351
810.8721353602802940.2557292794394130.127864639719706
820.9179838206562370.1640323586875250.0820161793437626
830.9083623177293370.1832753645413260.0916376822706628
840.8909869515503730.2180260968992540.109013048449627
850.8827216565868760.2345566868262490.117278343413124
860.8813155871024160.2373688257951670.118684412897584
870.868411048387220.2631779032255580.131588951612779
880.8395591168754560.3208817662490880.160440883124544
890.8083521969512510.3832956060974980.191647803048749
900.7728099839849850.454380032030030.227190016015015
910.8074611600232390.3850776799535220.192538839976761
920.7763056556606290.4473886886787420.223694344339371
930.7600798814979990.4798402370040020.239920118502001
940.7753810149789580.4492379700420850.224618985021042
950.7409901296969840.5180197406060320.259009870303016
960.6997336613609390.6005326772781220.300266338639061
970.6681137900731840.6637724198536320.331886209926816
980.8825348541060830.2349302917878340.117465145893917
990.8637484075598470.2725031848803060.136251592440153
1000.869494013300370.2610119733992590.130505986699630
1010.867571467691010.2648570646179820.132428532308991
1020.8545542852315020.2908914295369950.145445714768497
1030.8397451636132920.3205096727734150.160254836386708
1040.8044852649394010.3910294701211980.195514735060599
1050.8836542788047990.2326914423904030.116345721195202
1060.8996219982438950.2007560035122110.100378001756105
1070.8736201546869780.2527596906260440.126379845313022
1080.9148536975432660.1702926049134680.0851463024567339
1090.8900541709719640.2198916580560730.109945829028036
1100.9177346110697090.1645307778605830.0822653889302913
1110.9055248724494730.1889502551010550.0944751275505274
1120.8817022813275660.2365954373448680.118297718672434
1130.9459602046396570.1080795907206850.0540397953603426
1140.9267939492476650.1464121015046700.0732060507523352
1150.9107312545592880.1785374908814250.0892687454407124
1160.890876301640560.2182473967188790.109123698359440
1170.8689554057302460.2620891885395090.131044594269754
1180.8340929867496190.3318140265007630.165907013250381
1190.7932692004753990.4134615990492030.206730799524601
1200.7698715825430210.4602568349139580.230128417456979
1210.8009498158188450.3981003683623110.199050184181155
1220.9619296558692620.07614068826147530.0380703441307377
1230.9700896625879130.05982067482417440.0299103374120872
1240.954064998184090.0918700036318190.0459350018159095
1250.932120193254260.1357596134914810.0678798067457403
1260.9141585150645860.1716829698708270.0858414849354136
1270.9134145030824660.1731709938350690.0865854969175343
1280.8792556457634070.2414887084731860.120744354236593
1290.8878036866376280.2243926267247440.112196313362372
1300.9141246553648580.1717506892702830.0858753446351417
1310.939337328200870.121325343598260.06066267179913
1320.9031338735060810.1937322529878390.0968661264939193
1330.8524350546510040.2951298906979920.147564945348996
1340.7923928002045720.4152143995908550.207607199795427
1350.7000227406123370.5999545187753260.299977259387663
1360.5981026701928130.8037946596143740.401897329807187
1370.9127639343180.1744721313639990.0872360656819995
1380.8281808234851350.343638353029730.171819176514865


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 level30.0229007633587786OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/10hg891292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/10hg891292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/1bytx1292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/1bytx1292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/2lpa01292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/2lpa01292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/3lpa01292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/3lpa01292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/4lpa01292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/4lpa01292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/5wgs31292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/5wgs31292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/6wgs31292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/6wgs31292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/7ppr61292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/7ppr61292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/8hg891292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/8hg891292754260.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/9hg891292754260.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927541777y6nr6qas3too6i/9hg891292754260.ps (open in new window)


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