Home » date » 2010 » Nov » 30 »

Personal Standards (Yt) - Maandelijkse effecten

*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 10:58:46 +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/t12911146983v1rwfded32rlpa.htm/, Retrieved Tue, 30 Nov 2010 11:58:18 +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/t12911146983v1rwfded32rlpa.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 25 25 30 17 19 18 22 18 22 16 25 20 23 16 17 18 21 17 19 23 19 30 15 23 16 18 23 15 27 12 22 21 14 15 22 20 23 31 23 27 21 34 19 21 18 31 20 19 23 16 25 20 19 21 24 22 22 17 25 24 26 25 29 26 32 25 25 17 29 32 28 33 17 13 28 32 29 25 26 29 25 22 14 18 25 17 26 20 20 15 18 20 32 33 25 29 25 23 23 26 21 18 20 20 15 11 30 28 24 26 26 22 24 17 22 12 14 14 24 17 24 21 24 19 24 18 19 10 31 29 22 31 27 19 19 9 25 20 20 28 21 19 27 30 23 29 25 26 20 23 21 13 22 21 23 19 25 28 25 23 17 18 19 21 25 20 19 23 20 21 26 21 23 15 27 28 17 19 17 26 19 10 17 16 22 22 21 19 32 31 21 31 21 29 18 19 18 22 23 23 19 15 20 20 21 18 20 23 17 25 18 21 19 24 22 25 15 17 14 13 18 28 24 21 35 25 29 9 21 16 25 19 20 17 22 25 13 20 26 29 17 14 25 22 20 15 19 19 21 20 22 15 24 20 21 18 26 33 24 22 16 16 23 17 18 16 16 21 26 26 19 18 21 18 21 17 22 22 23 30 29 30 21 24 21 21 23 21 27 29 25 3 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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
PS[t] = + 13.7057371438104 + 0.324108497176835x[t] + 1.14327246228138M1[t] + 0.439706450988726M2[t] + 1.83383716930753M3[t] + 1.71023841287010M4[t] + 1.09272498914167M5[t] + 1.90756098740434M6[t] + 2.40680372186540M7[t] + 2.79780553151221M8[t] + 2.16600472664307M9[t] + 1.47795465102299M10[t] + 0.411061338553018M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13.70573714381041.7116898.007100
x0.3241084971768350.0561975.767400
M11.143272462281381.4954940.76450.4458160.222908
M20.4397064509887261.5019320.29280.7701210.38506
M31.833837169307531.4957631.2260.2221640.111082
M41.710238412870101.53481.11430.2669780.133489
M51.092724989141671.536570.71110.4781290.239064
M61.907560987404341.5418151.23720.2179920.108996
M72.406803721865401.5315821.57140.1182430.059121
M82.797805531512211.5275691.83150.0690580.034529
M92.166004726643071.5235081.42170.157240.07862
M101.477954651022991.522330.97090.3332290.166614
M110.4110613385530181.5287980.26890.7884030.394201


Multiple Linear Regression - Regression Statistics
Multiple R0.467233839799462
R-squared0.218307461053750
Adjusted R-squared0.154058759222551
F-TEST (value)3.39785014843275
F-TEST (DF numerator)12
F-TEST (DF denominator)146
p-value0.00021079102177457
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.87855041641
Sum Squared Residuals2196.30038656459


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12422.62761353833581.37238646166418
22522.24815602422002.75184397578002
33021.04941876512418.9505812348759
41921.2499285058635-2.24992850586349
52220.63241508213511.36758491786493
62220.79903408604411.20096591395593
72522.59471080921252.40528919078753
82321.68927863015191.31072136984806
91721.7056948196365-4.70569481963647
102120.69353624683960.306463753160447
111921.5712939174306-2.57129391743060
121923.4289920591154-4.42899205911543
131522.3035050411590-7.30350504115896
141619.9793965439821-3.97939654398212
152320.40120177077042.59879822922958
162719.30527752280257.69472247719752
172221.60474057366560.395259426334421
181420.4749255888672-6.47492558886723
192222.5947108092125-0.594710809212473
202326.5509060878045-3.55090608780447
212324.622671294228-1.62267129422799
222126.2033806988458-5.20338069884575
231920.9230769230769-1.92307692307692
241823.7531005562923-5.75310055629226
252021.0070710524516-1.00707105245162
262319.33117954962853.66882045037155
272522.02174425665462.9782557433454
281922.222253997394-3.222253997394
292421.92884907084242.07115092915758
302221.12314258322090.876857416779095
312523.89114479791981.10885520208018
322624.60625510474351.39374489525654
332924.29856279705114.70143720294885
343223.28640422425428.71359577574576
352519.62664293436965.37335706563042
362924.07720905346914.9227909465309
372825.54459001292732.45540998707269
381718.3588540580979-1.35885405809794
392825.91104622277662.08895377722337
402923.51868798610135.48131201389865
412624.19760855108031.80239144891974
422522.74368506910512.25631493089492
431421.9464938148588-7.9464938148588
442522.01338712732882.98661287267123
452622.35391181399013.64608818600986
462020.0453192524859-0.0453192524858794
471820.5989684259001-2.59896842590009
483224.40131755064597.59868244935407
492524.24815602422000.751843975780029
502521.59993902986633.4000609701337
512323.9663952397156-0.966395239715616
522121.2499285058635-0.249928505863495
532021.2806320764887-1.28063207648874
541519.1784916001599-4.17849160015989
553025.18757878662724.81242121337284
562424.9303636019203-0.930363601920293
572623.00212880834382.99787119165619
582420.69353624683953.30646375316045
592218.00610044848543.9938995515146
601418.2432561042861-4.24325610428605
612420.35885405809793.64114594190206
622420.95172203551263.04827796448737
632421.69763575947782.30236424052223
642421.24992850586352.75007149413650
651918.03954710472040.960452895279612
663125.01244454934295.98755545065707
672226.1599042781577-4.15990427815767
682722.66160412168244.33839587831756
691918.78871834504490.211281654955056
702521.66586173837013.33413826162994
712023.1918364033148-3.19183640331477
722119.86379859017021.13620140982977
732724.57226452139682.42773547860319
742323.5445900129273-0.544590012927316
752523.96639523971561.03360476028438
762022.8704709917477-2.87047099174767
772119.01187259625091.98812740374911
782222.4195765719282-0.419576571928247
792322.27060231203560.729397687964362
802525.5785805962740-0.578580596273965
812523.32623730552061.67376269447936
821721.0176447440164-4.01764474401639
831920.9230769230769-1.92307692307692
842520.18790708734714.81209291265293
851922.3035050411590-3.30350504115896
862020.9517220355126-0.95172203551263
872622.34585275383143.65414724616856
882320.2776030143332.72239698566701
892723.87350005390343.12649994609657
901721.7713595775746-4.77135957757458
911724.5393617922735-7.53936179227349
921919.7446276470909-0.744627647090923
931721.0574778252828-4.05747782528279
942222.3140787327237-0.314078732723729
952120.27485992872330.725140071276748
963223.75310055629238.24689944370774
972124.8963730185736-3.89637301857364
982123.5445900129273-2.54459001292732
991821.6976357594778-3.69763575947777
1001822.5463624945708-4.54636249457084
1012322.25295756801930.74704243198075
1021920.4749255888672-1.47492558886723
1032022.5947108092125-2.59471080921247
1042122.3374956245056-1.33749562450561
1052023.3262373055206-3.32623730552064
1061723.2864042242542-6.28640422425423
1071820.9230769230769-2.92307692307692
1081921.4843410760544-2.48434107605441
1092222.9517220355126-0.951722035512628
1101519.6552880468053-4.65528804680529
1111419.7529847764168-5.75298477641675
1121824.4910134776319-6.49101347763185
1132421.60474057366562.39525942633442
1143523.716010560635611.2839894393644
1152919.02951734026739.97048265973272
1162121.6892786301519-0.689278630151937
1172522.02980331681332.9701966831867
1182020.6935362468395-0.693536246839551
1192222.2195109117843-0.219510911784265
1201320.1879070873471-7.18790708734707
1212624.24815602422001.75184397578003
1221718.6829625552748-1.68296255527478
1232522.66996125100832.33003874899173
1242020.277603014333-0.277603014332988
1251920.9565235793119-1.95652357931191
1262122.0954680747514-1.09546807475141
1272220.97416832332831.02583167667171
1282422.98571261885931.01428738114072
1292121.7056948196365-0.705694819636464
1302625.87927220166890.120727798331079
1312421.24718542025382.75281457974624
1321618.8914730986397-2.89147309863973
1332320.35885405809792.64114594190206
1341819.3311795496285-1.33117954962845
1351622.3458527538314-6.34585275383144
1362623.84279648327822.15720351672182
1371920.6324150821351-1.63241508213507
1382121.4472510803977-0.447251080397741
1392121.6223853176820-0.622385317681966
1402223.6339296132130-1.63392961321295
1412325.5949967857585-2.59499678575849
1422924.90694671013844.09305328986159
1432121.8954024146074-0.89540241460743
1442120.51201558452390.487984415476095
1452321.65528804680531.34471195319471
1462723.54459001292733.45540998707268
1472525.5869377255998-0.586937725599795
1482121.8981455002172-0.898145500217166
1491019.9841980877814-9.9841980877814
1502022.7436850691051-2.74368506910508
1512622.59471080921253.40528919078753
1522425.5785805962740-1.57858059627396
1532928.18786476317320.812135236826824
1541922.3140787327237-3.31407873272373
1552420.59896842590013.40103157409991
1561919.2155815958166-0.215581595816563
1572423.92404752704310.075952472956865
1582221.27583053268950.724169467310533
1591725.5869377255998-8.5869377255998


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.966230215207650.06753956958470.03376978479235
170.9309679118338630.1380641763322730.0690320881661366
180.9431265953329070.1137468093341870.0568734046670934
190.9111614428614030.1776771142771930.0888385571385967
200.8817771075773070.2364457848453860.118222892422693
210.851439508530180.2971209829396410.148560491469820
220.8167827136872180.3664345726255650.183217286312782
230.7502265407230550.4995469185538910.249773459276945
240.6980116751130960.6039766497738090.301988324886904
250.622219259680650.7555614806387010.377780740319351
260.580950100910820.8380997981783610.419049899089180
270.5216749929658650.956650014068270.478325007034135
280.5102321495791090.9795357008417820.489767850420891
290.4465334679727370.8930669359454740.553466532027263
300.4199885838425920.8399771676851840.580011416157408
310.3536692758722030.7073385517444070.646330724127796
320.3114943819410580.6229887638821170.688505618058942
330.4636755438420370.9273510876840750.536324456157963
340.7374530475088210.5250939049823580.262546952491179
350.7769510254509490.4460979490981030.223048974549051
360.8809078151595520.2381843696808960.119092184840448
370.8971919466904150.2056161066191690.102808053309585
380.8762066774962050.247586645007590.123793322503795
390.8490558435068710.3018883129862570.150944156493129
400.8670486593479950.2659026813040090.132951340652005
410.8362918591669230.3274162816661540.163708140833077
420.8216263133044480.3567473733911050.178373686695552
430.9060649090820360.1878701818359280.0939350909179638
440.8927982351331330.2144035297337350.107201764866867
450.8865272446702290.2269455106595420.113472755329771
460.8604723503798970.2790552992402060.139527649620103
470.8409251629787280.3181496740425440.159074837021272
480.9161890037334740.1676219925330510.0838109962665256
490.8962353020464650.2075293959070710.103764697953535
500.8863300905419270.2273398189161470.113669909458073
510.8817001337198070.2365997325603850.118299866280193
520.8579957883596880.2840084232806240.142004211640312
530.8342560360268510.3314879279462980.165743963973149
540.831725410581490.336549178837020.16827458941851
550.8504523412713560.2990953174572880.149547658728644
560.8209267438430080.3581465123139850.179073256156992
570.8022798106573170.3954403786853650.197720189342683
580.7854050794888950.4291898410222090.214594920511105
590.7851665996510330.4296668006979340.214833400348967
600.7878607351424630.4242785297150730.212139264857537
610.786385927268790.4272281454624210.213614072731211
620.7675389619260530.4649220761478930.232461038073947
630.7478329567127840.5043340865744330.252167043287216
640.7260061585043220.5479876829913550.273993841495677
650.6862022509429330.6275954981141330.313797749057067
660.739437265052490.5211254698950210.260562734947511
670.7486132167114460.5027735665771080.251386783288554
680.7572732554357540.4854534891284920.242726744564246
690.7186611713100790.5626776573798430.281338828689921
700.70851139205570.58297721588860.2914886079443
710.6996296650211190.6007406699577630.300370334978881
720.660473909648370.679052180703260.33952609035163
730.6300928056312730.7398143887374540.369907194368727
740.5880833759999790.8238332480000410.411916624000021
750.5629602109605870.8740795780788260.437039789039413
760.5486475795100110.9027048409799780.451352420489989
770.5180730668402720.9638538663194550.481926933159728
780.4695336332683160.9390672665366330.530466366731684
790.423776244133410.847552488266820.57622375586659
800.3791722419048720.7583444838097440.620827758095128
810.3444087374257470.6888174748514940.655591262574253
820.3513411525280820.7026823050561630.648658847471918
830.3174367130919470.6348734261838930.682563286908053
840.3420589608680480.6841179217360960.657941039131952
850.3287511191594080.6575022383188170.671248880840592
860.2897941022118540.5795882044237080.710205897788146
870.3200668069257370.6401336138514740.679933193074263
880.3138847234459540.6277694468919090.686115276554046
890.3057702502306820.6115405004613640.694229749769318
900.3347271969065270.6694543938130530.665272803093473
910.523203956664140.953592086671720.47679604333586
920.4783565091865920.9567130183731840.521643490813408
930.4722727425774070.9445454851548140.527727257422593
940.4266678897486710.8533357794973420.573332110251329
950.3798683734407330.7597367468814670.620131626559267
960.5842047983441970.8315904033116060.415795201655803
970.6011748235900530.7976503528198930.398825176409946
980.5739369656034230.8521260687931530.426063034396577
990.57064518538050.8587096292390010.429354814619501
1000.5747406034428230.8505187931143530.425259396557177
1010.5446402728663960.9107194542672090.455359727133604
1020.5103500064376110.9792999871247780.489649993562389
1030.5379682776215150.924063444756970.462031722378485
1040.4891456490346040.9782912980692080.510854350965396
1050.4723966617351250.944793323470250.527603338264875
1060.5529914699747340.8940170600505320.447008530025266
1070.5427068992470440.9145862015059130.457293100752956
1080.5042851955841270.9914296088317470.495714804415873
1090.4629815377341210.9259630754682420.537018462265879
1100.4841554978075460.9683109956150930.515844502192454
1110.4944257913494290.9888515826988580.505574208650571
1120.5908492075856340.8183015848287330.409150792414366
1130.6382781495478360.7234437009043280.361721850452164
1140.9400631890421260.1198736219157470.0599368109578736
1150.9880054986048720.02398900279025660.0119945013951283
1160.9822643264100490.03547134717990220.0177356735899511
1170.9834624969500420.03307500609991510.0165375030499576
1180.9756077676449140.04878446471017280.0243922323550864
1190.9680151467850350.063969706429930.031984853214965
1200.9856669859699320.02866602806013520.0143330140300676
1210.978633349374410.0427333012511790.0213666506255895
1220.9706367691515230.05872646169695430.0293632308484771
1230.9927980099079250.01440398018415030.00720199009207515
1240.988234571630620.02353085673875980.0117654283693799
1250.9871973107532430.02560537849351350.0128026892467568
1260.9797138054881780.0405723890236440.020286194511822
1270.968374822120670.06325035575865820.0316251778793291
1280.9630257126889520.07394857462209520.0369742873110476
1290.9561145867409640.08777082651807190.0438854132590359
1300.9390188530495770.1219622939008460.0609811469504232
1310.9151603097637520.1696793804724960.0848396902362482
1320.8901345688739560.2197308622520880.109865431126044
1330.8858256474762920.2283487050474160.114174352523708
1340.836084740628850.3278305187423000.163915259371150
1350.7942232578530690.4115534842938630.205776742146931
1360.7222506137567820.5554987724864360.277749386243218
1370.823374814662020.3532503706759590.176625185337980
1380.7830332721085090.4339334557829820.216966727891491
1390.7256574768257250.548685046348550.274342523174275
1400.6267524008848290.7464951982303420.373247599115171
1410.5016476661177840.9967046677644310.498352333882216
1420.5509074068510490.8981851862979020.449092593148951
1430.4936129959246650.987225991849330.506387004075335


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


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/10eu6r1291114715.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/10eu6r1291114715.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/203ri1291114715.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/203ri1291114715.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/303ri1291114715.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/303ri1291114715.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/5buql1291114715.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/5buql1291114715.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/6ml7o1291114715.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911146983v1rwfded32rlpa/6ml7o1291114715.ps (open in new window)


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


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


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


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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