Home » date » 2010 » Dec » 14 »

WS 10 - MR: Parental Expectations

*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, 14 Dec 2010 15:56:12 +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/14/t1292342077ynb0hvnxeinbuzx.htm/, Retrieved Tue, 14 Dec 2010 16:54:40 +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/14/t1292342077ynb0hvnxeinbuzx.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 25 11 7 8 25 23 0 17 6 17 8 30 25 0 18 8 12 9 22 19 0 16 10 12 7 22 29 0 20 10 11 4 25 25 0 16 11 11 11 23 21 0 18 16 12 7 17 22 0 17 11 13 7 21 25 0 30 12 16 10 19 18 0 23 8 11 10 15 22 0 18 12 10 8 16 15 0 21 9 9 9 22 20 0 31 14 17 11 23 20 0 27 15 11 9 23 21 0 21 9 14 13 19 21 0 16 8 15 9 23 24 0 20 9 15 6 25 24 0 17 9 13 6 22 23 0 25 16 18 16 26 24 0 26 11 18 5 29 18 0 25 8 12 7 32 25 0 17 9 17 9 25 21 0 32 12 18 12 28 22 0 22 9 14 9 25 23 0 17 9 16 5 25 23 0 20 14 14 10 18 24 0 29 10 12 8 25 23 0 23 14 17 7 25 21 0 20 10 12 8 20 28 0 11 6 6 4 15 16 0 26 13 12 8 24 29 0 22 10 12 8 26 27 0 14 15 13 8 14 16 0 19 12 14 7 24 28 0 20 11 11 8 25 25 0 28 8 12 7 20 22 0 19 9 9 7 21 23 0 30 9 15 9 27 26 0 29 15 18 11 23 23 0 26 9 15 6 25 25 0 23 10 12 8 20 21 0 21 12 14 9 22 24 0 28 11 13 6 25 22 0 23 14 13 10 25 27 0 18 6 11 8 17 26 0 20 8 16 10 25 24 0 21 10 11 5 26 24 0 28 12 16 14 27 22 0 10 5 8 6 19 24 0 22 10 15 6 22 20 0 31 10 21 12 32 26 0 29 13 18 12 21 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'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
PE[t] = + 6.09929709007711 -0.572369992530578Gender[t] + 0.0866727583352752CM[t] -0.106187261755795D[t] + 0.654214401976763PC[t] + 0.108281106271803PS[t] -0.0678164122781242O[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.099297090077111.7696163.44670.0007340.000367
Gender-0.5723699925305780.473541-1.20870.2286540.114327
CM0.08667275833527520.0481691.79940.0739460.036973
D-0.1061872617557950.088466-1.20030.2318840.115942
PC0.6542144019767630.0866737.548100
PS0.1082811062718030.0634971.70530.0901830.045092
O-0.06781641227812420.064065-1.05860.2914810.14574


Multiple Linear Regression - Regression Statistics
Multiple R0.642671903267808
R-squared0.413027175249867
Adjusted R-squared0.38985719532552
F-TEST (value)17.8259617228176
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.69132262201377
Sum Squared Residuals1100.96905327598


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1713.4790215593576-6.4790215593576
21713.72234850825713.27765149174287
31213.7915107685519-1.79151076855189
41211.4191978016350.580802198365016
51110.39935459697370.600645403026295
61114.580680552283-3.58068055228304
71210.88872910235861.11127089764138
81311.56266784105521.43733215894484
91614.80402231699151.19597768300851
101113.917671981468-2.91767198146803
111012.3341263310336-2.33412633103363
12913.8775253695238-4.8775253695238
131715.63002655432291.36997344567709
141113.8009030429944-2.80090304299436
151416.1017232463373-2.10172324633732
161513.38736429676251.61263570323748
171511.88178707496113.11821292503885
181311.3647418934181.63525810658196
191818.2222651603864-0.222265160386393
201812.37525759824045.6247424017596
211213.7657038619946-1.76570386199458
221713.787861242723.21213875728002
231816.98906094494931.0109390550507
241414.0855922098401-0.0855922098401114
251611.03537081025674.96462918974332
261413.20974063018660.7902593698134
271213.9318998544545-1.93189985445448
281712.46853267999914.53146732000087
291212.2713574366874-0.271357436687365
3069.57158546676449-3.57158546676449
311212.8381402142407-0.838140214240721
321213.1622060032669-1.16220600326686
331311.38449488760341.61550511239659
341411.7512201779512.24877982204905
351112.910024943125-1.91002494312496
361212.9297980985731-0.929798098573139
37912.0840207057935-3.08402070579355
381514.79208725223150.207912747768452
391815.14704453906222.85295546093781
401512.33400721269472.66599278730533
411213.0060905976401-1.00609059764006
421413.28769793514390.712302064856083
431312.4984274426880.501572557311992
441314.0242774122607-1.02427741226068
451112.3335504727808-1.33355047278083
461614.6048319446241.39516805537601
471111.3163392758357-0.316339275835669
481617.8425176092899-1.84251760928992
49810.7901219010008-2.79012190100075
501511.8953676601733.10463233982701
512117.27662148610033.72337851389967
521815.93270407656322.06729592343682
531312.83848845131740.161511548682574
541514.6393627204090.360637279591004
551914.49977044973424.50022955026582
561514.13399482742250.866005172577521
571110.87409901621050.125900983789524
581012.4456086390732-2.44560863907323
591314.8059967890816-1.8059967890816
601514.93389248576130.0661075142386731
611211.18346932274760.816530677252438
621615.84867507135710.151324928642902
631817.35612334869780.643876651302167
64815.0189613657897-7.01896136578966
651310.55394447631192.44605552368813
661714.1002690286282.89973097137198
67711.3849525033416-4.38495250334156
681211.47987285146520.520127148534764
691415.1343503541272-1.13435035412716
70610.9453886014034-4.94538860140342
71109.921338422271630.0786615777283697
721112.733927424575-1.73392742457503
731412.99614025282161.00385974717837
741113.826490122488-2.82649012248796
751315.4124474454009-2.41244744540086
761212.0724441259617-0.0724441259617144
7799.64270316779782-0.642703167797816
781210.90527152274911.09472847725091
791313.6653790889257-0.665379088925654
801216.4953887501336-4.49538875013357
81914.6418234657028-5.64182346570285
821515.615567730597-0.61556773059703
832421.37284877400452.62715122599552
841714.73385340816972.2661465918303
851112.1350932802317-1.13509328023167
861715.13691268397011.86308731602992
871112.3741427009632-1.37414270096319
881212.6195031885327-0.61950318853265
891414.508037579048-0.508037579048024
901114.3007187352311-3.30071873523108
911613.03200600703452.96799399296549
922113.97777896715797.02222103284213
931412.21924290133841.78075709866163
942016.41189790812763.58810209187241
951311.17553139915891.82446860084113
961514.05803065825640.941969341743591
971918.03903740306430.96096259693569
981114.8065442880252-3.80654428802522
991011.5440683590935-1.54406835909346
1001414.420286084643-0.420286084642973
1011111.8911781832088-0.891178183208771
102159.783839084004935.21616091599507
1031111.9133741348112-0.913374134811166
1041711.74497542734775.25502457265228
1051814.8887381007433.11126189925704
1061012.3501585876686-2.35015858766865
1071111.5061274240657-0.506127424065716
1081312.70904640906530.290953590934688
1091613.40494111103772.59505888896227
110911.2108387926253-2.21083879262526
111911.9036709506943-2.90367095069427
112912.6842645606492-3.68426456064922
113128.574566514198143.42543348580186
1141212.5793743281817-0.579374328181662
1151813.87677583917924.12322416082082
1161511.62193582491483.37806417508522
1171012.6877561431782-2.68775614317823
1181111.2566983658032-0.256698365803193
119912.6631943759128-3.6631943759128
12059.56115178365452-4.56115178365452
1211212.0113759446263-0.0113759446263311
1222422.08065921901481.91934078098524
1231411.1829377874652.81706221253502
12478.92387176737853-1.92387176737852
1251212.8359444948051-0.835944494805105
1261311.18162147273821.81837852726175
127812.5656846183953-4.56568461839533
128119.100417609992561.89958239000744
129911.4656711459218-2.46567114592177
1301113.3525901710125-2.35259017101251
1311312.95118457742680.0488154225732003
132109.213764643810420.786235356189582
133139.670830627939333.32916937206067
1341011.6569670688472-1.65696706884721
1351311.87190304637741.12809695362259
13689.53114877221546-1.53114877221546
1371611.2965241878724.703475812128
138911.0979015119945-2.09790151199452
1391211.10797185097620.892028149023793
1401411.74069727744232.25930272255766
14199.29770468570481-0.297704685704813
1421113.2030282700808-2.20302827008076
1431412.9812089603931.01879103960702
1441211.32244021900380.677559780996194
1451210.64219041346931.35780958653066
1461112.7748690638148-1.77486906381483
147129.63910067276212.36089932723789
148914.9363336552461-5.93633365524615
149910.6347008139448-1.63470081394476
1501512.84964445244282.15035554755715
15189.23522101476318-1.23522101476318
15289.99139579684937-1.99139579684937
1531712.04016335006344.95983664993658
1541110.04298936834810.957010631651875
1551211.69161783879550.308382161204532
1562014.26547612415415.73452387584586
1571212.6851048500236-0.685104850023614
15879.6716274431671-2.6716274431671
1591112.6720105380155-1.67201053801552


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.9667794115385580.0664411769228850.0332205884614425
110.9401690917425640.1196618165148710.0598309082574355
120.9399650180156250.1200699639687490.0600349819843745
130.9334236825872850.1331526348254290.0665763174127147
140.9185392318079070.1629215363841860.081460768192093
150.8768216469454610.2463567061090770.123178353054539
160.8559377939852030.2881244120295950.144062206014797
170.8520723870326130.2958552259347750.147927612967387
180.8086760491813110.3826479016373780.191323950818689
190.7573707737505390.4852584524989230.242629226249461
200.835883321842470.3282333563150590.164116678157529
210.8552586279793340.2894827440413310.144741372020666
220.8634220683118470.2731558633763060.136577931688153
230.8321987125813620.3356025748372750.167801287418638
240.7827185322272740.4345629355454520.217281467772726
250.8185384355395380.3629231289209250.181461564460462
260.7855259729379950.428948054124010.214474027062005
270.753717959509320.492564080981360.24628204049068
280.7686213149810160.4627573700379690.231378685018984
290.7174401690190460.5651196619619080.282559830980954
300.7218244434268540.5563511131462930.278175556573146
310.6839820840901750.6320358318196490.316017915909825
320.6486357477424330.7027285045151330.351364252257567
330.6041483546172430.7917032907655130.395851645382757
340.5603915278897290.8792169442205410.439608472110271
350.5591054326778740.8817891346442510.440894567322126
360.5132488701059650.973502259788070.486751129894035
370.5159550586069980.9680898827860030.484044941393002
380.4650313163818680.9300626327637360.534968683618132
390.4705575740072480.9411151480144960.529442425992752
400.4630777154148130.9261554308296260.536922284585187
410.4099883902679110.8199767805358210.590011609732089
420.35973877192050.7194775438410010.6402612280795
430.3122247653376360.6244495306752720.687775234662364
440.2872385214582780.5744770429165560.712761478541722
450.2593590594897080.5187181189794160.740640940510292
460.2399957832693580.4799915665387150.760004216730642
470.2162531702703830.4325063405407660.783746829729617
480.1892358649189610.3784717298379220.810764135081039
490.1769353851224260.3538707702448510.823064614877575
500.1848624504748730.3697249009497460.815137549525127
510.2163345239519370.4326690479038730.783665476048063
520.2192423340649870.4384846681299740.780757665935013
530.1875779209990490.3751558419980980.81242207900095
540.1568551533100950.3137103066201890.843144846689905
550.2512785627091810.5025571254183620.748721437290819
560.2257005787753670.4514011575507340.774299421224633
570.1928754894110070.3857509788220140.807124510588993
580.1801293755794530.3602587511589050.819870624420547
590.15811083518220.3162216703643990.8418891648178
600.1302545878709660.2605091757419320.869745412129034
610.1190821918161730.2381643836323460.880917808183827
620.1121553434868530.2243106869737070.887844656513147
630.09731479394418230.1946295878883650.902685206055818
640.2524944886772360.5049889773544730.747505511322764
650.2459663059275880.4919326118551760.754033694072412
660.2625677157042390.5251354314084780.737432284295761
670.3937198314560510.7874396629121020.606280168543949
680.3503612912266640.7007225824533280.649638708773336
690.3192560399584560.6385120799169130.680743960041544
700.4246173047462420.8492346094924840.575382695253758
710.3787048799695070.7574097599390130.621295120030493
720.3569426490872280.7138852981744560.643057350912772
730.3239375068181680.6478750136363350.676062493181832
740.3484946193361730.6969892386723460.651505380663827
750.3416613707258680.6833227414517370.658338629274132
760.3071100644071450.6142201288142890.692889935592855
770.2764527148941960.5529054297883930.723547285105804
780.2407064435982450.481412887196490.759293556401755
790.2085678841847580.4171357683695160.791432115815242
800.2722284444655670.5444568889311350.727771555534433
810.4307391938084350.8614783876168690.569260806191565
820.3918419779499650.7836839558999290.608158022050036
830.4056105247681980.8112210495363950.594389475231802
840.3810401786663720.7620803573327440.618959821333628
850.3541353885272630.7082707770545270.645864611472737
860.326101693386740.652203386773480.67389830661326
870.3097715384375170.6195430768750340.690228461562483
880.2972601352631930.5945202705263850.702739864736807
890.2825939723785930.5651879447571850.717406027621407
900.3803626439039240.7607252878078480.619637356096076
910.3561832321506620.7123664643013240.643816767849338
920.5498109139542940.9003781720914120.450189086045706
930.5135215338909160.9729569322181680.486478466109084
940.5233855286993410.9532289426013180.476614471300659
950.4880074835922130.9760149671844260.511992516407787
960.4420933680988050.884186736197610.557906631901195
970.3974961492235940.7949922984471880.602503850776406
980.4062924256725140.8125848513450290.593707574327486
990.3855886112095180.7711772224190350.614411388790482
1000.3562944688834370.7125889377668740.643705531116563
1010.3210498506556120.6420997013112250.678950149344388
1020.4996598236817980.9993196473635970.500340176318202
1030.4933325823057170.9866651646114340.506667417694283
1040.6410496093524230.7179007812951540.358950390647577
1050.634111632474520.731776735050960.36588836752548
1060.63551033912770.72897932174460.3644896608723
1070.5903610057272760.8192779885454470.409638994272724
1080.5408747160449790.9182505679100420.459125283955021
1090.5357271362127540.9285457275744920.464272863787246
1100.5087908650117740.9824182699764520.491209134988226
1110.4953861806797960.9907723613595910.504613819320204
1120.4982255315809640.9964510631619280.501774468419036
1130.5141658586262850.971668282747430.485834141373715
1140.4662907252514630.9325814505029260.533709274748537
1150.5818875701868690.8362248596262630.418112429813131
1160.5645035422583990.8709929154832010.435496457741601
1170.5536476652000420.8927046695999150.446352334799958
1180.500353120250660.999293759498680.49964687974934
1190.4894400426326180.9788800852652360.510559957367382
1200.5634574661965120.8730850676069770.436542533803488
1210.5061953960784360.9876092078431280.493804603921564
1220.476912764656410.953825529312820.52308723534359
1230.4832070661153030.9664141322306060.516792933884697
1240.4441152005943940.8882304011887870.555884799405606
1250.3870426898855840.7740853797711670.612957310114416
1260.3611893988664490.7223787977328980.638810601133551
1270.4583744266963940.9167488533927880.541625573303606
1280.4181023830218590.8362047660437180.581897616978141
1290.3750845213376910.7501690426753820.624915478662309
1300.3577909208988010.7155818417976030.642209079101199
1310.2985071474856110.5970142949712220.701492852514389
1320.2518341276890380.5036682553780770.748165872310962
1330.3124917336698820.6249834673397650.687508266330118
1340.2642867195479780.5285734390959570.735713280452022
1350.2159266273668410.4318532547336820.784073372633159
1360.2088819140361790.4177638280723570.791118085963821
1370.2734858380869860.5469716761739720.726514161913014
1380.2204604816526220.4409209633052430.779539518347378
1390.1705978353885910.3411956707771810.82940216461141
1400.1377929074939410.2755858149878830.862207092506059
1410.09711575324933880.1942315064986780.902884246750661
1420.07724996281271930.1544999256254390.922750037187281
1430.0501022210135510.1002044420271020.94989777898645
1440.03091095766102680.06182191532205350.969089042338973
1450.02008999260857750.0401799852171550.979910007391423
1460.01622641833429630.03245283666859260.983773581665704
1470.01420330926847970.02840661853695940.98579669073152
1480.2091732490391850.418346498078370.790826750960815
1490.1803040930647310.3606081861294610.81969590693527


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.0214285714285714OK
10% type I error level50.0357142857142857OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/101njx1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/101njx1292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/1um431292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/1um431292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/25v3o1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/25v3o1292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/35v3o1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/35v3o1292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/45v3o1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/45v3o1292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/5g5391292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/5g5391292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/6g5391292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/6g5391292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/7qwkc1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/7qwkc1292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/81njx1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/81njx1292342161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/91njx1292342161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292342077ynb0hvnxeinbuzx/91njx1292342161.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by