Home » date » 2010 » Dec » 12 »

MR organisatie

*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, 12 Dec 2010 19:33:58 +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/12/t1292182315gixel0n6resfdwz.htm/, Retrieved Sun, 12 Dec 2010 20:32:05 +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/12/t1292182315gixel0n6resfdwz.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 «
1 26 9 15 6 25 25 13 1 20 9 15 6 25 24 16 1 21 9 14 13 19 21 19 0 31 14 10 8 18 23 15 1 21 8 10 7 18 17 14 1 18 8 12 9 22 19 13 1 26 11 18 5 29 18 19 1 22 10 12 8 26 27 15 1 22 9 14 9 25 23 14 1 29 15 18 11 23 23 15 0 15 14 9 8 23 29 16 1 16 11 11 11 23 21 16 0 24 14 11 12 24 26 16 1 17 6 17 8 30 25 17 0 19 20 8 7 19 25 15 0 22 9 16 9 24 23 15 1 31 10 21 12 32 26 20 0 28 8 24 20 30 20 18 1 38 11 21 7 29 29 16 0 26 14 14 8 17 24 16 1 25 11 7 8 25 23 19 1 25 16 18 16 26 24 16 0 29 14 18 10 26 30 17 1 28 11 13 6 25 22 17 0 15 11 11 8 23 22 16 1 18 12 13 9 21 13 15 0 21 9 13 9 19 24 14 1 25 7 18 11 35 17 15 0 23 13 14 12 19 24 12 1 23 10 12 8 20 21 14 1 19 9 9 7 21 23 16 0 18 9 12 8 21 24 14 0 18 13 8 9 24 24 7 0 26 16 5 4 23 24 10 0 18 12 10 8 19 23 14 1 18 6 11 8 17 26 16 0 28 14 11 8 24 24 16 0 17 14 12 6 15 21 16 1 29 10 12 8 25 23 14 0 12 4 15 4 27 28 20 1 28 12 16 14 27 22 14 1 20 14 14 10 18 24 11 1 17 9 17 9 25 21 15 1 17 9 13 6 22 23 16 0 20 10 10 8 26 23 14 1 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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Organization[t] = + 10.4980892782650 -2.15563229975179Gender[t] -0.0564877448316168Concern_mistakes[t] + 0.244749750576054Doubts_actions[t] -0.0878682090368594Parental_expectations[t] -0.265570849993746Parental_criticism[t] + 0.392456084218977Personal_standards[t] + 0.422739980796405PLC[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)10.49808927826502.7860093.76810.0002440.000122
Gender-2.155632299751790.576467-3.73940.0002710.000135
Concern_mistakes-0.05648774483161680.060567-0.93260.3526550.176327
Doubts_actions0.2447497505760540.1160782.10850.0368220.018411
Parental_expectations-0.08786820903685940.100194-0.8770.3820450.191022
Parental_criticism-0.2655708499937460.123447-2.15130.0332210.01661
Personal_standards0.3924560842189770.0748065.24631e-060
PLC0.4227399807964050.1277073.31020.0011940.000597


Multiple Linear Regression - Regression Statistics
Multiple R0.573275404225135
R-squared0.328644689089493
Adjusted R-squared0.29408963632204
F-TEST (value)9.51075639505441
F-TEST (DF numerator)7
F-TEST (DF denominator)136
p-value1.39365097240329e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.21599473075328
Sum Squared Residuals1406.59660671967


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12521.4720969883883.52790301161201
22423.07924339976690.920756600233053
32120.16511135109130.834888648908694
42322.57552603411880.424473965881232
51719.3591035484242-2.35910354842417
61919.9687730209373-0.96877302093731
71826.0698269340776-8.06982693407763
82722.91319669122544.08680330877458
92321.41194360756651.58805639243349
102321.24024117342501.75975882657496
112925.95221856235283.04778143764721
122122.0334002979863-1.03340029798626
132624.59826512503851.40173487496149
142524.19259966636370.807400333636295
152525.5556408278409-0.555640827840934
162323.422123385822-0.422123385822011
172625.02014611573000.979853884269965
182022.8371785917333-2.83717859173326
192923.32900772661095.67099227338905
202422.53677581870681.46322418129316
212324.7263280914576-1.72632809145756
222421.98319588681222.01680411318783
233025.43954278684434.56045721315574
242223.7153173411362-1.71531734113623
252225.0422328925509-3.04223289255091
261321.3129276915785-8.3129276915785
272421.35719535587292.64280464412709
281724.2176671587708-7.2176671587708
292420.4931581479033.50684185209701
302120.07923246028350.920767539716471
312321.82754521195011.17245478804995
322422.66500981783631.33499018216368
332421.94809919337632.05190080662367
342424.6976692217011-0.697669221701099
352322.79008331920020.20991668079975
362619.13865210011016.86134789988987
372425.4345975456870-1.43459754568703
382122.9671314718146-1.96713147181465
392321.70258641238871.29741358761129
402827.47004269690250.529957303097546
412221.08858789070050.911412109299517
422418.46768446819425.53231553180579
432121.8535176854104-0.853517685410424
442322.24707479967860.752925200321428
452324.9348009179177-1.93480091791775
462021.3931241230190-1.39312412301902
472320.77801591282262.22198408717736
482124.0299104076889-3.0299104076889
492723.24698193625113.75301806374891
501217.8166990172771-5.81669901727711
511518.7665289716325-3.76652897163253
522220.41834504655991.58165495344011
532119.50555254824571.49444745175431
542122.1194646511379-1.11946465113793
552021.5758841065183-1.57588410651831
562424.3546187203705-0.35461872037052
572423.37145042821830.628549571781727
582922.37060965412946.62939034587064
592524.45180133008970.54819866991034
601422.683699240133-8.683699240133
613028.78624208751151.21375791248855
621920.9538997508260-1.95389975082595
632925.99437983443023.00562016556984
642522.09047876702952.90952123297051
652524.47877492692390.521225073076063
662522.38340455006272.61659544993727
671619.3687662022976-3.36876620229763
682522.79094579517862.20905420482138
692826.09947723823781.90052276176221
702425.2064180391179-1.20641803911790
712524.20660768647790.793392313522083
722120.12299863463760.877001365362361
732225.4263920823487-3.42639208234869
742023.7405371241445-3.74053712414450
752524.10961439047000.890385609529972
762724.70168846683252.29831153316749
772121.3073343474352-0.307334347435201
781321.7383813724922-8.7383813724922
792622.57387797206363.42612202793639
802621.15829996218594.84170003781407
812523.20261012099021.79738987900978
822221.34111226603120.658887733968845
831917.21996479053471.78003520946534
842324.2461468721482-1.24614687214816
852523.3890740370791.61092596292101
861519.8798227475879-4.87982274758793
872122.4240017076957-1.42400170769567
882323.4264092752187-0.426409275218671
892522.07854736661802.92145263338204
902421.47881991009822.52118008990184
912423.01172363929790.9882763607021
922122.0912030827286-1.09120308272860
932423.32912370190310.67087629809695
942224.7657798718929-2.76577987189294
952423.37530196336470.624698036635341
962823.21617367977114.7838263202289
972121.5153309258635-0.51533092586346
981719.4762223709726-2.47622237097255
992821.51691563716766.4830843628324
1002428.9986856133420-4.99868561334197
1011016.3074511320150-6.30745113201503
1022022.0336494080228-2.03364940802282
1032222.4559782390996-0.455978239099575
1041921.9081692193606-2.9081692193606
1052223.4648450283357-1.46484502833571
1062218.62440147881763.3755985211824
1072626.0819504133096-0.0819504133096118
1082424.5750069933073-0.575006993307343
1092220.86013529818321.13986470181681
1102020.8118660711419-0.811866071141882
1112019.78482254749460.215177452505362
1121520.2297284984893-5.22972849848927
1132020.8779498215596-0.87794982155955
1142020.3271011066555-0.327101106655502
1152423.05665692369100.943343076309048
1162923.05932277598565.94067722401444
1172323.8840700984419-0.884070098441859
1182423.33278684666020.667213153339774
1192222.1142202882036-0.114220288203600
1201619.0750945500881-3.07509455008814
1212323.6034576104604-0.603457610460381
1222722.27863314106364.72136685893639
1231620.2507785906528-4.25077859065278
1242121.5490183366986-0.549018336698598
1252622.07982558911113.92017441088892
1262221.93427547679840.0657245232015839
1272323.0249327649373-0.0249327649373062
1281920.8363307180701-1.83633071807008
1291818.0527671656676-0.0527671656676029
1302420.82018507923153.1798149207685
1312923.19333025218535.80666974781469
1322218.45239898947513.54760101052488
1332423.35216797571370.647832024286278
1342221.21971625530140.780283744698575
1351221.5448795754195-9.5448795754195
1362627.0990846642795-1.09908466427955
1371821.4884535143454-3.48845351434542
1382225.0422328925509-3.04223289255091
1392421.87079231306222.12920768693783
1402122.0766958455374-1.07669584553738
1411518.6360674521269-3.63606745212691
1422324.2461468721482-1.24614687214816
1432222.1142202882036-0.114220288203600
1442421.93192755970892.06807244029110


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.8359325022276070.3281349955447860.164067497772393
120.7822837791259780.4354324417480440.217716220874022
130.7516006541901440.4967986916197120.248399345809856
140.644479372990620.7110412540187610.355520627009380
150.5303914488370330.9392171023259350.469608551162967
160.4748989282924550.949797856584910.525101071707545
170.3773483000535740.7546966001071470.622651699946426
180.4498294734111080.8996589468222160.550170526588892
190.5404090610595990.9191818778808020.459590938940401
200.5245227235629920.9509545528740150.475477276437008
210.4656505074723020.9313010149446040.534349492527698
220.3859881722947660.7719763445895310.614011827705234
230.4200710121696190.8401420243392380.579928987830381
240.3738837294861490.7477674589722990.62611627051385
250.3374905254301940.6749810508603880.662509474569806
260.675540289169680.6489194216606410.324459710830320
270.6438643207866720.7122713584266560.356135679213328
280.8719895096141260.2560209807717470.128010490385874
290.8477621284771240.3044757430457520.152237871522876
300.8069028867820260.3861942264359490.193097113217974
310.7785858904227730.4428282191544550.221414109577227
320.7338795565627220.5322408868745550.266120443437278
330.6877717662821270.6244564674357460.312228233717873
340.6699262016368440.6601475967263120.330073798363156
350.613342305572350.7733153888553010.386657694427651
360.7619660911088820.4760678177822360.238033908891118
370.7262030759911010.5475938480177980.273796924008899
380.7063496050694910.5873007898610170.293650394930509
390.6577180950482950.684563809903410.342281904951705
400.6369695277190610.7260609445618780.363030472280939
410.5842001706334550.831599658733090.415799829366545
420.6299895846539550.740020830692090.370010415346045
430.5808401419317120.8383197161365770.419159858068288
440.5283275695618630.9433448608762740.471672430438137
450.4854413624943340.9708827249886680.514558637505666
460.4602894144553650.920578828910730.539710585544635
470.4231941799810290.8463883599620580.576805820018971
480.4193173748856590.8386347497713180.580682625114341
490.4536466554142150.9072933108284310.546353344585785
500.6489323381281520.7021353237436960.351067661871848
510.6866821655793130.6266356688413730.313317834420687
520.647579737805070.704840524389860.35242026219493
530.6066771606550940.7866456786898120.393322839344906
540.5621831098731390.8756337802537220.437816890126861
550.5196471740109680.9607056519780640.480352825989032
560.46836627149560.93673254299120.5316337285044
570.4187744451665670.8375488903331340.581225554833433
580.5776863548417070.8446272903165850.422313645158293
590.5333800302553860.9332399394892270.466619969744614
600.79472660712370.4105467857525990.205273392876299
610.7731596882457220.4536806235085560.226840311754278
620.749338854779680.5013222904406410.250661145220320
630.7472069292574020.5055861414851950.252793070742598
640.7361637574587870.5276724850824260.263836242541213
650.6954256151480020.6091487697039970.304574384851998
660.6739341458684650.652131708263070.326065854131535
670.6873130535122120.6253738929755770.312686946487788
680.6669442045804040.6661115908391920.333055795419596
690.6372074357008470.7255851285983060.362792564299153
700.5965121365315540.8069757269368920.403487863468446
710.5496847178989770.9006305642020460.450315282101023
720.5029029724520880.9941940550958240.497097027547912
730.5050458429230730.9899083141538530.494954157076927
740.5168385201087130.9663229597825740.483161479891287
750.4701567615055660.9403135230111310.529843238494434
760.4467022954876360.8934045909752720.553297704512364
770.3980643732903140.7961287465806280.601935626709686
780.6975448791632270.6049102416735450.302455120836773
790.7003330935113730.5993338129772550.299666906488627
800.7532264632310440.4935470735379130.246773536768956
810.7232639051197060.5534721897605890.276736094880294
820.6876608132989270.6246783734021450.312339186701072
830.6551386563303010.6897226873393980.344861343669699
840.6144824822185310.7710350355629390.385517517781469
850.5782675294982620.8434649410034770.421732470501738
860.6348850140272630.7302299719454750.365114985972737
870.5960285895570740.807942820885850.403971410442926
880.548063296095060.903873407809880.45193670390494
890.5485328601403920.9029342797192160.451467139859608
900.540494303241040.919011393517920.45950569675896
910.4955820225409040.9911640450818080.504417977459096
920.4510638696027210.9021277392054430.548936130397279
930.4156581103344960.8313162206689910.584341889665504
940.3913529104106730.7827058208213450.608647089589327
950.3496782744924090.6993565489848170.650321725507591
960.3939032810135750.787806562027150.606096718986425
970.3459461084131040.6918922168262080.654053891586896
980.3321373679469130.6642747358938260.667862632053087
990.5316125187020010.9367749625959980.468387481297999
1000.6734077299715180.6531845400569640.326592270028482
1010.7689324591258140.4621350817483720.231067540874186
1020.7309320568155660.5381358863688680.269067943184434
1030.6852942181305720.6294115637388560.314705781869428
1040.6982229624630220.6035540750739550.301777037536978
1050.650010716556550.6999785668868990.349989283443450
1060.6674746502375530.6650506995248930.332525349762446
1070.6119788810299440.7760422379401130.388021118970056
1080.553119761346280.893760477307440.44688023865372
1090.5144185675507340.9711628648985320.485581432449266
1100.4702302463022340.9404604926044680.529769753697766
1110.4081741175249880.8163482350499760.591825882475012
1120.4571671443309140.9143342886618280.542832855669086
1130.3966582112771570.7933164225543140.603341788722843
1140.3353536708223610.6707073416447220.664646329177639
1150.277696792184160.555393584368320.72230320781584
1160.4505210666748060.9010421333496130.549478933325194
1170.3841432594480170.7682865188960350.615856740551983
1180.3857664685554110.7715329371108230.614233531444589
1190.3183144258868830.6366288517737670.681685574113116
1200.2640468727865710.5280937455731420.735953127213429
1210.2063857993092970.4127715986185940.793614200690703
1220.2519962611742190.5039925223484390.748003738825781
1230.2070684657555780.4141369315111550.792931534244423
1240.1630552289263650.3261104578527310.836944771073635
1250.1673631144873020.3347262289746050.832636885512698
1260.1287284709686560.2574569419373120.871271529031344
1270.08705401753633540.1741080350726710.912945982463665
1280.05610185293157690.1122037058631540.943898147068423
1290.03348820068339020.06697640136678040.96651179931661
1300.01952272931410820.03904545862821650.980477270685892
1310.03235979465942150.0647195893188430.967640205340578
1320.2155989005527520.4311978011055050.784401099447248
1330.2428607540314310.4857215080628630.757139245968569


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


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/1npir1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/1npir1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/2npir1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/2npir1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/3gzic1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/3gzic1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/4gzic1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/4gzic1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/5gzic1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/5gzic1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/6qqzf1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/6qqzf1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/7jzyi1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/7jzyi1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/8jzyi1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/8jzyi1292182426.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/9jzyi1292182426.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182315gixel0n6resfdwz/9jzyi1292182426.ps (open in new window)


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