Home » date » 2010 » Dec » 02 »

Paper interactiemodel met geslacht

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 02 Dec 2010 11:56:05 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76.htm/, Retrieved Thu, 02 Dec 2010 12:57:57 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76.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 4818 4488 5 73 68 0 4964 54 3132 2916 12 58 54 1 3132 82 5576 3362 11 68 41 1 2788 61 3782 2989 6 62 49 1 3038 65 4225 3185 12 65 49 1 3185 77 6237 5544 11 81 72 1 5832 66 4818 5148 12 73 78 1 5694 66 4224 3828 7 64 58 0 3712 66 4488 3828 8 68 58 1 3944 48 2448 1104 13 51 23 1 1173 57 3876 2223 12 68 39 1 2652 80 4880 5040 13 61 63 1 3843 60 4140 2760 12 69 46 1 3174 70 5110 4060 12 73 58 1 4234 85 5185 3315 11 61 39 0 2379 59 3658 2596 12 62 44 0 2728 72 4536 3528 12 63 49 1 3087 70 4830 3990 12 69 57 1 3933 74 3478 5624 11 47 76 0 3572 70 4620 4410 13 66 63 0 4158 51 2958 918 9 58 18 1 1044 70 4410 2800 11 63 40 0 2520 71 4899 4189 11 69 59 1 4071 72 4248 4464 11 59 62 0 3658 50 2950 3500 9 59 70 1 4130 69 4347 4485 11 63 65 0 4095 73 4745 4088 12 65 56 0 3640 66 4290 2970 12 65 45 1 2925 73 5183 4161 10 71 57 0 4047 58 3480 2900 12 60 50 1 3000 78 6318 3120 12 81 40 0 3240 83 5561 4814 12 67 58 1 3886 76 5016 3724 9 66 49 0 3234 77 4774 3773 9 62 49 1 3038 79 4977 2133 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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Vrienden_vinden[t] = + 16.3447958221408 -0.197146049099005Groepsgevoel[t] + 0.00149711765385549InteractieGR_NV[t] + 0.00253721848070092InteractieGR_U[t] + 0.0378045021275467NVC[t] -0.0261869488673119Uitingsangst[t] -0.203206658726088Geslacht[t] -0.0025083063183694InteractieNV_U[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16.34479582214088.8961131.83730.0683170.034159
Groepsgevoel-0.1971460490990050.136624-1.4430.1512920.075646
InteractieGR_NV0.001497117653855490.0019780.7570.4503570.225178
InteractieGR_U0.002537218480700920.0010832.34340.0205370.010269
NVC0.03780450212754670.1467360.25760.7970720.398536
Uitingsangst-0.02618694886731190.101626-0.25770.7970390.398519
Geslacht-0.2032066587260880.315033-0.6450.5199770.259988
InteractieNV_U-0.00250830631836940.001589-1.57890.116640.05832


Multiple Linear Regression - Regression Statistics
Multiple R0.31832226596757
R-squared0.101329065010728
Adjusted R-squared0.0557443074388085
F-TEST (value)2.22287164412052
F-TEST (DF numerator)7
F-TEST (DF denominator)138
p-value0.0359099831774408
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.74575675541985
Sum Squared Residuals420.577997574979


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1510.4610895472160-5.46108954721604
21210.50575458909761.49424541090236
31111.3575529328106-0.357552932810554
4610.8020092162753-4.80200921627535
51210.91863544033701.08136455966298
61110.91346735204850.0865326479515379
7129.839513984669742.16048601533026
8710.9592659436869-3.95926594368691
9810.7205892882272-2.72058928822717
101311.52809849910401.47190150089603
111211.24471585624590.755284143754139
121311.48029619868791.51970380131212
131210.95616305557061.04383694442937
141210.91346063836251.08653936163752
151111.0783388400441-0.0783388400440663
161211.12524822423700.87475177576303
171211.04468764081860.955312359181432
181210.94663154382021.05336845617981
191112.0592134412493-1.05921344124933
201311.06617113591141.93382886408861
21911.9474054921619-2.94740549216192
221111.2643467417279-0.264346741727860
231110.95917292082710.0408270791729007
241111.2676696615962-0.267669661596166
2599.61912257973922-0.619122579739225
261111.0371313455004-0.0371313455004201
271211.28969515741960.710304842580403
281211.03020750363320.969792496366781
291011.3104090312211-1.31040903122109
301210.70902507430121.29097492569875
311212.2300892353863-0.230089235386269
321211.584888382440.415111617559994
33911.4199138767990-2.41991387679899
34911.1219924321854-2.12199243218543
351210.83809983423891.16190016576113
361411.38002509445132.61997490554874
371212.0767165361674-0.0767165361674068
381110.41673400505980.583265994940186
39911.0933739990293-2.09337399902927
401111.2049021622482-0.204902162248184
4179.09509598250463-2.09509598250463
421511.08605205680573.91394794319435
431110.77570382943380.224296170566164
441211.66561984401180.334380155988154
451210.79087584705451.20912415294549
46911.8690371585552-2.86903715855518
471210.58294739347071.41705260652932
481111.3640779465228-0.36407794652277
491110.51083453870150.489165461298541
50811.1964949157716-3.19649491577159
51710.3571030183603-3.35710301836032
521211.76414410717580.235855892824211
53811.6914284737428-3.69142847374281
541010.2960202683325-0.296020268332538
551210.18194427626561.81805572373441
561511.06123612374723.93876387625275
571211.59194806961070.408051930389264
581211.26355946292920.736440537070776
591210.89919363803861.10080636196138
601210.53562787619591.46437212380407
6189.37630830245887-1.37630830245887
621011.1603449004228-1.16034490042275
631412.28135213914591.71864786085406
641010.9139228043237-0.913922804323727
651210.96129890190721.03870109809281
661411.00583317556742.99416682443264
67611.3129156136073-5.31291561360731
681110.72017638138200.279823618618013
691011.2092891496837-1.20928914968373
701412.66459285143711.33540714856287
711210.98191467501451.0180853249855
721311.22852237103811.77147762896191
731110.91504618287650.0849538171235077
741110.90205867119640.0979413288035835
751211.15034864787750.84965135212255
761310.96752580660192.0324741933981
771210.21403932974911.78596067025092
78810.0654876293763-2.06548762937633
791211.41030982046030.589690179539671
801111.2090531474979-0.209053147497859
811011.1523426364216-1.15234263642157
821210.933135116861.06686488314000
831111.1285530630626-0.128553063062625
841211.01915243946010.980847560539913
851210.98526537864801.01473462135197
861010.600190927754-0.600190927754004
871211.38928221265290.61071778734711
881211.05799173278650.942008267213462
891111.3738555422094-0.373855542209382
901011.0019076418342-1.00190764183418
911211.27907226864370.720927731356286
921110.94593377185710.054066228142859
931210.34917156077611.65082843922388
94129.545557075666882.45444292433312
95109.510198879428580.489801120571421
961111.0730925847360-0.0730925847360255
971010.9088557876422-0.908855787642202
981111.0951876608556-0.0951876608555994
991110.62967160219240.370328397807585
1001211.19338823380270.806611766197255
1011110.85328477255100.146715227448979
1021110.66474965665360.335250343346360
10378.71540157805907-1.71540157805907
1041210.57295333212251.42704666787751
105810.4807030617249-2.48070306172492
1061010.9779031282676-0.977903128267615
1071211.20737012880010.792629871199907
1081110.9910827268840.00891727311599877
1091311.27442387902581.72557612097419
110911.4267762892745-2.42677628927451
1111111.2677461539259-0.267746153925875
1121311.15911930568451.84088069431548
113810.6887640660184-2.6887640660184
1141211.07746189185010.92253810814987
1151110.45308913864040.546910861359569
1161110.77157972224610.228420277753937
1171210.76762064121831.23237935878171
1181311.24889731326391.75110268673606
1191111.2005361564225-0.200536156422495
1201010.7033667493923-0.703366749392315
1211010.8205647421861-0.820564742186053
1221010.8044356144577-0.804435614457724
1231210.99410378158061.00589621841937
1241211.19423367425790.805766325742107
1251310.86123990715082.13876009284922
1261111.0093864451284-0.00938644512836206
1271110.08962502431040.910374975689612
1281211.00976600257630.990233997423652
129910.6992855176582-1.69928551765816
1301111.9021591043889-0.902159104388912
1311210.85859581561881.14140418438122
1321210.86137123892021.13862876107980
1331310.93734327184802.06265672815195
134610.752966216812-4.752966216812
1351111.8801109810361-0.880110981036071
1361011.8887523676348-1.88875236763478
1371211.14080757453050.8591924254695
1381111.0132255952889-0.0132255952889118
1391212.1418334051205-0.141833405120458
1401211.05520564767200.94479435232796
141711.0720461727568-4.0720461727568
1421211.06122596417720.938774035822819
1431212.1445254574265-0.144525457426503
144910.9067952306775-1.90679523067753
1451211.08985059085340.91014940914661
1461211.18479908320620.815200916793756


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.995934106615810.008131786768381090.00406589338419054
120.9938823685700770.01223526285984520.00611763142992261
130.9902150302841420.01956993943171640.0097849697158582
140.9835017909507630.03299641809847460.0164982090492373
150.985937934351990.02812413129601940.0140620656480097
160.9965528634391320.006894273121735240.00344713656086762
170.9936370019762360.01272599604752820.00636299802376408
180.9900600000655940.01987999986881100.00993999993440552
190.9844281513472860.03114369730542870.0155718486527143
200.9945264440874770.01094711182504550.00547355591252275
210.9974608957439960.005078208512008670.00253910425600433
220.9960993686917790.007801262616442380.00390063130822119
230.9934745063759750.01305098724804960.00652549362402482
240.9897882472508190.02042350549836260.0102117527491813
250.9850073175034610.02998536499307770.0149926824965389
260.9789136828157830.0421726343684350.0210863171842175
270.9739973832874550.05200523342509040.0260026167125452
280.965374856263370.06925028747326110.0346251437366306
290.9536689810302110.0926620379395770.0463310189697885
300.9437614719365550.1124770561268890.0562385280634447
310.9254696006026390.1490607987947230.0745303993973614
320.903456190695040.193087618609920.09654380930496
330.9076528175185650.1846943649628710.0923471824814355
340.924581017981620.1508379640367590.0754189820183796
350.9076635641883670.1846728716232650.0923364358116327
360.9463294411561280.1073411176877440.0536705588438721
370.9298101094802070.1403797810395860.0701898905197932
380.9096830172324720.1806339655350560.090316982767528
390.9188449522610470.1623100954779060.0811550477389528
400.8970251959381340.2059496081237330.102974804061866
410.8920431630410120.2159136739179750.107956836958988
420.949263830282510.1014723394349820.0507361697174909
430.9336117900934720.1327764198130550.0663882099065277
440.9203294286352450.1593411427295110.0796705713647553
450.9195205984912090.1609588030175820.0804794015087912
460.942487421668510.1150251566629780.0575125783314892
470.9415235037378760.1169529925242490.0584764962621245
480.9247313678084810.1505372643830380.075268632191519
490.9088515677240640.1822968645518730.0911484322759363
500.9481567986163610.1036864027672780.0518432013836388
510.9703820418305410.05923591633891730.0296179581694587
520.9609196815733130.07816063685337380.0390803184266869
530.9841385283503870.03172294329922590.0158614716496130
540.9787827867116730.04243442657665440.0212172132883272
550.9793374409126580.04132511817468330.0206625590873416
560.9951528996186980.009694200762604250.00484710038130212
570.9931821565905980.01363568681880370.00681784340940185
580.9909954809974840.01800903800503110.00900451900251553
590.9893297528236330.02134049435273410.0106702471763671
600.9880841044462730.02383179110745320.0119158955537266
610.9871727847594580.02565443048108380.0128272152405419
620.9843640506373720.03127189872525680.0156359493626284
630.983694717494340.0326105650113180.016305282505659
640.9793030033779890.04139399324402280.0206969966220114
650.9746175985198770.05076480296024690.0253824014801235
660.9851034713300420.02979305733991640.0148965286699582
670.9993935613342020.0012128773315960.000606438665798
680.999111985860070.001776028279861790.000888014139930897
690.9989627361240560.002074527751887950.00103726387594397
700.9985659509543320.002868098091336150.00143404904566807
710.9981900781742440.003619843651511490.00180992182575574
720.998134688175690.0037306236486180.001865311824309
730.9972402350934970.005519529813005450.00275976490650272
740.996004203789730.00799159242053880.0039957962102694
750.9947359417046650.01052811659067070.00526405829533536
760.9953224247238090.009355150552382760.00467757527619138
770.9957902090456140.008419581908772180.00420979095438609
780.9962162501293520.007567499741296020.00378374987064801
790.9946678235773130.01066435284537470.00533217642268733
800.992400594634520.01519881073095950.00759940536547977
810.9913571549250480.01728569014990480.00864284507495242
820.9894419283060790.0211161433878420.010558071693921
830.9855473801967530.02890523960649420.0144526198032471
840.9820504948634890.03589901027302250.0179495051365112
850.9780758517238210.04384829655235710.0219241482761785
860.9729926663585370.05401466728292680.0270073336414634
870.9658405348890530.06831893022189310.0341594651109466
880.9569211307856060.08615773842878820.0430788692143941
890.9462941681390390.1074116637219220.0537058318609612
900.937421036692950.1251579266140990.0625789633070496
910.925798429225470.1484031415490590.0742015707745296
920.905667018093370.1886659638132590.0943329819066295
930.9026101066251770.1947797867496460.0973898933748229
940.9447015829736860.1105968340526290.0552984170263143
950.933809294316830.1323814113663400.0661907056831698
960.9145370791148720.1709258417702570.0854629208851284
970.8984955322982450.2030089354035100.101504467701755
980.878262341151760.2434753176964790.121737658848240
990.8498827930918620.3002344138162760.150117206908138
1000.8404894224800280.3190211550399450.159510577519972
1010.8042100188579850.391579962284030.195789981142015
1020.7641102220400360.4717795559199280.235889777959964
1030.7630781388076390.4738437223847220.236921861192361
1040.7259471273729080.5481057452541850.274052872627092
1050.737886877906830.5242262441863410.262113122093171
1060.7004559579814050.599088084037190.299544042018595
1070.6836836373583180.6326327252833640.316316362641682
1080.6301762400606290.7396475198787420.369823759939371
1090.6023930942380140.7952138115239730.397606905761986
1100.5922545915569510.8154908168860970.407745408443049
1110.5381783282926820.9236433434146360.461821671707318
1120.5259966783084920.9480066433830160.474003321691508
1130.6144468569857420.7711062860285160.385553143014258
1140.5704689849649430.8590620300701140.429531015035057
1150.5077518115020740.9844963769958520.492248188497926
1160.4461194031081170.8922388062162330.553880596891883
1170.4212422902921680.8424845805843370.578757709707832
1180.4619943684882420.9239887369764840.538005631511758
1190.3979446487274150.795889297454830.602055351272585
1200.3470246132317640.6940492264635270.652975386768236
1210.3021149899608790.6042299799217570.697885010039121
1220.2556388265577680.5112776531155370.744361173442232
1230.2110958240503850.422191648100770.788904175949615
1240.1641667677527350.3283335355054690.835833232247265
1250.2179304990806280.4358609981612550.782069500919372
1260.1652314582080030.3304629164160070.834768541791997
1270.1398100822930120.2796201645860230.860189917706988
1280.1212038471591020.2424076943182040.878796152840898
1290.12365987910520.24731975821040.8763401208948
1300.0855228611780760.1710457223561520.914477138821924
1310.07052818394893080.1410563678978620.92947181605107
1320.0527800018532640.1055600037065280.947219998146736
1330.03051119594840590.06102239189681170.969488804051594
1340.3609489518903610.7218979037807230.639051048109639
1350.3956056807328110.7912113614656220.604394319267189


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.128NOK
5% type I error level480.384NOK
10% type I error level580.464NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/10dcsv1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/10dcsv1291290953.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/4z2dm1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/4z2dm1291290953.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/5abup1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/5abup1291290953.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/6abup1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/6abup1291290953.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/73kta1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/73kta1291290953.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/83kta1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/83kta1291290953.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/9dcsv1291290953.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291291061q073jab54u0ti76/9dcsv1291290953.ps (open in new window)


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