Home » date » 2010 » Dec » 19 »

Multiple regression interactie gender

*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 14:24:36 +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/t12927685768bw5mlbswt1umij.htm/, Retrieved Sun, 19 Dec 2010 15:22:58 +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/t12927685768bw5mlbswt1umij.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 «
0 24 14 0 11 0 12 0 24 0 26 0 0 25 11 0 7 0 8 0 25 0 23 0 0 17 6 0 17 0 8 0 30 0 25 0 1 18 12 12 10 10 8 8 19 19 23 23 1 18 8 8 12 12 9 9 22 22 19 19 1 16 10 10 12 12 7 7 22 22 29 29 1 20 10 10 11 11 4 4 25 25 25 25 1 16 11 11 11 11 11 11 23 23 21 21 1 18 16 16 12 12 7 7 17 17 22 22 1 17 11 11 13 13 7 7 21 21 25 25 0 23 13 0 14 0 12 0 19 0 24 0 0 30 12 0 16 0 10 0 19 0 18 0 1 23 8 8 11 11 10 10 15 15 22 22 1 18 12 12 10 10 8 8 16 16 15 15 1 15 11 11 11 11 8 8 23 23 22 22 1 12 4 4 15 15 4 4 27 27 28 28 0 21 9 0 9 0 9 0 22 0 20 0 1 15 8 8 11 11 8 8 14 14 12 12 1 20 8 8 17 17 7 7 22 22 24 24 0 31 14 0 17 0 11 0 23 0 20 0 0 27 15 0 11 0 9 0 23 0 21 0 1 34 16 16 18 18 11 11 21 21 20 20 1 21 9 9 14 14 13 13 19 19 21 21 1 31 14 14 10 10 8 8 18 18 23 23 1 19 11 11 11 11 8 8 20 20 28 28 0 16 8 0 15 0 9 0 23 0 24 0 1 20 9 9 15 15 6 6 25 25 24 24 1 21 9 9 13 13 9 9 19 19 24 24 1 22 9 9 16 16 9 9 24 24 23 23 1 17 9 9 13 13 6 6 22 22 23 23 1 24 10 10 9 9 6 6 25 25 29 29 0 25 16 0 18 0 16 0 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 time8 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Concernovermistakes[t] = -1.14208682459579 -0.524489276020748Gender[t] + 1.06323858761745Doubtsaboutactions[t] -0.380848998061055DoubtsaboutactionsMale[t] + 0.439180646830957Parentalexpectations[t] -0.316205593815534ParentalexpectationsMale[t] + 0.0492100023570672Parentalcritism[t] + 0.193886948718829ParentalcritismMale[t] + 0.434261540435126Personalstandards[t] + 0.211023390416551PersonalstandarsMale[t] -0.178643594475865Organization[t] + 0.0804598211776829OrganizationMale[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-1.142086824595796.203746-0.18410.8541920.427096
Gender-0.5244892760207487.159094-0.07330.9416970.470849
Doubtsaboutactions1.063238587617450.2459874.32232.8e-051.4e-05
DoubtsaboutactionsMale-0.3808489980610550.291892-1.30480.1940130.097006
Parentalexpectations0.4391806468309570.2357341.8630.0644520.032226
ParentalexpectationsMale-0.3162055938155340.288464-1.09620.2747970.137398
Parentalcritism0.04921000235706720.3091170.15920.8737340.436867
ParentalcritismMale0.1938869487188290.3714290.5220.6024540.301227
Personalstandards0.4342615404351260.1885182.30360.022650.011325
PersonalstandarsMale0.2110233904165510.2201290.95860.3393160.169658
Organization-0.1786435944758650.241571-0.73950.4607790.230389
OrganizationMale0.08045982117768290.267710.30050.7641840.382092


Multiple Linear Regression - Regression Statistics
Multiple R0.653897516090643
R-squared0.427581961549513
Adjusted R-squared0.384747958672265
F-TEST (value)9.98230220917869
F-TEST (DF numerator)11
F-TEST (DF denominator)147
p-value2.08166817117217e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.4888649398094
Sum Squared Residuals2962.03654183396


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12424.9423040595443-0.942304059544293
22520.76921802380264.23078197619738
31721.6588520672489-4.65885206724886
41819.6988120131452-1.69881201314523
51819.7868905977742-1.78689059777417
61619.6836381417533-3.68363814175333
72021.159962121258-1.15996212125798
81622.646195599835-6.64619559983502
91821.2388374379206-3.23883743792058
101720.2364529466662-3.2364529466662
112323.3825868991959-0.382586899195856
123024.17115116738145.82884883261862
132315.09546665997847.90453334002165
141818.5484274069757-0.548427406975659
151521.8187209733092-6.81872097330915
161218.5535433377901-6.55354333779013
172118.80345830670892.19654169329108
181514.94582555995670.0541744400432935
192019.42465309420860.575346905791424
203128.16577796459312.83422203540693
212726.31686907203480.68313092796522
223425.72658283031988.27341716968023
232119.55539575851361.44460424148641
243120.418306261406310.5816937385937
251919.293763540965-0.293763540965028
261620.0949907626089-4.09499076260888
272021.5538504192133-1.55385041921326
282118.16548158132.83451841869996
292221.85901516790290.140984832097126
301719.4702292939256-2.47022929392556
312421.00747082418622.9925291758138
322531.5656960418462-6.56569604184618
332628.0828392659918-2.08283926599177
342525.1644433643501-0.164443364350052
351722.8236426983663-5.82364269836634
363227.97749940482584.02250059517419
373324.31300161938498.6869983806151
381320.7526435357688-7.75264353576879
393227.56074839253554.43925160746453
402526.1545144766169-1.15451447661695
412926.36329362140772.63670637859235
422222.2583499927237-0.258349992723706
431816.31158608464031.68841391535973
441721.531912294451-4.53191229445097
452021.4577829171132-1.45778291711317
461520.270704450416-5.27070445041597
472021.2982166023216-1.29821660232164
483328.74494256486444.25505743513558
492921.901882670347.09811732966004
502325.7493967439965-2.7493967439965
512623.96304298345362.03695701654645
521819.0899794389121-1.08997943891207
532018.8373569957851.162643004215
541112.2463331491222-1.24633314912217
552829.0007533693093-1.00075336930933
562623.26447372320182.73552627679824
572221.62156983287160.378430167128377
581720.2995683923861-3.29956839238613
591214.1234210702199-2.12342107021986
601419.5757676996896-5.57576769968957
611721.1707474092448-4.17074740924482
622121.3450049718871-0.345004971887127
631922.6831210618985-3.6831210618985
641823.5065893287069-5.50658932870688
651018.709502773827-8.70950277382704
662922.8550133916736.14498660832696
673118.929899727191912.0701002728081
681922.5036349993754-3.50363499937545
69919.6986401539535-10.6986401539535
702022.814739515118-2.81473951511796
712817.715575514024510.2844244859755
721917.73484597813211.26515402186793
733022.53798832301517.4620116769849
742929.1322664156139-0.132266415613881
752621.70047882954954.29952117045048
762320.08786215711612.91213784288394
771322.0405247642595-9.04052476425948
782122.2714801955397-1.27148019553967
791921.6908490967628-2.69084909676285
802822.86904703889165.13095296110844
812325.3976847453734-2.39768474537341
821814.14232834722443.8576716527756
832122.0406148442709-1.04061484427091
842021.9668236869759-1.96682368697587
852319.69561513980683.30438486019325
862120.0582769481590.941723051841026
872122.1465277764837-1.14652777648374
881522.9326532228602-7.9326532228602
892827.15570725780470.844292742195257
901917.24268367388041.75731632611959
912620.16673776931825.83326223068183
921014.0917571047697-4.09175710476967
931618.0258569869123-2.02585698691232
942220.69312030940731.30687969059265
951919.1586469681539-0.158646968153896
963128.75329900268292.24670099731706
973127.11455214137143.88544785862862
982923.82432723942835.17567276057169
991918.10689048627130.893109513728712
1002218.45040815541983.54959184458023
1012322.21260927126440.787390728735574
1021516.3654648491145-1.36546484911445
1032023.0905260744088-3.09052607440877
1041819.4590764571501-1.45907645715011
1052321.72894243848781.27105756151219
1062519.95217571672795.04782428327214
1072116.66997441278124.33002558721882
1082419.29223249205964.70776750794042
1092524.53997964971420.460020350285787
1101718.4385752193267-1.43857521932672
1111314.138417248809-1.13841724880896
1122817.936023073165910.0639769268341
1132118.70716280467592.29283719532414
1142528.9136168761303-3.91361687613027
115917.776881901358-8.77688190135805
1161617.8012740491434-1.80127404914342
1171921.2206633917085-2.22066339170854
1181719.445273492466-2.44527349246603
1192523.75923442766791.24076557233213
1202014.90821266112625.09178733887383
1212922.29028774949896.7097122505011
1221418.4159921299277-4.41599212992771
1232226.5492269358502-4.54922693585019
1241516.4400769249615-1.44007692496149
1251927.765479525271-8.76547952527104
1262021.1678176564002-1.16781765640015
1271517.2187759762336-2.21877597623364
1282022.0712708109681-2.0712708109681
1291820.0650485389788-2.06504853897884
1303325.50719321463887.49280678536118
1312223.8319819566121-1.83198195661209
1321616.1581061045482-0.158106104548236
1331719.331915847776-2.33191584777595
1341615.2286058667490.77139413325102
1352117.99352880642383.00647119357618
1362629.3163687474651-3.31636874746508
1371820.4355091264752-2.43550912647522
1381822.5832417179526-4.58324171795257
1391718.6506868004316-1.65068680043158
1402224.5639614430524-2.56396144305244
1413024.64850677340885.35149322659116
1423027.36001154699822.63998845300177
1432428.2693642619644-4.26936426196441
1442121.8401508579456-0.840150857945623
1452124.6506413237422-3.65064132374216
1462927.12924719574971.87075280425034
1473123.02001024496277.9799897550373
1482019.11664252801350.883357471986517
1491616.1603669233113-0.160366923311333
1502219.11680987473312.88319012526692
1512021.2681143587145-1.26811435871451
1522826.29446157042351.70553842957646
1533825.989797724410312.0102022755897
1542220.9780956682941.02190433170595
1552024.9826336832755-4.98263368327548
1561718.9311226711803-1.9311226711803
1572824.31480712623363.68519287376636
1582223.5163093357837-1.51630933578374
1593128.81109720266452.18890279733554


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
150.1673306735913970.3346613471827940.832669326408603
160.1813006827470780.3626013654941560.818699317252922
170.09208547770820340.1841709554164070.907914522291797
180.09489469366947310.1897893873389460.905105306330527
190.1471147673734590.2942295347469180.852885232626541
200.09084625191809360.1816925038361870.909153748081906
210.1018011509740990.2036023019481990.8981988490259
220.2793826272127690.5587652544255370.720617372787231
230.2177892541291140.4355785082582290.782210745870886
240.6370565224420350.725886955115930.362943477557965
250.5579236869433830.8841526261132330.442076313056617
260.4962035276565050.992407055313010.503796472343495
270.4307644192076060.8615288384152130.569235580792394
280.3625053206789840.7250106413579680.637494679321016
290.2961480298661990.5922960597323970.703851970133802
300.23772980384370.47545960768740.7622701961563
310.3585838386966480.7171676773932960.641416161303352
320.343064406975450.68612881395090.65693559302455
330.3053737598589650.610747519717930.694626240141035
340.3607184686250890.7214369372501770.639281531374911
350.3769913910741250.753982782148250.623008608925875
360.3865886530650910.7731773061301830.613411346934909
370.6054887840516660.7890224318966680.394511215948334
380.7168479486441510.5663041027116980.283152051355849
390.6855114932213790.6289770135572410.314488506778621
400.637504345942410.7249913081151820.362495654057591
410.5857184859239580.8285630281520830.414281514076042
420.5279889565299890.9440220869400210.472011043470011
430.4982314770934790.9964629541869570.501768522906521
440.4692934575874860.9385869151749710.530706542412514
450.4181379915256210.8362759830512430.581862008474379
460.458460080703310.916920161406620.54153991929669
470.4201785136440550.8403570272881090.579821486355946
480.3966692693899440.7933385387798890.603330730610056
490.4797356657251340.9594713314502690.520264334274866
500.4420825189283250.884165037856650.557917481071675
510.4242866843146830.8485733686293660.575713315685317
520.3741789633473510.7483579266947030.625821036652649
530.3291271452170390.6582542904340780.670872854782961
540.2886243629803980.5772487259607970.711375637019602
550.2749883831747180.5499767663494370.725011616825282
560.2437753738362440.4875507476724880.756224626163756
570.2135191042361470.4270382084722930.786480895763853
580.1921711995755190.3843423991510390.80782880042448
590.1799374163051920.3598748326103850.820062583694807
600.1980516659256350.3961033318512690.801948334074365
610.2001441883679270.4002883767358550.799855811632073
620.169137677805530.3382753556110590.83086232219447
630.1583060566774270.3166121133548550.841693943322573
640.2049153464708090.4098306929416180.795084653529191
650.3646119176891380.7292238353782770.635388082310862
660.44043170732740.88086341465480.5595682926726
670.7390193680405530.5219612639188940.260980631959447
680.7201018379127610.5597963241744780.279898162087239
690.8742887526074140.2514224947851720.125711247392586
700.8588609194648060.2822781610703880.141139080535194
710.9462575913626790.1074848172746430.0537424086373213
720.9336776997536930.1326446004926150.0663223002463073
730.9558985922629750.08820281547405070.0441014077370254
740.9436799797351060.1126400405297870.0563200202648936
750.943425964151810.1131480716963810.0565740358481903
760.9369998156628730.1260003686742530.0630001843371267
770.9754342949418540.04913141011629240.0245657050581462
780.9685936912618310.06281261747633750.0314063087381688
790.9630437702390.07391245952200020.0369562297610001
800.9651866420811730.06962671583765430.0348133579188272
810.9584480842305970.08310383153880540.0415519157694027
820.9565941564547170.08681168709056560.0434058435452828
830.944372842060.1112543158799990.0556271579399993
840.9326014103552550.134797179289490.0673985896447448
850.924112168977960.151775662044080.0758878310220399
860.9096993079604780.1806013840790440.0903006920395218
870.8926522431535680.2146955136928630.107347756846432
880.941778537026440.1164429259471190.0582214629735597
890.9275669513054060.1448660973891870.0724330486945936
900.9112861845857290.1774276308285430.0887138154142713
910.9193526874626590.1612946250746820.0806473125373408
920.9168515515119850.166296896976030.0831484484880148
930.8978781592005970.2042436815988070.102121840799403
940.8760687123719420.2478625752561160.123931287628058
950.8481802650748170.3036394698503670.151819734925183
960.820821555798450.35835688840310.17917844420155
970.8320667033658750.3358665932682510.167933296634125
980.8414610416194060.3170779167611890.158538958380594
990.8124807370200430.3750385259599140.187519262979957
1000.7970868001772570.4058263996454870.202913199822743
1010.7593917373641180.4812165252717640.240608262635882
1020.7182029581584060.5635940836831880.281797041841594
1030.7233987143538630.5532025712922740.276601285646137
1040.682462380548130.635075238903740.31753761945187
1050.6367698083999790.7264603832000420.363230191600021
1060.6366172841078780.7267654317842440.363382715892122
1070.6384990168240350.723001966351930.361500983175965
1080.6767350339547830.6465299320904340.323264966045217
1090.6272971383849940.7454057232300120.372702861615006
1100.5854802511155040.8290394977689910.414519748884496
1110.5325589088973380.9348821822053230.467441091102662
1120.8547460822511630.2905078354976730.145253917748837
1130.8667090019647560.2665819960704880.133290998035244
1140.8939044855602580.2121910288794830.106095514439742
1150.9518147771653370.09637044566932620.0481852228346631
1160.9435922477656070.1128155044687850.0564077522343927
1170.957352543783820.08529491243235910.0426474562161796
1180.9512395599851810.09752088002963740.0487604400148187
1190.9376486074569860.1247027850860280.0623513925430142
1200.9645137652085410.0709724695829170.0354862347914585
1210.9593765253661740.08124694926765120.0406234746338256
1220.951255426462180.09748914707563950.0487445735378197
1230.961581386438170.07683722712365850.0384186135618292
1240.9459382872677870.1081234254644260.0540617127322129
1250.9472183533084850.105563293383030.0527816466915148
1260.9285183534781380.1429632930437250.0714816465218624
1270.9106318521691530.1787362956616930.0893681478308465
1280.8901745863055470.2196508273889050.109825413694453
1290.8516405323890120.2967189352219770.148359467610988
1300.8947015981463560.2105968037072890.105298401853644
1310.8595520956595840.2808958086808320.140447904340416
1320.8738180500203760.2523638999592480.126181949979624
1330.8803834541397040.2392330917205920.119616545860296
1340.8481923800842860.3036152398314280.151807619915714
1350.8195219577588390.3609560844823230.180478042241161
1360.7727203691333520.4545592617332960.227279630866648
1370.7002438739678610.5995122520642770.299756126032139
1380.8653328953820190.2693342092359620.134667104617981
1390.8385567670180540.3228864659638930.161443232981946
1400.775258519344050.4494829613119010.22474148065595
1410.7206650203515590.5586699592968830.279334979648442
1420.5968670637200070.8062658725599860.403132936279993
1430.6456771440655650.708645711868870.354322855934435
1440.4979123683821930.9958247367643850.502087631617807


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.00769230769230769OK
10% type I error level140.107692307692308NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927685768bw5mlbswt1umij/10q74v1292768664.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927685768bw5mlbswt1umij/10q74v1292768664.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927685768bw5mlbswt1umij/169eq1292768664.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927685768bw5mlbswt1umij/169eq1292768664.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927685768bw5mlbswt1umij/6576p1292768664.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927685768bw5mlbswt1umij/6576p1292768664.ps (open in new window)


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


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


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


 
Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by