Home » date » 2010 » Dec » 12 »

MR personal standards

*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 15:59:30 +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/t12921694744zq2cief76mp0m8.htm/, Retrieved Sun, 12 Dec 2010 16:58:04 +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/t12921694744zq2cief76mp0m8.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
Personal_standards[t] = + 6.05544463046083 + 1.08554008173790Gender[t] + 0.302404041874856Concern_mistakes[t] -0.370388926577496Doubts_actions[t] + 0.0908521419386202Parental_expectations[t] + 0.226711071855642Parental_criticism[t] + 0.428884960755457Organization[t] + 0.0317689593578859PLC[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.055444630460833.0163372.00750.0466730.023336
Gender1.085540081737900.6259661.73420.0851520.042576
Concern_mistakes0.3024040418748560.0579845.21531e-060
Doubts_actions-0.3703889265774960.119153-3.10850.002290.001145
Parental_expectations0.09085214193862020.1047480.86730.3872820.193641
Parental_criticism0.2267110718556420.1297791.74690.0829120.041456
Organization0.4288849607554570.0817495.24631e-060
PLC0.03176895935788590.138750.2290.819240.40962


Multiple Linear Regression - Regression Statistics
Multiple R0.625922347228241
R-squared0.391778784759711
Adjusted R-squared0.360473281034108
F-TEST (value)12.5146935246180
F-TEST (DF numerator)7
F-TEST (DF denominator)136
p-value2.57371901568604e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.36194190238707
Sum Squared Residuals1537.16085628353


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12525.5281585124996-0.528158512499642
22523.38015617856871.61984382143132
31923.9873375773017-4.98733757730169
41823.3076234384716-5.30762343847157
51820.7596668651796-2.75966686517959
62221.31358212929660.686417870703412
72922.02164504416406.97835495583604
82625.05032697654480.949673023455192
92524.08182245647550.918177543524528
102324.8249168609581-1.82491686095814
112320.98338535042592.01661464957412
122320.91325406717162.08674593282838
132423.5069154163330.49308458366698
143024.67989118037855.32010881962153
151917.90579594228631.09420405771365
162423.20975561797270.790244382027295
173229.22643675432262.77356324567736
183027.42385971752762.57614028247235
192930.9988998064258-1.99889980642575
201722.6196657169651-5.61966571696511
212523.54442546030851.45557453969151
222624.83912104627281.16087895372722
232626.9487872779461-0.948787277946073
242524.05090541438230.949094585617727
252319.27406168874743.72593831125259
262117.41310671910833.58689328089174
271923.0319111516796-4.03191115167956
283524.005102341545910.9948976584541
291922.8626109679091-3.86261096790906
302022.7476522945290-2.74765229452904
312122.3304653961623-1.33046539616229
322121.8071358122607-0.807135812260728
332419.96649989454674.0335001054533
342319.96376054279273.03623945720735
351920.0853797878955-1.08537978789554
361724.8342983720192-7.83429837201917
372422.95191737489901.04808262510104
381517.9762480302365-2.97624803023651
392525.4198464672891-0.419846467289087
402723.11652193146153.88347806853850
412725.67145461039211.32854538960788
421822.1853588943757-4.18535889437572
432522.01635771076402.98364228923597
442221.86235480831140.137645191688583
452621.43096572480024.56903427519975
462324.4543758064382-1.45437580643825
471621.9150740505523-5.91507405055234
482720.85019919509216.14980080490794
492524.44721855711750.552781442882529
501415.8739961454201-1.87399614542012
511921.3914097840986-2.39140978409855
522025.2661621646739-5.2661621646739
531621.0647508466983-5.06475084669831
541820.6279428593715-2.62794285937146
552222.1020407413569-0.102040741356915
562119.29408253444451.70591746555548
572223.0734203791412-1.07342037914117
582223.8987305343088-1.89873053430883
593225.58206700259996.41793299740007
602320.39842272081042.6015772791896
613126.10872942095284.89127057904723
621821.8054063105134-3.80540631051343
632323.0881694317347-0.088169431734685
642625.85128678933500.148713210664950
652422.22386572171271.77613427828726
661917.27062642481241.72937357518757
671416.1204986229292-2.12049862292919
682021.9132784977955-1.91327849779554
692221.21500009750430.784999902495717
702422.04492692825091.95507307174909
712522.62182150128092.37817849871912
722124.9664048238158-3.96640482381575
732823.98690113683264.01309886316737
742421.84031172990782.1596882700922
752020.1903276444363-0.190327644436281
762123.9493784943219-2.94937849432193
772323.5371687827720-0.537168782771954
781315.7149475787263-2.71494757872626
792423.55539286352350.444607136476478
802123.8520101633807-2.85201016338069
812123.9829661870797-2.98296618707973
821719.2472413739475-2.24724137394748
831419.3163708168531-5.31637081685314
842921.26535286198807.73464713801195
852523.15827686212601.84172313787405
861617.7716091429477-1.77160914294767
872521.46187726669863.53812273330137
882521.90820016227163.09179983772836
892122.206057948523-1.20605794852298
902323.2210621532137-0.22106215321368
912226.0814630599885-4.0814630599885
921919.9006245138135-0.900624513813497
932423.75094031317500.249059686825032
942623.13081971737472.8691802826253
952524.87531737193890.124682628061089
962023.0252186614217-3.02521866142169
972222.8871322320673-0.887132232067326
981418.675339626853-4.67533962685301
992024.9379417722663-4.93794177226632
1003223.82881115668478.17118884331528
1012120.59798670859930.402013291400737
1022221.89903549271910.100964507280927
1032826.67289083677331.32710916322673
1042525.4557822942169-0.455782294216869
1051716.13272102040830.867278979591746
1062123.0677355498766-2.06773554987658
1072321.71859217182281.28140782817722
1082723.08212358292973.91787641707033
1092222.4889450032043-0.488945003204296
1101919.2103892415976-0.210389241597643
1112023.455805491358-3.45580549135801
1121718.4948405905726-1.49484059057259
1132422.96507669507451.03492330492554
1142121.4326119615744-0.432611961574358
1152122.1653696875348-1.16536968753478
1162426.0383152451805-2.03831524518054
1171917.84941319178131.15058680821873
1182221.36261100172540.637388998274601
1192623.54811979866732.45188020133268
1201717.2209531967291-0.220953196729138
1211719.1435131919336-2.14351319193355
1221921.5832486502609-2.58324865026095
1231517.0675154742249-2.06751547422494
1241720.2257849734361-3.22578497343608
1252727.9103307750372-0.910330775037198
1261920.8044944192226-1.80449441922263
1272121.728310751151-0.728310751150981
1282520.87245324620384.12754675379621
1291923.5903406449817-4.59034064498166
1302222.3806732140214-0.380673214021431
1312024.0059751536554-4.00597515365536
1321524.3751919882858-9.3751919882858
1332022.1738054993449-2.17380549934492
1342925.15149042734913.8485095726509
1351918.81103051003010.188969489969935
1362923.54809230509215.45190769490787
1372421.59095876067372.40904123932625
1382319.27406168874743.72593831125259
1392223.1606745143394-1.16067451433936
1402322.2411827590580.758817240941995
1412219.76725123023562.23274876976438
1422921.26535286198807.73464713801195
1432623.54811979866732.45188020133268
1442122.1325135819139-1.13251358191387


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.4077903216352130.8155806432704260.592209678364787
120.2949795934165520.5899591868331040.705020406583448
130.4177921543262910.8355843086525820.582207845673709
140.3127430748470160.6254861496940320.687256925152984
150.2338434990281820.4676869980563650.766156500971818
160.1803780791167590.3607561582335180.819621920883241
170.1518248779825310.3036497559650620.84817512201747
180.1201711815399240.2403423630798480.879828818460076
190.08573239226174280.1714647845234860.914267607738257
200.2578463158024880.5156926316049760.742153684197512
210.2995194195717120.5990388391434240.700480580428288
220.2337143222260620.4674286444521240.766285677773938
230.1826075062989660.3652150125979330.817392493701034
240.1404591274614420.2809182549228830.859540872538558
250.1126675700968920.2253351401937850.887332429903108
260.08870345828184590.1774069165636920.911296541718154
270.08934361027113740.1786872205422750.910656389728863
280.6026004933047960.7947990133904070.397399506695204
290.5633811296727410.8732377406545190.436618870327259
300.5328538263789480.9342923472421040.467146173621052
310.4815474295477110.9630948590954220.518452570452289
320.4187467965458280.8374935930916570.581253203454172
330.642271889953150.71545622009370.35772811004685
340.733951685243460.5320966295130810.266048314756540
350.693098569735120.6138028605297590.306901430264880
360.8431448895351110.3137102209297770.156855110464889
370.8197627734996120.3604744530007770.180237226500388
380.8587837534495230.2824324931009540.141216246550477
390.8246712125626380.3506575748747240.175328787437362
400.8312983105053680.3374033789892650.168701689494632
410.7993690552810980.4012618894378040.200630944718902
420.8391539727020750.321692054595850.160846027297925
430.8201728960183570.3596542079632860.179827103981643
440.7861947082583040.4276105834833930.213805291741696
450.8160429650952360.3679140698095270.183957034904764
460.7892912945476850.421417410904630.210708705452315
470.8659507726213430.2680984547573140.134049227378657
480.9065149968031740.1869700063936510.0934850031968255
490.8867913034988990.2264173930022030.113208696501101
500.8917081318977570.2165837362044860.108291868102243
510.8820013713007190.2359972573985620.117998628699281
520.9018954796948860.1962090406102280.098104520305114
530.9325287450024960.1349425099950080.0674712549975039
540.9266254527925530.1467490944148940.0733745472074471
550.9087927041615230.1824145916769550.0912072958384773
560.8938392938509330.2123214122981340.106160706149067
570.8762325862209570.2475348275580860.123767413779043
580.8570606600040510.2858786799918970.142939339995949
590.9280297374234120.1439405251531770.0719702625765884
600.919397789409850.1612044211803010.0806022105901504
610.943554019140950.1128919617181020.0564459808590508
620.9475118631881120.1049762736237760.0524881368118879
630.9327263213433430.1345473573133140.0672736786566569
640.9154449145244530.1691101709510940.084555085475547
650.9006685289407780.1986629421184450.0993314710592224
660.8811851034612320.2376297930775350.118814896538768
670.8701647304840250.259670539031950.129835269515975
680.8531667821698980.2936664356602050.146833217830102
690.824370126930070.351259746139860.17562987306993
700.8056297736982220.3887404526035560.194370226301778
710.788688192347520.4226236153049610.211311807652480
720.8014656319611830.3970687360776340.198534368038817
730.8185819294675280.3628361410649440.181418070532472
740.7984568045999060.4030863908001880.201543195400094
750.7614989390844540.4770021218310910.238501060915546
760.7530220599548440.4939558800903120.246977940045156
770.7123003625967950.5753992748064110.287699637403205
780.700911395637520.5981772087249620.299088604362481
790.656445162448830.687109675102340.34355483755117
800.6415854758477180.7168290483045630.358414524152282
810.6360953460566640.7278093078866720.363904653943336
820.6328902776212330.7342194447575340.367109722378767
830.6860623766497180.6278752467005640.313937623350282
840.837693923907460.3246121521850810.162306076092541
850.8125131432961020.3749737134077960.187486856703898
860.796610476393450.4067790472130990.203389523606550
870.7995023881683620.4009952236632770.200497611831638
880.8164643482352250.367071303529550.183535651764775
890.783397048106540.4332059037869210.216602951893460
900.7466056757996040.5067886484007920.253394324200396
910.7583219528729280.4833560942541440.241678047127072
920.7198014425255570.5603971149488850.280198557474443
930.6739454597051560.6521090805896890.326054540294845
940.6802119360593670.6395761278812670.319788063940633
950.6359894345183030.7280211309633940.364010565481697
960.6226143488126230.7547713023747550.377385651187377
970.5836886526888220.8326226946223560.416311347311178
980.6087396833933460.7825206332133090.391260316606654
990.661808084673330.6763838306533390.338191915326670
1000.8503531349682080.2992937300635850.149646865031792
1010.8181460073393770.3637079853212460.181853992660623
1020.7818381137671960.4363237724656070.218161886232803
1030.7514814638139530.4970370723720940.248518536186047
1040.7207125645338970.5585748709322060.279287435466103
1050.6711015884712830.6577968230574340.328898411528717
1060.6344389383845550.731122123230890.365561061615445
1070.6137403743753510.7725192512492970.386259625624649
1080.6405385748106690.7189228503786620.359461425189331
1090.5867971821385110.8264056357229780.413202817861489
1100.5301117624379890.9397764751240230.469888237562011
1110.5137519631550680.9724960736898640.486248036844932
1120.4567169916948770.9134339833897530.543283008305123
1130.3953589760636060.7907179521272120.604641023936394
1140.3353412047705150.670682409541030.664658795229485
1150.2788871657751930.5577743315503860.721112834224807
1160.2409280528180310.4818561056360620.759071947181969
1170.1960694061388270.3921388122776550.803930593861173
1180.1557776437437410.3115552874874810.84422235625626
1190.1368303451267330.2736606902534660.863169654873267
1200.1101007096496690.2202014192993380.889899290350331
1210.08517846564277880.1703569312855580.914821534357221
1220.0851110195613690.1702220391227380.914888980438631
1230.1277942062225880.2555884124451770.872205793777412
1240.1427357219622140.2854714439244290.857264278037786
1250.1610184288132730.3220368576265460.838981571186727
1260.1602410712536570.3204821425073130.839758928746343
1270.1339045652991010.2678091305982020.866095434700899
1280.09938113341414120.1987622668282820.900618866585859
1290.07177613537104510.1435522707420900.928223864628955
1300.08217056047277170.1643411209455430.917829439527228
1310.07058516167404770.1411703233480950.929414838325952
1320.7989225789971650.402154842005670.201077421002835
1330.740552938753810.518894122492380.25944706124619


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 level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/10a1oo1292169559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/10a1oo1292169559.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/47jq01292169559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/47jq01292169559.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/57jq01292169559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/57jq01292169559.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/67jq01292169559.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921694744zq2cief76mp0m8/67jq01292169559.ps (open in new window)


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


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


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