Home » date » 2010 » Dec » 02 »

*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: Thu, 02 Dec 2010 19:12:54 +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/02/t1291317117hj56tl15d6t1fp5.htm/, Retrieved Thu, 02 Dec 2010 20:12:08 +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/02/t1291317117hj56tl15d6t1fp5.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 «
9 24 14 11 12 24 26 9 25 11 7 8 25 23 9 17 6 17 8 30 25 9 18 12 10 8 19 23 9 18 8 12 9 22 19 9 16 10 12 7 22 29 10 20 10 11 4 25 25 10 16 11 11 11 23 21 10 18 16 12 7 17 22 10 17 11 13 7 21 25 10 23 13 14 12 19 24 10 30 12 16 10 19 18 10 23 8 11 10 15 22 10 18 12 10 8 16 15 10 15 11 11 8 23 22 10 12 4 15 4 27 28 10 21 9 9 9 22 20 10 15 8 11 8 14 12 10 20 8 17 7 22 24 10 31 14 17 11 23 20 10 27 15 11 9 23 21 10 34 16 18 11 21 20 10 21 9 14 13 19 21 10 31 14 10 8 18 23 10 19 11 11 8 20 28 10 16 8 15 9 23 24 10 20 9 15 6 25 24 10 21 9 13 9 19 24 10 22 9 16 9 24 23 10 17 9 13 6 22 23 10 24 10 9 6 25 29 10 25 16 18 16 26 24 10 26 11 18 5 29 18 10 25 8 12 7 32 25 10 17 9 17 9 25 21 10 32 16 9 6 29 26 10 33 11 9 6 28 22 10 13 16 12 5 17 22 10 32 12 18 12 28 22 10 25 12 12 7 29 23 10 29 14 18 10 26 30 10 22 9 14 9 25 23 10 18 10 15 8 14 17 10 17 9 16 5 25 23 10 20 10 10 8 26 23 10 15 12 11 8 20 25 10 20 14 14 10 18 24 10 33 14 9 6 32 24 10 29 10 12 8 25 23 10 23 14 17 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
PersonalStandards[t] = + 22.4503451046685 -1.49932963098338month[t] + 0.330887218059848ConcernoverMistakes[t] -0.356681047835005Doubtsaboutactions[t] + 0.198030325271138ParentalExpectations[t] + 0.00613248856872935ParentalCriticism[t] + 0.393045515742641`Organization `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)22.450345104668514.5969821.5380.1261250.063062
month-1.499329630983381.442617-1.03930.300310.150155
ConcernoverMistakes0.3308872180598480.0555925.952100
Doubtsaboutactions-0.3566810478350050.107249-3.32570.0011060.000553
ParentalExpectations0.1980303252711380.1017141.94690.0533850.026693
ParentalCriticism0.006132488568729350.1296540.04730.9623370.481169
`Organization `0.3930455157426410.0721895.444700


Multiple Linear Regression - Regression Statistics
Multiple R0.60953344822544
R-squared0.371531024505596
Adjusted R-squared0.346723038630816
F-TEST (value)14.9762671738422
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value2.02393657389166e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.40838004054157
Sum Squared Residuals1765.79228411584


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12424.37524383968-0.375243839679987
22523.78038639865771.21961360134230
33025.68308817755064.31691182244938
41921.7015858002172-2.70158580021719
52221.95832106769760.0416789323023574
62224.5013747161969-2.50137471619689
72522.5369841035052.46301589649499
82319.32749954044123.67250045955884
91718.7724146241247-1.77241462412469
102121.6020995177389-0.602099517738928
111922.7097079828002-3.70970798280015
121923.4081221360031-4.40812213600306
131523.100666237539-8.10066623753901
141617.0578920432927-1.05789204329267
152319.37126037241783.62873962758224
162724.00123049434872.99876950565127
172220.89392658298801.10607341701197
181416.5108483584964-2.51084835849636
192224.0638801007654-2.06388010076539
202324.0159011037181-1.01590110371805
212321.5282697706221.47173022937799
222124.4932309874987-3.49323098749872
231922.3016536793613-3.30165367936128
241823.7904279083418-5.79042790834182
252023.053082339113-3.053082339113
262322.35653555512120.643464444878814
272523.30500591381941.69499408618061
281923.2582299470431-4.25822994704315
292423.79016262517380.209837374826234
302221.52323809335490.476761906645076
312525.0489193653102-0.0489193653101547
322623.11809053077432.8819094692257
332922.80665251929736.1933474807027
343225.12121008045166.87878991954841
352521.54766582866043.45233417133962
362924.3767942755514.62320572444901
372824.91890466981533.08109533018471
381717.105713556688-0.105713556687991
392826.05040426277311.94959573722694
402922.90839485762636.09160514237371
412627.4764796617272-1.47647966172718
422523.39410197463151.60589802536851
431419.5474967968037-5.54749679680365
442522.11119658059962.88880341940039
452621.57739270102354.42260729897649
462020.1937158718107-0.193715871810681
471821.3481003036481-3.34810030364814
483224.63495255779567.36504744220444
492524.95143831410440.0485616858955814
502521.7373189207073.26268107929301
512320.80099365748462.19900634251539
522122.0614054790237-1.06140547902374
532023.938680930279-3.93868093027899
541516.4581620642669-1.45816206426694
553026.60473041056513.39526958943494
562425.2470066108757-1.24700661087571
572624.20740985065601.79259014934395
582421.68490395071842.31509604928158
592221.34694474867460.653055251325386
601415.6514365191043-1.65143651910432
612422.12969626527531.87030373472474
622422.88315143350201.11684856649805
632423.28435977852270.715640221477318
642419.84869247516794.15130752483210
651918.44815337999000.551846620010022
663126.73358743494834.2664125650517
672226.5215900363656-4.52159003636563
682721.41118647512685.5888135248732
691917.6414162132081.35858378679201
702522.20483300994492.79516699005507
712024.9347351874032-4.93473518740321
722121.3990237169588-0.3990237169588
732727.4183665916093-0.418366591609338
742324.3746124922624-1.37461249226241
752525.6833747379211-0.683374737921115
762022.1800239742600-2.18002397426005
772119.20237501342581.79762498657421
782222.3862171288093-0.386217128809271
792322.89141648174950.108583518250498
802524.05658988060060.943410119399396
812523.32186817978451.67813182021553
821723.7195093287429-6.71950932874289
831921.3959632834841-2.39596328348412
842523.88424724120041.11575275879955
851922.3010541105851-3.30105411058514
862023.1266938500491-3.12669385004909
872622.48095829439093.51904170560905
882320.65647518856902.34352481143104
892724.34305971712882.65694028287115
901720.8503426134519-3.85034261345193
911723.3211586348698-6.32115863486977
921920.0366456476630-1.03664564766296
931719.6807349899718-2.68073498997179
942222.0379172391335-0.0379172391335114
952123.3856638961778-2.38566389617783
963228.59915217916723.40084782083280
972124.6614106338104-3.66141063381038
982124.3080160450159-3.30801604501587
991821.2070236612869-3.20702366128693
1001821.2610760499861-3.26107604998605
1012322.78637992721090.213620072789081
1021920.5907043961488-1.59070439614882
1032020.9772930432377-0.977293043237723
1042122.2383514483243-1.23835144832433
1052023.7118985607275-3.71189856072748
1061718.8403733336065-1.84037333360655
1071820.2572364317288-2.25723643172879
1081920.7196144481076-1.71961444810765
1092222.0275626605593-0.0275626605593270
1101518.7557114974235-3.75571149742348
1111418.7922903692776-4.79229036927756
1121826.5436099628167-8.54360996281669
1132421.26287260796052.73712739203951
1143523.546238908247211.4537610917528
1152918.986694308869110.0133056911309
1162121.935944950304-0.935944950303993
1172520.52203230951794.47796769048213
1182018.44557263362981.5544273663702
1192223.1944342306498-1.19443423064979
1201316.8696658909449-3.8696658909449
1212623.18703016989622.81296983010383
1221716.87399789660450.126002103395526
1232520.05077964962344.94922035037664
1242020.6180234596576-0.618023459657552
1251918.06359289698790.936407103012104
1262122.6069239300865-1.60692393008647
1272221.0048342678620.995165732137998
1282422.59787852568761.40212147431243
1292122.893008601785-1.89300860178502
1302625.43632370121790.563676298782062
1312420.52974695211463.4702530478854
1321620.2204944956761-4.22049449567611
1332322.30018150147180.699818498528157
1341820.7446456449081-2.74464564490807
1351622.3043405696256-6.30434056962563
1362624.09219557998381.90780442001622
1371919.0502342475757-0.0502342475756936
1382116.87202447618954.12797552381047
1392122.0933317973676-1.09333179736762
1402218.4514829610833.54851703891702
1412319.73023321189583.26976678810421
1422924.78227387370254.21772612629751
1432119.21064009388921.78935990611077
1442119.90543175413141.09456824586862
1452321.84980100243991.15019899756014
1462722.99410224042844.00589775957157
1472525.3939958500130-0.393995850012971
1482120.9468350383330.0531649616670011
1491017.0822628583037-7.08226285830371
1502022.5777789638073-2.5777789638073
1512622.45855314262573.54144685737425
1522423.66563162586170.334368374138264
1532931.7071557621354-2.70715576213540
1541919.0522038357562-0.0522038357562483
1552422.05254080151561.94745919848439
1561920.7371470618696-1.73714706186964
1572423.38884209517610.611157904823943
1582221.77849508138870.221504918611301
1591723.7292621014340-6.72926210143396


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.1677148899669330.3354297799338650.832285110033067
110.4762109914426040.9524219828852080.523789008557396
120.4057761244159410.8115522488318830.594223875584059
130.8306431499475920.3387137001048150.169356850052408
140.7534802294243570.4930395411512870.246519770575643
150.73548793031510.5290241393698010.264512069684901
160.6537743989601620.6924512020796750.346225601039838
170.5933666357617280.8132667284765440.406633364238272
180.5769492006105410.8461015987789180.423050799389459
190.5002669581646210.9994660836707570.499733041835379
200.4965359656994510.9930719313989020.503464034300549
210.4927379940793450.985475988158690.507262005920655
220.4229006680720170.8458013361440340.577099331927983
230.3622428019239970.7244856038479950.637757198076003
240.3804030082690290.7608060165380590.61959699173097
250.3492601296197740.6985202592395470.650739870380226
260.2883000589943060.5766001179886110.711699941005694
270.2476443270884610.4952886541769230.752355672911539
280.2392792452215420.4785584904430840.760720754778458
290.1979242097405860.3958484194811720.802075790259414
300.1541724074902810.3083448149805630.845827592509719
310.1260052355241870.2520104710483740.873994764475813
320.1610260650248540.3220521300497080.838973934975146
330.2698306374760940.5396612749521870.730169362523906
340.5483485114667850.9033029770664310.451651488533216
350.5271291365163870.9457417269672260.472870863483613
360.60426159376320.79147681247360.3957384062368
370.5996999915009230.8006000169981540.400300008499077
380.5529432502447320.8941134995105360.447056749755268
390.5207114302013370.9585771395973250.479288569798663
400.614437594640560.7711248107188790.385562405359439
410.5797437124125940.8405125751748120.420256287587406
420.536281424959440.927437150081120.46371857504056
430.6243800213324560.7512399573350870.375619978667544
440.5951231841737120.8097536316525760.404876815826288
450.6300942683267340.7398114633465320.369905731673266
460.5788669528079330.8422660943841340.421133047192067
470.5653028631056980.8693942737886050.434697136894302
480.6809146704106830.6381706591786340.319085329589317
490.637465490086390.725069019827220.36253450991361
500.6236329429986320.7527341140027350.376367057001367
510.5839665175863410.8320669648273180.416033482413659
520.5392576501796640.9214846996406730.460742349820336
530.5648908512548940.8702182974902130.435109148745106
540.527002278865880.9459954422682410.472997721134121
550.590216030731090.819567938537820.40978396926891
560.5529545597574820.8940908804850370.447045440242518
570.5146846156035370.9706307687929270.485315384396463
580.4838469963797020.9676939927594040.516153003620298
590.4368000246573780.8736000493147550.563199975342622
600.3955230106345880.7910460212691760.604476989365412
610.3667856277560450.733571255512090.633214372243955
620.3273259504924180.6546519009848360.672674049507582
630.2872696974028320.5745393948056640.712730302597168
640.3279045371986010.6558090743972020.672095462801399
650.2871244978341040.5742489956682090.712875502165896
660.3013950225347260.6027900450694510.698604977465274
670.3584244536740140.7168489073480280.641575546325986
680.4375987419192980.8751974838385950.562401258080702
690.4000535058499530.8001070116999060.599946494150047
700.3855561707047610.7711123414095210.614443829295239
710.449792591315250.89958518263050.55020740868475
720.4039105490321590.8078210980643180.596089450967841
730.3624374691425190.7248749382850380.63756253085748
740.3273843158817350.654768631763470.672615684118265
750.2957956246778270.5915912493556540.704204375322173
760.2716364373465990.5432728746931990.7283635626534
770.2495479043070310.4990958086140630.750452095692969
780.2144650011250810.4289300022501620.785534998874919
790.1828275293129240.3656550586258480.817172470687076
800.1571916984521560.3143833969043120.842808301547844
810.1376995479746150.2753990959492300.862300452025385
820.2213130549214960.4426261098429920.778686945078504
830.2032799569757080.4065599139514170.796720043024292
840.1762817580049780.3525635160099560.823718241995022
850.1768671986075900.3537343972151810.82313280139241
860.1726912644660910.3453825289321810.82730873553391
870.1797987832392740.3595975664785480.820201216760726
880.1686302939676030.3372605879352060.831369706032397
890.1586197982451490.3172395964902980.841380201754851
900.1622886262057460.3245772524114910.837711373794254
910.2348361730261850.469672346052370.765163826973815
920.201399340955890.402798681911780.79860065904411
930.1847571991503690.3695143983007380.815242800849631
940.1559978934544100.3119957869088210.84400210654559
950.1409733207969480.2819466415938950.859026679203052
960.1443296515704150.2886593031408310.855670348429585
970.1457741594142610.2915483188285230.854225840585739
980.1418119271303820.2836238542607640.858188072869618
990.1345983108142250.2691966216284500.865401689185775
1000.1294164858327750.2588329716655500.870583514167225
1010.1057460530674360.2114921061348720.894253946932564
1020.08759526752296170.1751905350459230.912404732477038
1030.07016833790988520.1403366758197700.929831662090115
1040.0564409748891370.1128819497782740.943559025110863
1050.05965098516926350.1193019703385270.940349014830737
1060.04872863388118940.09745726776237890.95127136611881
1070.04258511029319520.08517022058639040.957414889706805
1080.03694512472935470.07389024945870940.963054875270645
1090.0280944805239470.0561889610478940.971905519476053
1100.02761203269233260.05522406538466520.972387967307667
1110.03476230996984110.06952461993968210.96523769003016
1120.1480319131636370.2960638263272730.851968086836363
1130.1361149519989630.2722299039979260.863885048001037
1140.5491035633682510.9017928732634990.450896436631749
1150.8509624561338380.2980750877323240.149037543866162
1160.8175467765604840.3649064468790330.182453223439516
1170.8725133502772170.2549732994455670.127486649722783
1180.8474548883968480.3050902232063050.152545111603152
1190.8187542316329250.3624915367341510.181245768367075
1200.8521828395693440.2956343208613120.147817160430656
1210.8288430235396780.3423139529206450.171156976460322
1220.7884172559405580.4231654881188830.211582744059441
1230.8197816141223250.3604367717553490.180218385877675
1240.7770040471536970.4459919056926060.222995952846303
1250.7374372043607650.525125591278470.262562795639235
1260.68854907892820.62290184214360.3114509210718
1270.6515683568381670.6968632863236660.348431643161833
1280.6092736870518680.7814526258962650.390726312948132
1290.5502923126977580.8994153746044850.449707687302242
1300.4870146727942530.9740293455885060.512985327205747
1310.4847127237360080.9694254474720160.515287276263992
1320.4825971091884690.9651942183769390.517402890811531
1330.4320568646209030.8641137292418070.567943135379097
1340.3838081257144370.7676162514288740.616191874285563
1350.5314485663706680.9371028672586650.468551433629332
1360.4921688174696430.9843376349392850.507831182530357
1370.4186925637844270.8373851275688530.581307436215573
1380.4281675271882350.856335054376470.571832472811765
1390.3565833426365360.7131666852730720.643416657363464
1400.3203594376791180.6407188753582350.679640562320883
1410.2859131825862710.5718263651725410.71408681741373
1420.3365044110543730.6730088221087450.663495588945627
1430.4780941135756870.9561882271513740.521905886424313
1440.4009927505796910.8019855011593810.599007249420309
1450.3198841429387330.6397682858774660.680115857061267
1460.30794447329060.61588894658120.6920555267094
1470.2547424196810590.5094848393621190.74525758031894
1480.1590915611281080.3181831222562150.840908438871892
1490.3041069572470930.6082139144941870.695893042752907


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level60.0428571428571429OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/103wbr1291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/103wbr1291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/1evwf1291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/1evwf1291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/2evwf1291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/2evwf1291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/3evwf1291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/3evwf1291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/47me01291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/47me01291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/57me01291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/57me01291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/67me01291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/67me01291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/7zvdl1291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/7zvdl1291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/8snc61291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/8snc61291317163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/9snc61291317163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317117hj56tl15d6t1fp5/9snc61291317163.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