Home » date » 2010 » Dec » 19 »

paper - multiple regression - geen motivatie

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 19 Dec 2010 10:30:11 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3.htm/, Retrieved Sun, 19 Dec 2010 11:28:16 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3.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 «
46 11 52 26 23 44 8 39 25 15 42 10 42 28 25 41 12 35 30 18 48 12 32 28 21 49 10 49 40 19 51 8 33 28 15 47 10 47 27 22 49 11 46 25 19 46 7 40 27 20 51 10 33 32 26 54 9 39 28 26 52 9 37 21 21 52 11 56 40 18 45 12 36 29 19 52 5 24 27 19 56 10 56 31 18 54 11 32 33 19 50 12 41 28 24 35 9 24 26 28 48 3 42 25 20 37 10 47 37 27 47 7 25 13 18 31 9 33 32 19 45 9 43 32 24 47 10 45 38 21 44 9 44 30 22 30 19 46 33 25 40 14 31 22 19 44 5 31 29 15 43 13 42 33 34 51 7 28 31 23 48 8 38 23 19 55 11 59 42 26 48 11 43 35 15 53 12 29 31 15 49 9 38 31 17 44 13 39 38 30 45 12 50 34 19 40 11 44 33 28 44 18 29 23 23 41 8 29 18 23 46 14 36 33 21 47 10 43 26 18 48 13 28 29 19 43 13 39 23 24 46 8 35 18 15 53 10 43 36 20 33 8 28 21 24 47 9 49 31 9 43 10 33 31 20 45 9 39 29 20 49 9 36 24 10 45 9 24 35 44 37 10 47 37 20 42 8 34 29 20 43 11 33 31 11 44 11 43 34 21 39 10 41 38 21 37 23 40 27 19 53 9 39 33 17 48 12 54 36 16 47 9 43 27 14 49 9 45 33 19 47 8 29 24 21 56 9 45 31 16 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Geen_Motivatie[t] = + 9.03233509669632 -0.0540534078257883Carrièremogelijkheden[t] -0.00254630971406542Leermogelijkheden[t] + 0.118165545509410Persoonlijke_redenen[t] + 0.0169605531731199Ouders[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9.032335096696322.3276463.88050.0001598e-05
Carrièremogelijkheden-0.05405340782578830.041893-1.29030.1990710.099535
Leermogelijkheden-0.002546309714065420.034064-0.07470.940520.47026
Persoonlijke_redenen0.1181655455094100.0445752.65090.0089450.004473
Ouders0.01696055317311990.0421730.40220.6881680.344084


Multiple Linear Regression - Regression Statistics
Multiple R0.254003140632359
R-squared0.064517595451102
Adjusted R-squared0.0379790875206367
F-TEST (value)2.4310935498012
F-TEST (DF numerator)4
F-TEST (DF denominator)141
p-value0.0503716627248137
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.69065140618395
Sum Squared Residuals1020.78430353355


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1119.875867137805081.12413286219492
289.76322600884514-1.76322600884514
31010.3877960636140-0.387796063613952
41210.57728085824521.42271914175482
51210.02109650110741.9789034988926
61011.3078212679092-1.30782126790918
789.75462664887725-1.75462664887725
8109.935750270885910.064249729114086
9119.542977014410221.45702298558978
1079.97370674036392-2.97370674036392
111010.4138549158192-0.413854915819208
1299.7637546520198-0.76375465201981
1398.964992502668040.0350074973319553
141111.1108763232602-0.110876323260239
151210.25731592489171.74268407510833
1659.67316669566112-4.67316669566112
17109.83117278237240.168827217627608
181110.25368267535350.74631732464652
19129.94095455754862.05904544245141
20910.6265540617482-1.62655406174819
2139.6241762142654-6.62417621426539
221011.7427425701035-1.7427425701035
2378.26960923477113-1.26960923477113
24911.3761992001231-2.37619920012314
25910.6787911592870-1.67879115928704
261011.2237033377444-1.22370333774444
27910.4600460600337-1.46004606003371
281911.61707944621427.3829205537858
29149.713155694025074.28684430597493
30510.2562586685953-5.25625866859531
311311.07721536189331.92278463810670
32710.2575392593608-3.25753925936077
3389.38106980892971-1.38106980892971
341111.3130926870445-0.313092687044458
351110.71848259377980.281517406220169
361210.01120170861021.98879829138984
37910.2384196588330-1.23841965883297
381311.55378639806431.44621360193572
391210.81249531644181.18750468355819
401111.1325196469038-0.132519646903811
41189.688042440351938.31195755964807
4289.25937493628225-1.25937493628225
431410.70984580544983.29015419455024
44109.759927751540290.240072248459714
451310.11552617912682.88447382087317
46139.733593304210193.26640669578981
4788.83814561348395-0.838145613483954
481010.6511838660259-0.6511838660259
49810.0658056983040-2.06580569830397
50910.1828326422449-1.18283264224487
511010.6263533138774-0.626353313877385
52910.2666375489226-1.26663754892260
5399.29762958748339-0.297629587483387
54911.4208787438449-2.42087874384492
551011.6240186978917-1.62401869789166
56810.4415293209703-2.44152932097029
571110.47370833531930.526291664680694
581110.91829399861230.0817060013877064
591011.666315839207-1.66631583920701
602310.443226857622912.5567731423771
61910.2559908088346-1.25599080883457
621210.82559928560761.17440071439236
6399.81025108435722-0.810251084357217
64910.4908476881996-1.49084768819957
6589.61012665603774-1.61012665603774
6699.82526108288087-0.825261082880872
67910.1413171621010-1.14131716210104
6899.65133684805865-0.651336848058655
691110.90486277257720.0951372274227718
701210.95185752612691.04814247387309
71811.0171166391778-3.01711663917778
72910.8471754767786-1.84717547677862
731011.6028142983519-1.60281429835187
7489.26179473699789-1.26179473699789
75910.6412664869304-1.64126648693037
76910.5011594360543-1.50115943605426
771311.13971191657811.86028808342188
781111.6446202454374-0.644620245437383
791810.04752002907377.95247997092625
80107.821725334755952.17827466524405
811410.27868426179213.72131573820793
82711.6503228232594-4.65032282325936
831010.4089262242814-0.408926224281372
84910.5619210463070-1.56192104630697
85910.0030341568760-1.00303415687596
861210.68790430008311.31209569991694
87810.2541964467113-2.25419644671130
88910.3809613521886-1.3809613521886
89810.1064130383308-2.10641303833081
901310.85380233393342.14619766606661
91610.741153490192-4.74115349019201
921110.43351797123260.566482028767416
931010.9086522446946-0.90865224469458
941011.0592646643137-1.05926466431375
951410.91345439718103.08654560281898
961310.62947279205782.37052720794224
971010.3204527805154-0.320452780515408
9888.50853892621273-0.508538926212731
991010.8050945635326-0.805094563532586
100810.4264005582826-2.42640055828261
1011010.7010231110128-0.701023111012776
102710.5086492695997-3.50864926959974
1031110.71296528363010.28703471636986
1041010.4812730461718-0.481273046171791
10588.9035680254608-0.903568025460796
1061210.84881364637571.1511863536243
1071210.17113577284291.82886422715708
1081111.0003045431667-0.000304543166748475
109119.807570530280621.19242946971938
11069.30388338560802-3.30388338560802
1111410.97923438798953.02076561201051
112910.0407969848829-1.04079698488294
1131111.3406702761952-0.340670276195176
1141010.1351001744866-0.135100174486613
1151011.040629151616-1.04062915161600
11689.57234896568422-1.57234896568422
117910.4571273297241-1.45712732972413
1181010.6737656517488-0.673765651748847
1191010.3654227405432-0.365422740543248
120129.572549713555022.42745028644498
1211011.1229972750021-1.12299727500208
122119.03211245129751.96788754870251
1231611.16542092531594.83457907468414
1241210.17262482626061.82737517373938
1251010.3990165900203-0.399016590020257
1261310.83709479875712.16290520124288
12789.51892812343323-1.51892812343323
1281210.07552232952871.92447767047131
1291010.5285434043166-0.528543404316617
13089.77299429234395-1.77299429234395
1311410.11969580720383.88030419279621
132910.1612183937474-1.16121839374739
1331210.13268037377101.86731962622902
1341010.4836477037438-0.483647703743817
13599.97133920977434-0.971339209774336
1361011.1204658070519-1.1204658070519
1371110.76567873363490.234321266365054
1381110.12944922835610.870550771643947
1391010.6128846594801-0.612884659480148
1401010.3268408324729-0.326840832472879
1412011.03732315894708.96267684105296
1421010.0829973213103-0.0829973213102895
143810.5344325172098-2.53443251720985
144810.1647102925233-2.16471029252328
14599.70408710857366-0.704087108573664
146189.869009849251758.13099015074825


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2356565585444170.4713131170888340.764343441455583
90.1854365601711140.3708731203422290.814563439828886
100.277829856377920.555659712755840.72217014362208
110.1877196852298420.3754393704596840.812280314770158
120.1187019063637810.2374038127275620.881298093636219
130.06774564223256240.1354912844651250.932254357767438
140.04097016255193970.08194032510387940.95902983744806
150.03649034990980960.07298069981961930.96350965009019
160.06988212489984710.1397642497996940.930117875100153
170.04398005892122080.08796011784244150.95601994107878
180.04508409382389620.09016818764779250.954915906176104
190.0398203381152510.0796406762305020.960179661884749
200.03123344085267200.06246688170534410.968766559147328
210.2481684018384930.4963368036769850.751831598161507
220.2253066993041240.4506133986082490.774693300695876
230.1741313869951140.3482627739902280.825868613004886
240.1366838169900330.2733676339800660.863316183009967
250.1088791650309340.2177583300618690.891120834969066
260.08076584509978130.1615316901995630.919234154900219
270.059868614310110.119737228620220.94013138568989
280.3654135089682920.7308270179365840.634586491031708
290.4910115004540180.9820230009080360.508988499545982
300.5813431165102810.8373137669794370.418656883489719
310.5296517834623150.940696433075370.470348216537685
320.5087091464960990.9825817070078020.491290853503901
330.4568845738214900.9137691476429790.54311542617851
340.3986570918517060.7973141837034110.601342908148294
350.362213877625610.724427755251220.63778612237439
360.4362390066486190.8724780132972390.563760993351381
370.3851467850336390.7702935700672770.614853214966361
380.3444756603870550.688951320774110.655524339612945
390.3028094372130820.6056188744261630.697190562786918
400.2606073125005960.5212146250011920.739392687499404
410.7193681383053780.5612637233892440.280631861694622
420.6897169680577070.6205660638845860.310283031942293
430.719691797018980.560616405962040.28030820298102
440.6737819590331320.6524360819337360.326218040966868
450.6921197820765720.6157604358468570.307880217923428
460.6985596178710460.6028807642579090.301440382128954
470.6552137871553870.6895724256892260.344786212844613
480.6080306694034220.7839386611931560.391969330596578
490.6063411566929550.787317686614090.393658843307045
500.5605544118982160.8788911762035680.439445588101784
510.5115132717495810.9769734565008370.488486728250419
520.4707374368670060.9414748737340110.529262563132994
530.4270660952403310.8541321904806620.572933904759669
540.4302673124014620.8605346248029240.569732687598538
550.4017491081797880.8034982163595770.598250891820212
560.390138489292110.780276978584220.60986151070789
570.3498189416283520.6996378832567050.650181058371648
580.3045372848373230.6090745696746450.695462715162677
590.2755473014623730.5510946029247460.724452698537627
600.9715261657527530.05694766849449310.0284738342472466
610.965910926692610.06817814661478110.0340890733073905
620.9585084872899340.0829830254201330.0414915127100665
630.9477073689038840.1045852621922320.0522926310961158
640.9378417096408610.1243165807182770.0621582903591386
650.9304529162662470.1390941674675060.0695470837337531
660.917290073080090.1654198538398210.0827099269199103
670.9014485705490180.1971028589019650.0985514294509825
680.8811151758017930.2377696483964150.118884824198207
690.8555577010235730.2888845979528540.144442298976427
700.8336667722675490.3326664554649020.166333227732451
710.8424461282707640.3151077434584710.157553871729235
720.8275998884192740.3448002231614520.172400111580726
730.8048662975350080.3902674049299830.195133702464992
740.7804092487622020.4391815024755960.219590751237798
750.7577548500849030.4844902998301940.242245149915097
760.7358292187121980.5283415625756040.264170781287802
770.716091971214540.5678160575709190.283908028785459
780.6750948019264750.649810396147050.324905198073525
790.9274048214151460.1451903571697090.0725951785848544
800.9178187357087570.1643625285824850.0821812642912427
810.934444615215190.1311107695696200.0655553847848099
820.9564740808487950.08705183830241090.0435259191512054
830.944777856721740.1104442865565190.0552221432782595
840.9369954733343540.1260090533312930.0630045266656465
850.9222787275490960.1554425449018090.0777212724509044
860.9071405141086810.1857189717826370.0928594858913187
870.9081165793715750.1837668412568510.0918834206284255
880.8909864183012540.2180271633974920.109013581698746
890.8827496968101920.2345006063796150.117250303189808
900.8741681511110990.2516636977778020.125831848888901
910.941765612146120.116468775707760.05823438785388
920.9256052003589750.1487895992820510.0743947996410254
930.9137788017262250.172442396547550.086221198273775
940.8970984544187530.2058030911624930.102901545581247
950.9056069818018830.1887860363962340.0943930181981172
960.90314621872880.1937075625424000.0968537812711999
970.8798528519944610.2402942960110770.120147148005539
980.8567392176385720.2865215647228550.143260782361428
990.8290510613311790.3418978773376420.170948938668821
1000.8724261690496610.2551476619006780.127573830950339
1010.8524696246802870.2950607506394260.147530375319713
1020.8572347099530110.2855305800939780.142765290046989
1030.8238725647240510.3522548705518980.176127435275949
1040.7992779681575460.4014440636849080.200722031842454
1050.7615554464703340.4768891070593320.238444553529666
1060.72735736336660.54528527326680.2726426366334
1070.6888439872183540.6223120255632930.311156012781646
1080.638233544304080.7235329113918410.361766455695920
1090.5874445564450290.8251108871099420.412555443554971
1100.568180155862790.863639688274420.43181984413721
1110.560448332739860.879103334520280.43955166726014
1120.5330348429969470.9339303140061070.466965157003053
1130.5249128993892690.9501742012214620.475087100610731
1140.4796775695803410.9593551391606830.520322430419659
1150.4267011073885780.8534022147771560.573298892611422
1160.4529061759196640.9058123518393290.547093824080336
1170.4108281404105110.8216562808210220.589171859589489
1180.3558923939343010.7117847878686010.644107606065699
1190.3056662391570930.6113324783141870.694333760842907
1200.2711522721147990.5423045442295990.7288477278852
1210.2585833645405260.5171667290810520.741416635459474
1220.2676672437187230.5353344874374460.732332756281277
1230.2692195990988510.5384391981977010.73078040090115
1240.2187824208946680.4375648417893350.781217579105332
1250.2159058248191020.4318116496382050.784094175180898
1260.1749748136806200.3499496273612410.82502518631938
1270.1481999155979830.2963998311959660.851800084402017
1280.1102481464977420.2204962929954850.889751853502258
1290.1768937142025710.3537874284051430.823106285797429
1300.1329971356288920.2659942712577830.867002864371108
1310.2174117372484610.4348234744969230.782588262751539
1320.2063169278272600.4126338556545190.79368307217274
1330.1471274764023080.2942549528046170.852872523597692
1340.1420434323514840.2840868647029680.857956567648516
1350.5196185043793450.960762991241310.480381495620655
1360.462865766097920.925731532195840.53713423390208
1370.7956344884516960.4087310230966080.204365511548304
1380.70902097865460.5819580426908010.290979021345400


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 level100.0763358778625954OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/10z9n61292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/10z9n61292754601.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/23z7x1292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/23z7x1292754601.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/33z7x1292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/33z7x1292754601.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/43z7x1292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/43z7x1292754601.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/53z7x1292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/53z7x1292754601.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/7605l1292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/7605l1292754601.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/8605l1292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/8605l1292754601.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/9z9n61292754601.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292754496g7hdg1lsvu60nk3/9z9n61292754601.ps (open in new window)


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