Home » date » 2010 » Nov » 20 »

WS7 - populariteit daginvloed?

*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: Sat, 20 Nov 2010 16:26:09 +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/Nov/20/t1290270312ctmcofsih5hcuma.htm/, Retrieved Sat, 20 Nov 2010 17:25:24 +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/Nov/20/t1290270312ctmcofsih5hcuma.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 «
13 13 14 13 3 1 12 12 8 13 5 1 15 10 12 16 6 1 12 9 7 12 6 1 10 10 10 11 5 1 12 12 7 12 3 1 15 13 16 18 8 1 9 12 11 11 4 1 12 12 14 14 4 1 11 6 6 9 4 1 11 5 16 14 6 1 11 12 11 12 6 1 15 11 16 11 5 1 7 14 12 12 4 1 11 14 7 13 6 1 11 12 13 11 4 1 10 12 11 12 6 1 14 11 15 16 6 1 10 11 7 9 4 2 6 7 9 11 4 2 11 9 7 13 2 2 15 11 14 15 7 2 11 11 15 10 5 2 12 12 7 11 4 2 14 12 15 13 6 2 15 11 17 16 6 2 9 11 15 15 7 2 13 8 14 14 5 2 13 9 14 14 6 2 16 12 8 14 4 2 13 10 8 8 4 2 12 10 14 13 7 2 14 12 14 15 7 2 11 8 8 13 4 3 9 12 11 11 4 3 16 11 16 15 6 3 12 12 10 15 6 3 10 7 8 9 5 3 13 11 14 13 6 3 16 11 16 16 7 3 14 12 13 13 6 3 15 9 5 11 3 3 5 15 8 12 3 3 8 11 10 12 4 3 11 11 8 12 6 3 16 11 13 14 7 3 17 11 15 14 5 3 9 15 6 8 4 3 9 11 12 13 5 3 13 12 16 16 6 3 10 12 5 13 6 3 6 9 15 11 6 4 12 12 12 14 5 4 8 12 8 13 4 4 14 13 13 13 5 4 12 11 14 13 5 4 11 9 12 12 4 4 16 9 16 16 6 4 8 11 10 15 2 4 15 11 15 15 8 4 7 12 8 12 3 4 16 12 16 14 6 4 14 9 19 12 6 4 16 11 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Popularity[t] = + 0.305904887836174 + 0.094633084474476FindingFriends[t] + 0.243797535254599KnowingPeople[t] + 0.34915593440117Liked[t] + 0.627017042711136Celebrity[t] -0.00119728221808973Date[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.3059048878361741.4350880.21320.8314910.415745
FindingFriends0.0946330844744760.0963830.98180.3277590.163879
KnowingPeople0.2437975352545990.0615913.95830.0001165.8e-05
Liked0.349155934401170.0977093.57340.0004740.000237
Celebrity0.6270170427111360.1565944.00419.8e-054.9e-05
Date-0.001197282218089730.062964-0.0190.9848540.492427


Multiple Linear Regression - Regression Statistics
Multiple R0.706541857390106
R-squared0.499201396244261
Adjusted R-squared0.482508109452403
F-TEST (value)29.9043203695357
F-TEST (DF numerator)5
F-TEST (DF denominator)150
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.11251892472136
Sum Squared Residuals669.410431095885


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11311.36818147269921.63181852730078
21211.06479726211950.935202737880534
31513.52520608010351.47479391989646
41210.81496158175141.1850384182486
51010.6648142948774-0.664814294877374
6129.217809707041432.78219029295857
71516.73664142877-1.73664142876999
8910.4708609563698-1.47086095636979
91212.2497213653371-0.249721365337096
10117.98576290444763.01423709555239
111113.3289189299472-2.32891892994723
121112.0740509761932-1.07405097619323
131512.22223259087942.77776740912056
14711.2530805949745-4.25308059497451
151111.6372829385250-0.637282938524961
161110.9584560268790.0415439731210098
171012.0740509761932-2.07405097619323
181414.3512317703418-0.351231770341828
19108.70152857985651.29847142014350
2069.50890318127013-3.50890318127013
21118.654852063089952.34514793691005
221514.38409806117910.615901938820894
231111.6280818390056-0.628081839005588
24129.494473533133312.50552646686669
251413.39719976939470.602800230605293
261514.83762955863290.162370441367064
27914.6278955964337-5.62789559643371
281312.49700878793220.502991212067762
291313.2186589151178-0.218658915117850
301610.78573887159145.21426112840858
31138.501537096235454.49846290376455
321213.5911531079023-1.59115310790229
331414.4787311456536-0.478731145653582
341110.05685331707430.943146682925747
35910.4684663919336-1.46846639193361
361614.24347880675911.75652119324092
371212.8753266797060-0.875326679705963
38109.192613537706230.807386462293765
391313.0575718674475-0.0575718674475427
401615.21965178387140.780348216128617
411412.90840741666741.09159258333258
42158.094764884271466.90523511572854
4359.74311193128328-4.74311193128328
44810.4791917066057-2.47919170660571
451111.2456307215188-0.245630721518783
461613.78994730930522.21005269069475
471713.02350829439223.97649170560783
4898.485910165880540.514089834119459
49911.9429597542272-2.94295975422721
501314.6872678256347-1.68726782563472
511010.9580271346306-0.958027134630632
52612.4125940827328-6.41259408273276
531212.3855514908848-0.385551490884766
54810.4341883727541-2.43418837275407
551412.37482617621271.62517382378733
561212.4293575425183-0.429357542518318
571110.77632332594790.223676674052136
581614.40217128999321.59782871000679
59810.2714281421689-2.27142814216886
601515.2525180747087-0.252518074708661
6179.45801539564176-2.45801539564176
621613.98775867461432.01224132538570
631413.73694015815230.263059841847675
641613.75468645403182.24531354596821
6599.9405551571314-0.940555157131408
661412.28019309173821.71980690826181
671113.0456492705574-2.04564927055736
681310.46825194580942.53174805419057
691512.90601285223122.09398714776876
7055.59978555783491-0.59978555783491
711512.42816026030022.57183973969977
721312.27899580952010.721004190479895
731112.0459235889376-1.04592358893760
741113.9786356182437-2.97863561824366
751212.4729491480277-0.47294914802769
761213.3936079227404-1.39360792274044
771212.268270494848-0.26827049484801
781211.90046347162220.0995365283777986
791410.78214702493713.21785297506285
8067.99305006580217-1.99305006580217
8179.84003762088021-2.84003762088021
821411.98905841098322.01094158901678
831413.85884757096030.141152429039728
841011.2529786356608-1.25297863566079
85138.725425507659884.27457449234012
861212.4076924670499-0.407692467049949
8799.2896929206399-0.289692920639904
881212.0153499032228-0.0153499032227770
891615.00632597501790.993674024982118
901010.2318023246968-0.231802324696840
911413.12625768297840.873742317021613
921013.5084943543410-3.50849435434101
931615.31069302169160.68930697830841
941513.4469420068281.55305799317201
951211.34641443791720.653585562082827
96109.733481939515550.266518060484451
97810.2374723303494-2.23747233034939
9888.60814451162312-0.608144511623122
991112.8413755934610-1.84137559346105
1001312.41722049950400.582779500496046
1011615.45985747247170.540142527528288
1021614.71773955203581.28226044796418
1031415.8150515519863-1.81505155198634
104118.8841179908942.11588200910600
10546.96583560972476-2.96583560972476
1061414.5695579373496-0.56955793734961
107910.3457059202035-1.34570592020351
1081415.2489262280544-1.24892622805439
109810.4510643193501-2.45106431935008
110810.8995405077844-2.89954050778435
1111112.1926934752815-1.19269347528154
1121213.6396980631175-1.63969806311749
1131111.4408330762675-0.44083307626747
1141413.60193015659740.3980698434026
1151514.33430559845510.665694401544895
1161613.40193867297642.59806132702365
1171613.49657175745082.50342824254917
1181112.7320984147256-1.73209841472558
1191413.74036929270540.259630707294573
1201410.96199764824253.03800235175745
1211211.40578666711820.594213332881809
1221412.56420483197211.43579516802792
123810.2306050424788-2.23060504247875
1241313.8350023771799-0.835002377179903
1251613.74036929270542.25963070729457
1261210.91917443270291.08082556729709
1271615.44891771167540.551082288324562
1281213.3912133583043-1.39121335830426
1291111.5158322358234-0.515832235823396
13046.42206570808217-2.42206570808217
1311615.44891771167540.551082288324562
1321512.56518766806602.43481233193401
1331011.4780643293033-1.47806432930331
1341313.2089681705627-0.208968170562678
1351513.25277422219621.74722577780377
1361210.67439406135441.32560593864560
1371413.64573620823100.354263791769049
138710.6722139430424-3.6722139430424
1391914.08832794488854.91167205511149
1401212.6790912635727-0.679091263572652
1411212.2851464414440-0.28514644144402
1421313.4953744752327-0.495374475232739
1431512.93965225861282.06034774138719
14488.28363660463377-0.283636604633769
1451210.91699431439091.08300568560910
1461010.8028762727601-0.80287627276006
147811.4055722209940-3.40557222099401
1481014.3722271983119-4.37222719831194
1491513.88833646126751.11166353873254
1501614.60977214232891.39022785767111
1511313.1886128641229-0.188612864122853
1521615.06210635756460.937893642435368
153910.2222240669521-1.22222406695212
1541413.16048547686720.839514523132779
1551412.69524582864741.30475417135261
1561210.15409692084141.84590307915861


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.1097323263420690.2194646526841370.890267673657931
100.04783346061747790.09566692123495580.952166539382522
110.07256329705488770.1451265941097750.927436702945112
120.03790860604819140.07581721209638290.962091393951809
130.4402168488493220.8804336976986440.559783151150678
140.7602912191048020.4794175617903950.239708780895198
150.6790903837862120.6418192324275760.320909616213788
160.589628206579950.8207435868400990.410371793420050
170.5297430233366890.940513953326620.47025697666331
180.4422181255603020.8844362511206040.557781874439698
190.3606956713455170.7213913426910330.639304328654483
200.5476487928621490.9047024142757020.452351207137851
210.5089890058391230.9820219883217550.491010994160877
220.5513269796458050.897346040708390.448673020354195
230.4848080209580340.9696160419160680.515191979041966
240.4724393460955650.944878692191130.527560653904435
250.4285154894072160.8570309788144330.571484510592784
260.3650298407677910.7300596815355820.634970159232209
270.6332280842098670.7335438315802660.366771915790133
280.5763878959184730.8472242081630540.423612104081527
290.5151430663324310.9697138673351380.484856933667569
300.675753256286070.6484934874278620.324246743713931
310.7856144386220790.4287711227558420.214385561377921
320.7470040565092130.5059918869815740.252995943490787
330.6991556691883810.6016886616232390.300844330811619
340.668006570219060.663986859561880.33199342978094
350.6741277603951170.6517444792097670.325872239604883
360.6818794403440560.6362411193118890.318120559655944
370.6488953604462430.7022092791075150.351104639553757
380.599646387680870.800707224638260.40035361231913
390.5456774647669080.9086450704661850.454322535233092
400.5168993035186230.9662013929627540.483100696481377
410.476959800621120.953919601242240.52304019937888
420.7564668140056420.4870663719887160.243533185994358
430.9512084630217760.09758307395644830.0487915369782241
440.962390920518310.07521815896338140.0376090794816907
450.9511668016155970.09766639676880570.0488331983844028
460.9569971036914280.08600579261714430.0430028963085722
470.979388886253030.04122222749393950.0206111137469698
480.972757252239960.05448549552008080.0272427477600404
490.9804060113576630.0391879772846740.019593988642337
500.9772716076768810.04545678464623770.0227283923231189
510.9725246929242620.05495061415147690.0274753070757384
520.9972831623599020.005433675280195480.00271683764009774
530.9960840088038520.007831982392296630.00391599119614831
540.9966829885117850.006634022976429270.00331701148821464
550.9967068694267150.006586261146570420.00329313057328521
560.9953428405433430.009314318913314280.00465715945665714
570.9935068298823610.01298634023527720.00649317011763862
580.9929499949147360.01410001017052830.00705000508526415
590.9945024838018050.01099503239638970.00549751619819487
600.9927735691703120.01445286165937650.00722643082968827
610.9935141732017350.01297165359653050.00648582679826523
620.994323469641150.01135306071770120.00567653035885061
630.9924526977370180.01509460452596320.0075473022629816
640.9931701124782320.01365977504353660.0068298875217683
650.991321188244740.01735762351052110.00867881175526056
660.9907255015667320.01854899686653660.00927449843326828
670.990334306044440.01933138791111830.00966569395555914
680.9921381357893970.01572372842120550.00786186421060273
690.9924502821635570.01509943567288530.00754971783644266
700.9898321114738350.02033577705233090.0101678885261655
710.9915548686973490.01689026260530250.00844513130265125
720.9888733654720850.022253269055830.011126634527915
730.9860188432745340.02796231345093290.0139811567254665
740.989770688684290.02045862263142180.0102293113157109
750.98616400447990.02767199104020.0138359955201
760.9835767086890350.03284658262193080.0164232913109654
770.9782570615429190.04348587691416290.0217429384570814
780.9713884755314270.05722304893714620.0286115244685731
790.9824994858335960.03500102833280890.0175005141664045
800.981556018804750.03688796239050080.0184439811952504
810.9843825627560680.03123487448786450.0156174372439322
820.9856252078053580.02874958438928470.0143747921946423
830.9807462553530350.03850748929392930.0192537446469647
840.9760745474561430.0478509050877150.0239254525438575
850.9941302435197450.01173951296051020.00586975648025509
860.9918568108641980.01628637827160420.0081431891358021
870.98891400538420.02217198923159760.0110859946157988
880.9854914061056740.02901718778865150.0145085938943257
890.981877312644270.03624537471146090.0181226873557305
900.9760561606269330.04788767874613450.0239438393730673
910.971388476426040.05722304714791860.0286115235739593
920.9830930987920920.03381380241581660.0169069012079083
930.9781495557687490.0437008884625030.0218504442312515
940.9754471440525530.04910571189489420.0245528559474471
950.9692633660094640.06147326798107280.0307366339905364
960.9613620106903540.07727597861929160.0386379893096458
970.9577663170428260.08446736591434780.0422336829571739
980.9459512498353620.1080975003292750.0540487501646376
990.9409753311686360.1180493376627270.0590246688313636
1000.9275760952011480.1448478095977040.0724239047988522
1010.9100462302509820.1799075394980370.0899537697490184
1020.895866448766480.2082671024670410.104133551233521
1030.9017506489929080.1964987020141840.0982493510070922
1040.935921715432250.1281565691355000.0640782845677502
1050.9331265841172260.1337468317655480.066873415882774
1060.9153664254646350.1692671490707300.0846335745353651
1070.8969917378655320.2060165242689350.103008262134468
1080.8914406004548910.2171187990902180.108559399545109
1090.8872633734899420.2254732530201160.112736626510058
1100.905040622554820.1899187548903590.0949593774451794
1110.8935553062907960.2128893874184080.106444693709204
1120.9216010189367640.1567979621264720.0783989810632361
1130.8999937227507850.2000125544984300.100006277249215
1140.874653575561550.25069284887690.12534642443845
1150.8453737805769120.3092524388461760.154626219423088
1160.8474932927998290.3050134144003420.152506707200171
1170.8578164366444540.2843671267110930.142183563355546
1180.8462740961236270.3074518077527470.153725903876373
1190.809705471634230.3805890567315390.190294528365770
1200.8666100745443220.2667798509113560.133389925455678
1210.8417271809346220.3165456381307550.158272819065378
1220.8205004462972950.358999107405410.179499553702705
1230.8071592769864290.3856814460271420.192840723013571
1240.7660779865829950.4678440268340110.233922013417005
1250.7700790675493060.4598418649013870.229920932450694
1260.7566403013228390.4867193973543220.243359698677161
1270.7042207694195210.5915584611609580.295779230580479
1280.6722192358585870.6555615282828270.327780764141413
1290.6784505578145050.643098884370990.321549442185495
1300.670834675243280.6583306495134390.329165324756719
1310.6112189101353290.7775621797293410.388781089864671
1320.5966224540262470.8067550919475050.403377545973753
1330.5696212234316520.8607575531366960.430378776568348
1340.4948391983063560.9896783966127120.505160801693644
1350.4660444206766280.9320888413532550.533955579323372
1360.4625990109927220.9251980219854450.537400989007278
1370.3869269689138450.773853937827690.613073031086155
1380.4475486005800400.8950972011600810.55245139941996
1390.8020358211947480.3959283576105030.197964178805251
1400.8274186807669610.3451626384660780.172581319233039
1410.7905529607395020.4188940785209950.209447039260498
1420.7112983837208510.5774032325582970.288701616279149
1430.6572941897015650.685411620596870.342705810298435
1440.5450682873593230.9098634252813540.454931712640677
1450.5368457204685420.9263085590629170.463154279531458
1460.6693256941842390.6613486116315220.330674305815761
1470.5716048637825270.8567902724349470.428395136217473


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.0359712230215827NOK
5% type I error level440.316546762589928NOK
10% type I error level570.410071942446043NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/10ykxc1290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/10ykxc1290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/191001290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/191001290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/2jsz31290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/2jsz31290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/3jsz31290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/3jsz31290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/4u1zo1290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/4u1zo1290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/5u1zo1290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/5u1zo1290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/6u1zo1290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/6u1zo1290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/75by91290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/75by91290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/85by91290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/85by91290270358.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/9ykxc1290270358.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290270312ctmcofsih5hcuma/9ykxc1290270358.ps (open in new window)


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