Home » date » 2010 » Dec » 01 »

Paper interactie met trend

*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: Wed, 01 Dec 2010 14:45:13 +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/01/t1291214664gxaix2cyhq3q5o6.htm/, Retrieved Wed, 01 Dec 2010 15:44:39 +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/01/t1291214664gxaix2cyhq3q5o6.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 «
66 4964 4818 4488 5 73 68 54 3132 3132 2916 12 58 54 82 2788 5576 3362 11 68 41 61 3038 3782 2989 6 62 49 65 3185 4225 3185 12 65 49 77 5832 6237 5544 11 81 72 66 5694 4818 5148 12 73 78 66 3712 4224 3828 7 64 58 66 3944 4488 3828 8 68 58 48 1173 2448 1104 13 51 23 57 2652 3876 2223 12 68 39 80 3843 4880 5040 13 61 63 60 3174 4140 2760 12 69 46 70 4234 5110 4060 12 73 58 85 2379 5185 3315 11 61 39 59 2728 3658 2596 12 62 44 72 3087 4536 3528 12 63 49 70 3933 4830 3990 12 69 57 74 3572 3478 5624 11 47 76 70 4158 4620 4410 13 66 63 51 1044 2958 918 9 58 18 70 2520 4410 2800 11 63 40 71 4071 4899 4189 11 69 59 72 3658 4248 4464 11 59 62 50 4130 2950 3500 9 59 70 69 4095 4347 4485 11 63 65 73 3640 4745 4088 12 65 56 66 2925 4290 2970 12 65 45 73 4047 5183 4161 10 71 57 58 3000 3480 2900 12 60 50 78 3240 6318 3120 12 81 40 83 3886 5561 4814 12 67 58 76 3234 5016 3724 9 66 49 77 3038 4774 3773 9 62 49 79 1701 4977 2133 12 63 27 71 3723 5183 3621 14 73 51 79 4125 4345 5925 12 55 7 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 time13 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Vrienden_vinden[t] = + 14.6555338816014 -0.189702225408932Groepsgevoel[t] -0.00275923492011103`InteractieNV-U`[t] + 0.00133597925850489InteractieGR_NV[t] + 0.00259417562874793interacteiGR_U[t] + 0.0629106108368074NV[t] -0.0129269007861096Uitingsangst[t] + 0.00139848981226941t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)14.65553388160148.6015071.70380.0906630.045331
Groepsgevoel-0.1897022254089320.13622-1.39260.1659750.082987
`InteractieNV-U`-0.002759234920111030.001548-1.78220.0769210.03846
InteractieGR_NV0.001335979258504890.0019650.67970.4978040.248902
interacteiGR_U0.002594175628747930.0010822.39780.0178310.008915
NV0.06291061083680740.1424430.44170.6594310.329716
Uitingsangst-0.01292690078610960.099773-0.12960.8971010.44855
t0.001398489812269410.0034460.40580.6854890.342744


Multiple Linear Regression - Regression Statistics
Multiple R0.315743758497003
R-squared0.0996941210298137
Adjusted R-squared0.0540264315168332
F-TEST (value)2.18303404645591
F-TEST (DF numerator)7
F-TEST (DF denominator)138
p-value0.039317139078515
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.74734405362109
Sum Squared Residuals421.343151358047


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1510.2325969779217-5.23259697792173
21210.4721528765071.52784712349301
31111.3303573241824-0.330357324182428
4610.7804406469640-4.78044064696402
51210.90645176914691.09354823085308
61110.84463035215470.155369647845288
7129.809633332226822.19036666777318
8710.7542944423909-3.75429444239091
9810.7198913983299-2.71989139832994
101311.37279895235941.62720104764058
111211.25927984800900.740720151991024
121311.50977439056111.49022560943888
131210.97084266532571.02915733467427
141210.91527771776701.08472228223304
151110.84774498911630.152255010883736
161210.91145185454151.08854814545846
171211.04519365958450.95480634041554
181210.95701935901461.04298064098539
191111.9986872198809-0.9986872198809
201310.88169336417522.11830663582481
21911.8788585034405-2.87885850344049
221111.0555256219415-0.055525621941502
231110.97610488107720.0238951189228415
241111.1031541573789-0.103154157378949
2599.63734113395408-0.637341133954082
261110.86887352892640.131126471073647
271211.11091035477400.889089645225967
281211.04711438341550.952885616584494
291011.1297692222719-1.12976922227186
301210.71766349578731.28233650421273
311212.0754207059897-0.0754207059897278
321211.61560676091110.384393239088869
33911.2416133615161-2.24161336151608
34911.1462848521644-2.14628485216442
351210.82143416580841.17856583419162
361411.21548300275802.78451699724203
371212.0048446674931-0.00484466749312473
381110.46300606680460.536993933195374
39911.1230603243114-2.12306032431137
401111.0342007778956-0.0342007778956068
4179.12620348486891-2.12620348486891
421511.12043505994713.87956494005288
431110.78481082714580.21518917285419
441211.67580606118170.324193938818344
451210.64685921368641.3531407863136
46911.7640574235604-2.76405742356042
471210.43684985920811.5631501407919
481111.1815111847117-0.181511184711707
491110.36186917352300.638130826476978
50811.241693610293-3.241693610293
51710.2177645082862-3.21776450828619
521211.60799873145930.392001268540721
53811.7135891042698-3.71358910426981
541010.3308463521912-0.330846352191219
551210.25214884278981.74785115721019
561510.90550523955864.09449476044142
571211.64161711921760.358382880782354
581211.12636213056530.873637869434698
591210.74273928629201.25726071370795
601210.41183102267861.58816897732136
6189.23556544128129-1.23556544128129
621011.2218180057833-1.22181800578332
631412.27485623046311.72514376953694
641010.9540368263685-0.95403682636847
651210.83427507160841.16572492839162
661410.87344466891933.12655533108067
67611.1794049388958-5.17940493889579
681110.70667299877720.293327001222756
691011.0813919884717-1.08139198847166
701412.59124971850571.40875028149431
711211.05836453583550.941635464164523
721311.10405486137571.89594513862431
731110.77980096698300.220199033017044
741110.96094953960870.0390504603912553
751211.24010275764180.759897242358156
761310.81481744104432.18518255895565
771210.30349748140231.69650251859767
78810.0059609097244-2.00596090972436
791211.29932512089350.700674879106457
801111.2924957867929-0.292495786792911
811011.0306089400744-1.03060894007436
821211.03762979650320.96237020349675
831111.0261932719207-0.0261932719206823
841211.09269373432660.907306265673434
851211.06039188683950.93960811316051
861010.5013877991308-0.501387799130835
871211.48779729402350.512202705976547
881210.90726113883771.09273886116228
891111.2981905127119-0.298190512711885
901010.9570044651397-0.957004465139702
911211.39237049327090.607629506729072
921111.0669985362206-0.0669985362206418
931210.45580670610261.54419329389738
94129.65852892778362.34147107221641
95109.628757128733630.371242871266372
961111.1142176725471-0.114217672547086
971011.0207218184545-1.02072181845446
981111.0081827586954-0.00818275869543628
991110.56795808260950.432041917390542
1001211.30868477783490.691315222165091
1011110.95220108977580.0477989102242155
1021110.74958034296190.250419657038056
10378.82722317841054-1.82722317841054
1041210.67057961691821.32942038308181
105810.6133148015045-2.61331480150449
1061011.1028672858380-1.10286728583804
1071211.34582868574960.654171314250391
1081111.129623558367-0.129623558367004
1091311.20851439672621.79148560327376
110911.5214041857192-2.52140418571916
1111111.3422873517222-0.342287351722197
1121311.24024175778311.75975824221687
113810.8477899077600-2.84778990775997
1141211.18546378306890.814536216931106
1151110.60357755954140.396422440458647
1161110.72068487706690.279315122933137
1171210.91796416511511.08203583488489
1181311.40152858789711.59847141210286
1191111.3532535599571-0.353253559957125
1201010.8372558503707-0.8372558503707
1211010.9537545774435-0.953754577443539
1221010.9732312596289-0.973231259628935
1231210.93710881143771.06289118856232
1241211.15252314555790.847476854442104
1251311.02308079210641.97691920789362
1261111.0781914722327-0.0781914722326884
1271110.05105718109070.948942818909263
1281211.16925005908980.830749940910168
129910.7912838887393-1.79128388873930
1301111.8399841608819-0.839984160881925
1311211.00793095137330.992069048626738
1321211.02604443249660.973955567503418
1331310.84209940812782.15790059187222
134610.9254722763201-4.92547227632007
1351112.0345742441566-1.03457424415665
1361011.8965856390993-1.89658563909928
1371211.08426823668510.91573176331488
1381111.1807448746903-0.180744874690319
1391212.2199971678920-0.219997167891952
1401211.21108680064500.788913199355022
141711.2204359048098-4.22043590480985
1421211.21387570206210.786124297937918
1431212.2997178920424-0.299717892042364
144911.0963491009105-2.09634910091047
1451211.32483688763200.67516311236798
1461211.36487821424370.635121785756275


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.9924848780811170.01503024383776560.00751512191888278
120.9996580994353830.0006838011292344480.000341900564617224
130.9991118895394650.001776220921069250.000888110460534626
140.9982886906468050.003422618706389020.00171130935319451
150.9966185363350.006762927330000750.00338146366500038
160.9941194868935670.01176102621286580.00588051310643291
170.9901273856879420.01974522862411660.00987261431205828
180.9848705141473920.03025897170521530.0151294858526076
190.9795467267281770.04090654654364520.0204532732718226
200.9696580381971610.06068392360567790.0303419618028390
210.990437687966410.01912462406717990.00956231203358996
220.9882850420384820.02342991592303690.0117149579615185
230.9863373555946530.02732528881069460.0136626444053473
240.9816147195259740.03677056094805220.0183852804740261
250.9829139255324580.03417214893508340.0170860744675417
260.9749020623808230.05019587523835420.0250979376191771
270.9636701971807910.07265960563841730.0363298028192086
280.949113517339640.1017729653207220.0508864826603611
290.9507156873213240.0985686253573520.049284312678676
300.9355887877887450.1288224244225090.0644112122112546
310.9154619490526060.1690761018947880.0845380509473938
320.891437100884660.2171257982306790.108562899115340
330.9218793003086260.1562413993827480.0781206996913738
340.9355270242878390.1289459514243230.0644729757121613
350.9203401934134620.1593196131730770.0796598065865383
360.93452220336220.1309555932756000.0654777966377998
370.9142142340052370.1715715319895250.0857857659947627
380.8894862348714830.2210275302570330.110513765128517
390.9103283595405080.1793432809189840.0896716404594922
400.8860020184958960.2279959630082090.113997981504104
410.8935988017788590.2128023964422830.106401198221142
420.9404600040253380.1190799919493240.0595399959746618
430.9223664609151860.1552670781696280.0776335390848138
440.9105167745692970.1789664508614060.0894832254307028
450.8951573639931280.2096852720137440.104842636006872
460.9360502959322340.1278994081355310.0639497040677657
470.9266281335701880.1467437328596240.0733718664298121
480.9095323904588780.1809352190822440.0904676095411222
490.886733832878230.2265323342435390.113266167121770
500.9427502500434760.1144994999130470.0572497499565236
510.9710029572077660.05799408558446810.0289970427922340
520.9613406298884150.07731874022317040.0386593701115852
530.9873377685550950.02532446288980900.0126622314449045
540.9829663722105160.03406725557896710.0170336277894835
550.9820726584343150.03585468313137090.0179273415656854
560.9950677921430580.009864415713884820.00493220785694241
570.992938540763820.01412291847236230.00706145923618113
580.9903929078206050.01921418435879020.0096070921793951
590.987977532013790.02404493597241830.0120224679862091
600.9858034844054160.02839303118916790.0141965155945839
610.9848296181880720.03034076362385600.0151703818119280
620.9836495747606770.03270085047864670.0163504252393233
630.9809507146583320.03809857068333640.0190492853416682
640.9779020077492690.04419598450146280.0220979922507314
650.971971183994710.05605763201057940.0280288160052897
660.9814235405655390.03715291886892190.0185764594344609
670.9994251757777160.001149648444568560.000574824222284281
680.9991538031143980.001692393771203650.000846196885601823
690.9990970690749450.001805861850110230.000902930925055114
700.9987114368856120.002577126228776370.00128856311438818
710.9981314867544670.003737026491066320.00186851324553316
720.9979002645659740.004199470868051080.00209973543402554
730.9969305540672580.006138891865483970.00306944593274199
740.9956564106292660.008687178741468250.00434358937073413
750.9938244875063150.01235102498737090.00617551249368543
760.9941140017163980.01177199656720380.00588599828360188
770.9935966135497420.01280677290051510.00640338645025755
780.994826294359550.01034741128089910.00517370564044955
790.9927011607707850.01459767845843070.00729883922921536
800.9901973754072820.01960524918543640.00980262459271822
810.9892298875051740.02154022498965210.0107701124948260
820.9855141719095860.02897165618082750.0144858280904138
830.9804929670973550.03901406580528970.0195070329026448
840.9742083667127550.05158326657449050.0257916332872453
850.9664668678217680.0670662643564640.033533132178232
860.9586078154608170.08278436907836640.0413921845391832
870.9458595095324260.1082809809351480.0541404904675742
880.9333125179483440.1333749641033130.0666874820516564
890.9186771764780040.1626456470439910.0813228235219957
900.9093117179926570.1813765640146870.0906882820073433
910.8874121021600050.225175795679990.112587897839995
920.8615782154024560.2768435691950880.138421784597544
930.8465322364599720.3069355270800550.153467763540028
940.880714943733050.2385701125339000.119285056266950
950.8567042709265210.2865914581469570.143295729073479
960.8255708193147050.3488583613705900.174429180685295
970.8131977862698170.3736044274603660.186802213730183
980.7760443830579560.4479112338840870.223955616942044
990.7340158359136160.5319683281727680.265984164086384
1000.6979098067190150.604180386561970.302090193280985
1010.648732271306510.702535457386980.35126772869349
1020.596239658148860.807520683702280.40376034185114
1030.5892867091754580.8214265816490850.410713290824542
1040.5429973870278320.9140052259443350.457002612972168
1050.6095945127385910.7808109745228190.390405487261409
1060.59218428361510.8156314327698010.407815716384901
1070.5402761521762870.9194476956474250.459723847823713
1080.4856513765232480.9713027530464960.514348623476752
1090.4708541688715660.9417083377431330.529145831128434
1100.5225301358199130.9549397283601750.477469864180087
1110.4775068362089290.9550136724178580.522493163791071
1120.4577989859577340.9155979719154680.542201014042266
1130.5992516014803770.8014967970392450.400748398519623
1140.5382026628224600.9235946743550810.461797337177540
1150.4736764694252570.9473529388505130.526323530574743
1160.4095673065313350.819134613062670.590432693468665
1170.3552502803991160.7105005607982320.644749719600884
1180.3418272850359820.6836545700719640.658172714964018
1190.2825145585493350.5650291170986710.717485441450665
1200.2426018388510570.4852036777021140.757398161148943
1210.2209770176510190.4419540353020370.779022982348981
1220.2209663503203190.4419327006406370.779033649679681
1230.1806377917468040.3612755834936090.819362208253196
1240.1384581312530640.2769162625061290.861541868746936
1250.1350212619594140.2700425239188280.864978738040586
1260.09883414085708160.1976682817141630.901165859142918
1270.1144516233528860.2289032467057710.885548376647114
1280.1079822690574110.2159645381148210.892017730942589
1290.1111400652555600.2222801305111200.88885993474444
1300.07417527074455480.1483505414891100.925824729255445
1310.0605615708483110.1211231416966220.939438429151689
1320.04664580636023460.09329161272046910.953354193639765
1330.06011519459438090.1202303891887620.939884805405619
1340.1811668219779330.3623336439558670.818833178022067
1350.1009584047951160.2019168095902310.899041595204884


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.104NOK
5% type I error level440.352NOK
10% type I error level550.44NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/102be41291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/102be41291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/1drhs1291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/1drhs1291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/2o1gd1291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/2o1gd1291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/3o1gd1291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/3o1gd1291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/4o1gd1291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/4o1gd1291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/5gsgg1291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/5gsgg1291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/6gsgg1291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/6gsgg1291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/7rjx11291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/7rjx11291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/8rjx11291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/8rjx11291214699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/92be41291214699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291214664gxaix2cyhq3q5o6/92be41291214699.ps (open in new window)


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