Home » date » 2010 » Dec » 19 »

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


Multiple Linear Regression - Estimated Regression Equation
Organization[t] = + 16.5347825860486 -0.0891335605069494ConcernOverMistakes[t] + 0.209717480920555DoubtsAboutActions[t] -0.136972411791539ParentalExpectations[t] -0.287847153125504ParentalCriticism[t] + 0.433155311009048PersonalStandards[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16.53478258604862.005388.245200
ConcernOverMistakes-0.08913356050694940.061483-1.44970.1491790.074589
DoubtsAboutActions0.2097174809205550.1124541.86490.0641070.032054
ParentalExpectations-0.1369724117915390.104781-1.30720.1930950.096548
ParentalCriticism-0.2878471531255040.131542-2.18830.0301680.015084
PersonalStandards0.4331553110090480.0753675.747300


Multiple Linear Regression - Regression Statistics
Multiple R0.475311447164505
R-squared0.225920971805616
Adjusted R-squared0.200624271537826
F-TEST (value)8.93084747868384
F-TEST (DF numerator)5
F-TEST (DF denominator)153
p-value1.83604021986028e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.49245950232918
Sum Squared Residuals1866.18282643764


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12622.76648696377373.23351303622630
22324.1806345311823-1.18063453118232
32524.6411680477650.358831952235021
42322.00443783422260.995562165777394
51921.9032418668590-2.90324186685895
62923.07663825596505.92336174403504
72525.0200838181324-0.0200838181323613
82122.7050948471841-1.70509484718409
92221.99089946542920.00910053457084511
102522.6270944535782.37290554642202
112420.06920925294023.93079074705976
121819.5373063311390-1.53730633113897
132218.27461214592693.72538785407310
141520.7049719011955-5.70497190119546
152223.6577698670676-1.65776986706755
162824.79326839151663.20673160848343
172022.2564759016333-2.25647590163327
181219.1302196252245-7.13021962522446
192421.61580699313842.38419300686164
202021.1754094115923-1.17540941159228
212123.1391899115409-2.13918991154088
222020.3241606581029-0.324160658102906
232119.12075929714641.87924070285358
242320.83198119846432.16801880153567
252822.00176969201265.99823030798739
262422.10374706350731.89625293649272
272423.68678238379460.313217616205359
282420.40912032144003.59087967856003
292322.07484608060360.925153919396356
302322.92866195587140.0713380441285757
312924.36180009343664.63819990656336
322421.85290349208322.14709650791683
331825.1809671443811-7.18096714438113
342526.1865543596518-1.18655435965179
352122.8166967823559-1.8166967823559
362626.6396577389406-0.639657738940561
372225.0687814628218-3.06878146282179
382223.0122615742149-1.01226157421491
392222.4077978793724-0.407797879372415
402325.7259583503069-2.72595835030686
413022.80401720696737.19598279303271
422322.78194621519580.21805378480423
431718.7343642583786-1.73436425837856
442324.1050578066495-1.10505780664945
452324.4388229284309-1.43882292843093
462522.56802141496102.43197858503904
472420.68886641062363.31113358937640
482427.4305551496196-3.43055514961965
492322.92952074927630.070479250723737
502123.906177130168-2.90617713016798
512425.6991111893451-1.69911118934514
522421.96765118989602.03234881010404
532821.56594623879366.43405376120643
541621.3367248878799-5.3367248878799
552019.66716112398280.332838876017181
562923.39291856254975.60708143745027
572723.98661098383403.01338901616604
582223.6577698670676-1.65776986706755
592824.35242357356533.64757642643469
601620.4134307285922-4.41343072859221
612523.06840353030451.93159646969545
622423.64815581678230.351844183217722
632923.07663825596505.92336174403504
642424.3660295406460-0.366029540645974
652323.0246404040221-0.0246404040220633
663027.01262879100222.98737120899776
672421.16932514518572.83067485481435
682124.3404770836518-3.34047708365176
692523.59205166595671.40794833404329
702524.07841268655090.9215873134491
712220.72128994602241.27871005397763
722322.57728201788910.422717982110868
732622.79821594136673.20178405863327
742321.42642160173521.57357839826481
752523.15198102075291.84801897924705
762121.2985455572727-0.298545557272719
772523.90062829149291.09937170850705
782422.20076628543721.79923371456276
792923.64792551775185.35207448224815
802223.6670936851632-1.66709368516324
812723.59052531795763.40947468204237
822619.74284991488966.25715008511036
832221.32611991732710.67388008267286
842422.18870387858051.81129612141947
852723.11569127648863.88430872351144
862421.42648766516652.57351233483348
872525.0200838181324-0.0200838181323613
882924.56086713341234.43913286658771
892222.0294273277232-0.0294273277232355
902120.64346101939890.356538980601123
912420.29660404282393.70339595717613
922422.09912308166841.90087691833160
932322.10719072346590.892809276534094
942022.4187668106742-2.41876681067415
952721.43979573492955.56020426507046
962623.39920048669982.60079951330017
972521.71514529304093.28485470695908
982119.85282886475051.14717113524952
992120.86689884948740.13310115051263
1001920.3843960839700-1.38439608397003
1012121.6113999486742-0.611399948674236
1022121.5250005938086-0.525000593808609
1031819.5373063311390-1.53730633113897
1042220.77132216734981.22867783265022
1052921.69869358649557.30130641350453
1061521.6601962980819-6.66019629808195
1071720.752859071136-3.75285907113600
1081519.8538724867936-4.85387248679362
1092121.551000287208-0.551000287208005
1102121.0821345952024-0.0821345952024031
1111919.4593614875723-0.45936148757232
1122417.86785391121066.1321460887894
1132022.3373747364798-2.33737473647981
1141725.3030797285071-8.30307972850713
1152325.2902914675589-2.29029146755886
1162422.66276987757431.33723012242572
1171422.2971243717058-8.29712437170584
1182322.00443783422260.995562165777394
1192422.1266945934591.87330540654099
1201320.4428548023190-7.44285480231896
1212225.4086442126656-3.40864421266558
1221621.2988463028542-5.29884630285418
1231923.2548393135475-4.25483931354754
1242522.98970785648742.01029214351255
1252524.15483609778870.845163902211323
1262321.52395697176551.47604302823453
1272423.88382313759040.116176862409606
1282623.64525737554192.35474262445815
1292621.61557669410794.38442330589207
1302523.98198415373131.01801584626873
1311822.3295039715684-4.32950397156836
1322119.98014175586461.01985824413538
1332623.92360924358912.07639075641095
1342322.19904074483880.800959255161207
1352319.74419143425043.25580856574957
1362222.5877555839845-0.5877555839845
1372022.5159047978111-2.51590479781109
1381322.1719840677406-9.17198406774058
1392421.55922011635682.44077988364315
1401521.4439064169319-6.44390641693191
1411422.9360165726826-8.93601657268255
1422224.005831853021-2.00583185302099
1431017.3836024524525-7.38360245245252
1442424.5069589122326-0.506958912232648
1452221.85702753574120.142972464258784
1462425.7668029748602-1.76680297486023
1471921.5688269352586-2.56882693525861
1482022.2142036337991-2.21420363379910
1491317.0933627366848-4.09336273668483
1502020.1186050261045-0.118605026104472
1512223.3848509207522-1.38485092075223
1522423.29591423713130.704085762868665
1532923.12475287667215.87524712332788
1541221.046555808518-9.046555808518
1552020.9732699037905-0.973269903790477
1562022.2564759016333-2.25647590163327
1572423.56134133424790.438658665752077
1582221.89653064093380.103469359066198
1591819.5373063311390-1.53730633113897


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.7268483946590580.5463032106818830.273151605340941
100.600314849064070.799370301871860.39968515093593
110.4916247042037050.983249408407410.508375295796295
120.4470696000147070.8941392000294130.552930399985293
130.4558621957449120.9117243914898250.544137804255088
140.6964012818731970.6071974362536050.303598718126803
150.628429535846780.743140928306440.37157046415322
160.5747475401002460.8505049197995070.425252459899754
170.5087322170083520.9825355659832950.491267782991648
180.6393547816401710.7212904367196580.360645218359829
190.5638629122667360.8722741754665280.436137087733264
200.5686787574743610.8626424850512780.431321242525639
210.5203614416716550.959277116656690.479638558328345
220.4509487925941010.9018975851882010.549051207405899
230.392229986552580.784459973105160.60777001344742
240.3936224598818010.7872449197636030.606377540118199
250.5374741062572130.9250517874855740.462525893742787
260.4742091135602350.948418227120470.525790886439765
270.410331482187860.820662964375720.58966851781214
280.4037994372895860.8075988745791720.596200562710414
290.3426704957631690.6853409915263380.657329504236831
300.2857401663162860.5714803326325720.714259833683714
310.3096852446005350.619370489201070.690314755399465
320.2618597146785720.5237194293571430.738140285321428
330.4903210826783450.980642165356690.509678917321655
340.4443221278100050.888644255620010.555677872189995
350.4103750443051120.8207500886102230.589624955694888
360.3542303702766250.708460740553250.645769629723375
370.330785150230990.661570300461980.66921484976901
380.2814969229766770.5629938459533530.718503077023323
390.2360676220129690.4721352440259370.763932377987031
400.2130402598375310.4260805196750610.78695974016247
410.3680176419941020.7360352839882040.631982358005898
420.3173960145181000.6347920290362010.6826039854819
430.2853925973433020.5707851946866030.714607402656698
440.2438861485669190.4877722971338380.756113851433081
450.2109446527922050.4218893055844090.789055347207795
460.1891441629389780.3782883258779570.810855837061022
470.1774214198492490.3548428396984970.822578580150751
480.163813152803160.327626305606320.83618684719684
490.1338707810060780.2677415620121560.866129218993922
500.1250045591371710.2500091182743430.874995440862829
510.1031039854946650.2062079709893290.896896014505335
520.087213622083370.174427244166740.91278637791663
530.1452113512226600.2904227024453190.85478864877734
540.1807971009673840.3615942019347680.819202899032616
550.1741925993944190.3483851987888390.825807400605581
560.2334209343574700.4668418687149390.76657906564253
570.2233558041078280.4467116082156550.776644195892172
580.1987101699067780.3974203398135550.801289830093223
590.2070112362870920.4140224725741830.792988763712908
600.2351711409207330.4703422818414670.764828859079267
610.207231844217470.414463688434940.79276815578253
620.1746046640250850.3492093280501690.825395335974915
630.2358979087015810.4717958174031620.764102091298419
640.2021770343538680.4043540687077360.797822965646132
650.1698747762863850.3397495525727700.830125223713615
660.1640881580249420.3281763160498850.835911841975058
670.1517353679752280.3034707359504570.848264632024772
680.1536353785954870.3072707571909740.846364621404513
690.1315023798990800.2630047597981590.86849762010092
700.1090797975428540.2181595950857080.890920202457146
710.09053404349227230.1810680869845450.909465956507728
720.07298589843747380.1459717968749480.927014101562526
730.06934644202018270.1386928840403650.930653557979817
740.05725433593516020.1145086718703200.94274566406484
750.04797233387182580.09594466774365160.952027666128174
760.03771724150878510.07543448301757020.962282758491215
770.02992413927432540.05984827854865080.970075860725675
780.02431495724274100.04862991448548210.97568504275726
790.03494899556636450.0698979911327290.965051004433636
800.02843504589399740.05687009178799480.971564954106003
810.02808183961730170.05616367923460340.971918160382698
820.04781995799572650.0956399159914530.952180042004273
830.03766606920516090.07533213841032180.96233393079484
840.03161656658397480.06323313316794960.968383433416025
850.03451704331463040.06903408662926070.96548295668537
860.03052603301084940.06105206602169870.96947396698915
870.02329270986274490.04658541972548990.976707290137255
880.0290734483222680.0581468966445360.970926551677732
890.02344701354720490.04689402709440980.976552986452795
900.01789377252853860.03578754505707720.982106227471461
910.01855456243059830.03710912486119660.981445437569402
920.01576675977433150.03153351954866310.984233240225668
930.01214223162382930.02428446324765860.98785776837617
940.01034066633790130.02068133267580250.989659333662099
950.01861534463886330.03723068927772670.981384655361137
960.01722230525399880.03444461050799760.982777694746
970.01732523817562280.03465047635124560.982674761824377
980.01401784768940080.02803569537880160.9859821523106
990.01057774261727940.02115548523455880.98942225738272
1000.008290707577586930.01658141515517390.991709292422413
1010.006287672181724490.01257534436344900.993712327818276
1020.004563472435955480.009126944871910950.995436527564045
1030.003495946765913500.0069918935318270.996504053234087
1040.002784379430084680.005568758860169370.997215620569915
1050.01264798794619800.02529597589239600.987352012053802
1060.02714358567127760.05428717134255520.972856414328722
1070.02729956664031570.05459913328063150.972700433359684
1080.03315694251353880.06631388502707760.966843057486461
1090.02635022341468760.05270044682937520.973649776585312
1100.01963040879085560.03926081758171110.980369591209144
1110.01453143032254220.02906286064508450.985468569677458
1120.04479217979368680.08958435958737370.955207820206313
1130.0413624968562450.082724993712490.958637503143755
1140.1160289674512950.232057934902590.883971032548705
1150.09983303865396840.1996660773079370.900166961346032
1160.0807655180800080.1615310361600160.919234481919992
1170.2549339508391210.5098679016782420.745066049160879
1180.2407470193369320.4814940386738650.759252980663068
1190.2308545022098190.4617090044196380.769145497790181
1200.3338017846389630.6676035692779250.666198215361037
1210.3341792585605650.668358517121130.665820741439435
1220.3948415854920940.7896831709841880.605158414507906
1230.3864549453925170.7729098907850340.613545054607483
1240.3705847799315720.7411695598631430.629415220068428
1250.3689565624863860.7379131249727720.631043437513614
1260.319062144504580.638124289009160.68093785549542
1270.2792817225108470.5585634450216940.720718277489153
1280.2721279957357000.5442559914713990.7278720042643
1290.3488870707300440.6977741414600880.651112929269956
1300.3376205633211510.6752411266423010.662379436678849
1310.3095701759641840.6191403519283670.690429824035816
1320.2872704025147530.5745408050295050.712729597485247
1330.2437652948643840.4875305897287670.756234705135616
1340.1982145650555920.3964291301111850.801785434944408
1350.3112704491677680.6225408983355350.688729550832232
1360.2557466281704800.5114932563409610.74425337182952
1370.2074961444085380.4149922888170760.792503855591462
1380.4753649295422970.9507298590845950.524635070457703
1390.5198890072260820.9602219855478370.480110992773918
1400.4809826607270560.9619653214541120.519017339272944
1410.6569272130513820.6861455738972350.343072786948618
1420.614349810101730.771300379796540.38565018989827
1430.822604607339490.3547907853210190.177395392660509
1440.8096787187304430.3806425625391150.190321281269557
1450.7287521342812280.5424957314375450.271247865718772
1460.6633739554793370.6732520890413250.336626044520663
1470.7061530506931910.5876938986136180.293846949306809
1480.6290319692634530.7419360614730940.370968030736547
1490.8145517815501860.3708964368996280.185448218449814
1500.9085437703704110.1829124592591780.0914562296295889


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.0211267605633803NOK
5% type I error level210.147887323943662NOK
10% type I error level390.274647887323944NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t129276690367o81fla4hk4pha/109nbx1292767023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129276690367o81fla4hk4pha/109nbx1292767023.ps (open in new window)


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


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


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t129276690367o81fla4hk4pha/89nbx1292767023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129276690367o81fla4hk4pha/89nbx1292767023.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129276690367o81fla4hk4pha/99nbx1292767023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129276690367o81fla4hk4pha/99nbx1292767023.ps (open in new window)


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