Home » date » 2010 » Nov » 24 »

Trend wel significant!

*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, 24 Nov 2010 17:05:14 +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/24/t12906183780sbr2vto5cf50oe.htm/, Retrieved Wed, 24 Nov 2010 18:06:21 +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/24/t12906183780sbr2vto5cf50oe.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 «
14 11 12 11 12 6 6 53 6 18 12 12 8 13 5 3 86 6 11 15 10 12 16 6 0 66 13 12 10 10 10 11 5 4 67 8 16 12 9 7 12 6 7 76 7 18 11 6 6 9 4 0 78 9 14 5 15 8 12 3 3 53 5 14 16 11 16 16 7 10 80 8 15 11 11 8 12 6 3 74 9 15 15 13 16 18 8 6 76 11 17 12 12 7 12 3 1 79 8 19 9 12 11 11 4 3 54 11 10 11 5 16 14 6 5 67 12 18 15 11 16 11 5 6 87 8 14 12 13 12 12 6 6 58 7 14 16 11 13 14 7 7 75 9 17 14 9 19 12 6 2 88 12 14 11 14 7 13 6 2 64 20 16 10 12 8 11 4 0 57 7 18 7 14 12 12 4 6 66 8 14 11 12 13 11 4 1 54 8 12 10 12 11 12 6 5 56 16 17 11 8 8 13 4 4 86 10 9 16 9 16 16 6 7 80 6 16 14 11 15 16 6 7 76 8 14 12 7 11 15 5 2 69 9 11 12 12 12 14 5 2 67 9 16 11 9 7 13 2 3 80 11 13 6 7 9 11 4 3 54 12 17 14 12 15 13 6 3 71 8 15 9 9 6 12 5 8 84 7 14 15 11 14 15 7 7 74 8 16 12 10 14 13 7 6 71 9 9 12 12 7 11 4 6 63 4 15 9 11 15 15 7 5 71 8 17 13 8 14 14 5 10 76 8 13 15 11 17 16 6 5 69 8 15 11 8 14 15 5 5 74 6 16 10 12 5 13 6 5 75 8 16 13 9 14 14 6 2 54 4 12 16 12 8 14 4 6 69 14 11 13 10 8 8 4 4 68 10 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 time8 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Happiness[t] = + 7.3773915218063 -0.0353446594951485Popularity[t] + 0.150287278822863FindingFriends[t] + 0.0685444408465139KnowingPeople[t] + 0.067513834434165Liked[t] + 0.0171804895305078Celebrity[t] -0.215996939893678WeightedSum[t] + 0.0814495958066655BelongingstoSports[t] -0.0503427071174557ParentalCriticism[t] -0.00806458497342902t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.37739152180632.1052643.50430.0006220.000311
Popularity-0.03534465949514850.090051-0.39250.695310.347655
FindingFriends0.1502872788228630.1057111.42170.1574240.078712
KnowingPeople0.06854444084651390.0740020.92630.3559670.177983
Liked0.0675138344341650.1081030.62450.5333310.266666
Celebrity0.01718048953050780.1865390.09210.9267540.463377
WeightedSum-0.2159969398936780.063692-3.39130.0009130.000456
BelongingstoSports0.08144959580666550.0182874.45411.8e-059e-06
ParentalCriticism-0.05034270711745570.074649-0.67440.5012150.250607
t-0.008064584973429020.004451-1.81180.0722320.036116


Multiple Linear Regression - Regression Statistics
Multiple R0.452136711340557
R-squared0.204427605741854
Adjusted R-squared0.151389446124644
F-TEST (value)3.854349532813
F-TEST (DF numerator)9
F-TEST (DF denominator)135
p-value0.000228534429356664
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.18838776189796
Sum Squared Residuals646.52053451734


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11413.17001152365170.829988476348288
21816.30712978284831.69287021715173
31115.0529563716883-4.05295637168826
41214.1989519126154-2.19895191261545
51613.98436998095042.0156300190496
61814.82953365242773.17046634757233
71414.2257125429181-0.225712542918069
81414.6509727970092-0.650972797009207
91514.95697845277050.0430215472294594
101515.5101322575977-0.510132257597746
111715.82529055865151.1747094413485
121913.52784247433965.47215752566045
131013.5532104637937-3.5532104637937
141815.70013472565332.29986527434669
151413.59749966611380.40250033388617
161414.4361952593442-0.436195259344156
171716.44510524599820.554894754001783
181414.1819596216009-0.181959621600932
191614.32412283306171.67587716693829
201814.45108039782013.54891960217986
211414.1046827734211-0.104682773421147
221212.992918554844-0.992918554843993
231715.13742078471591.86257921528405
24914.9528606241741-5.95286062417405
251614.82103167752861.17896832247144
261414.3831300306075-0.383130030607525
271114.9646332545474-3.96463325454743
281614.82143637670041.17856362329964
291312.55791052535190.442089474648093
301715.18519430872321.81480569127683
311514.23059964630930.769400353690689
321414.4474579458559-0.447457945855909
331614.1814178370331.81858216296704
34913.4076643554538-4.40766435545376
351514.89152168112040.108478318879613
361713.4480606469213.55193935307898
371314.687847589186-1.68784758918599
381514.58790555248860.41209444751141
391614.46235177691711.53764822308293
401613.72072531525332.27927468474672
411213.4661900704736-1.46619007047361
421113.4104170121854-2.41041701218542
431515.5697461072468-0.56974610724678
441714.4210033388342.57899666116599
451313.8606408499943-0.860640849994334
461614.28774542997561.71225457002441
471412.27213277668491.72786722331511
481113.3098114378352-2.30981143783517
491213.4132393816781-1.41323938167814
501212.1312134139001-0.131213413900067
511514.98627125845560.0137287415444296
521614.90298093377731.09701906622272
531514.32406991431150.675930085688524
541214.851800346505-2.85180034650496
551213.4935673395746-1.49356733957459
56813.2776341566667-5.27763415666668
571315.7932366311729-2.79323663117294
581112.7004750202958-1.70047502029582
591413.90573475754840.0942652424515951
601513.598704587441.40129541255999
611015.0841405489961-5.08414054899614
621113.5684933385223-2.56849333852233
631214.7798580881976-2.77985808819762
641512.79809712360162.2019028763984
651514.3232440850150.676755914985013
661415.3137650079683-1.31376500796834
671613.06582248186882.93417751813121
681516.4256689813268-1.4256689813268
691515.2056841788117-0.205684178811719
701314.5755314465422-1.57553144654221
711715.25196806747171.74803193252825
721313.6799515288514-0.679951528851428
731513.73834476884251.26165523115752
741312.6969761285850.303023871415021
751513.40874806001441.59125193998556
761611.18728377372974.81271622627033
771513.45305516008051.54694483991947
781613.48820075305182.51179924694825
791513.30414073277471.69585926722529
801413.80541357668380.194586423316199
811513.70127373289931.29872626710071
82714.1574275007249-7.15742750072492
831714.31205253051422.68794746948578
841312.84977942330690.150220576693059
851514.32961360260620.670386397393803
861415.4705817388283-1.47058173882834
871314.4142529843817-1.41425298438168
881615.06363054522880.936369454771155
891213.4320079541132-1.4320079541132
901413.87376419808390.126235801916119
911714.63567344075092.36432655924908
921514.10666256677450.893337433225519
931715.13011845062061.86988154937938
941214.4103580011544-2.41035800115444
951614.76907875629171.23092124370825
961113.1234122920199-2.12341229201994
971514.42297390106410.577026098935911
98913.0064158841188-4.00641588411875
991614.38957527970441.6104247202956
1001011.9445798366188-1.94457983661876
1011011.1108929883659-1.11089298836588
1021514.93034817506620.0696518249337507
1031112.3611599483093-1.36115994830927
1041315.1402465221191-2.14024652211911
1051413.25076838674530.749231613254662
1061813.84333127302644.1566687269736
1071615.15228288828330.847717111716747
1081412.17463765448871.82536234551129
1091413.73706763520610.262932364793851
1101414.2785542342993-0.278554234299344
1111415.3448483794456-1.34484837944564
1121211.98829142984710.0117085701528539
1131414.158088892604-0.158088892603962
1141516.1854899823522-1.18548998235222
1151513.75536916922751.2446308307725
1161314.6208459632646-1.62084596326463
1171716.01570869577280.984291304227165
1181715.63991058562261.36008941437743
1191915.80787039131563.19212960868442
1201513.77387816174741.22612183825261
1211313.3738773925656-0.373877392565593
122912.4396902136984-3.43969021369844
1231514.30199716885920.698002831140823
1241513.63865463173381.36134536826623
1251615.41677509895960.583224901040358
1261111.8379738092366-0.837973809236574
1271413.53392301579620.466076984203817
1281111.6396958553392-0.639695855339171
1291512.85737065422612.14262934577393
1301313.5783167614389-0.578316761438865
1311613.53050642429932.46949357570071
1321414.4501623086304-0.450162308630377
1331514.16281807434770.837181925652303
1341615.70315321351890.296846786481058
1351614.37265677138661.62734322861341
1361113.4896736638542-2.48967366385422
1371314.5765263690527-1.5765263690527
1381613.50248559649782.49751440350224
1391214.8783182613892-2.87831826138916
140912.7408880702764-3.74088807027638
1411313.6775069861062-0.677506986106245
1421312.38203349484810.617966505151942
1431412.76828986962181.23171013037817
1441915.60625576697983.39374423302015
1451314.680662176924-1.68066217692401


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
130.9028738763601880.1942522472796230.0971261236398116
140.8479669949498020.3040660101003960.152033005050198
150.766127096147610.467745807704780.23387290385239
160.6737889986819480.6524220026361050.326211001318052
170.5673413276120080.8653173447759840.432658672387992
180.682501609001580.634996781996840.31749839099842
190.6028835508211080.7942328983577830.397116449178892
200.5648665782165890.8702668435668220.435133421783411
210.4968684849025180.9937369698050360.503131515097482
220.4550406203234680.9100812406469360.544959379676532
230.3825577455122230.7651154910244470.617442254487777
240.606646695250330.786706609499340.39335330474967
250.6647040924171340.6705918151657320.335295907582866
260.6531352481659210.6937295036681580.346864751834079
270.7370641887288730.5258716225422540.262935811271127
280.6795246851332340.6409506297335320.320475314866766
290.6141396608405480.7717206783189030.385860339159452
300.6139693037339180.7720613925321650.386030696266082
310.5794027207578430.8411945584843150.420597279242157
320.5181985639294380.9636028721411250.481801436070562
330.4972184963263920.9944369926527830.502781503673608
340.7398106917583490.5203786164833020.260189308241651
350.6861509463739790.6276981072520420.313849053626021
360.788069823960680.4238603520786410.211930176039321
370.7494715808965370.5010568382069260.250528419103463
380.710743751383620.5785124972327590.289256248616379
390.6770781908436530.6458436183126940.322921809156347
400.777201556446020.445596887107960.22279844355398
410.7372359873405230.5255280253189530.262764012659477
420.7941475301385640.4117049397228730.205852469861436
430.7515030422033190.4969939155933620.248496957796681
440.7724237475359810.4551525049280370.227576252464019
450.7302268005768670.5395463988462660.269773199423133
460.7016747472975750.596650505404850.298325252702425
470.6994242474684090.6011515050631830.300575752531591
480.6964488828497410.6071022343005190.303551117150259
490.6541574859033220.6916850281933550.345842514096678
500.6099258399174940.7801483201650130.390074160082506
510.5590660325052180.8818679349895640.440933967494782
520.5190509656523320.9618980686953350.480949034347668
530.473328136488060.946656272976120.52667186351194
540.5143896479649410.9712207040701180.485610352035059
550.4730915401229840.9461830802459690.526908459877016
560.6937643663784480.6124712672431030.306235633621552
570.7557663605248780.4884672789502430.244233639475122
580.730629559239920.538740881520160.26937044076008
590.6987222629830280.6025554740339440.301277737016972
600.7154820211282870.5690359577434260.284517978871713
610.8761305433124810.2477389133750380.123869456687519
620.8747669622909350.2504660754181290.125233037709065
630.8797701303421630.2404597393156750.120229869657837
640.8884191912215550.2231616175568910.111580808778445
650.8691055131137990.2617889737724020.130894486886201
660.8522104954777120.2955790090445760.147789504522288
670.8844463037178090.2311073925643830.115553696282191
680.8758873529124960.2482252941750080.124112647087504
690.8524115810320440.2951768379359120.147588418967956
700.836838178657470.3263236426850610.16316182134253
710.8373487729467770.3253024541064450.162651227053223
720.8073013318950950.3853973362098090.192698668104905
730.7847518600542380.4304962798915230.215248139945762
740.7520066196100290.4959867607799420.247993380389971
750.7401775835433940.5196448329132120.259822416456606
760.874021262397020.2519574752059590.125978737602979
770.8641293615239470.2717412769521060.135870638476053
780.8699031777913040.2601936444173930.130096822208696
790.8638655901625260.2722688196749480.136134409837474
800.8358525839905590.3282948320188830.164147416009441
810.8205811431104750.358837713779050.179418856889525
820.986463515293890.02707296941221860.0135364847061093
830.9881920436465090.02361591270698260.0118079563534913
840.9836392937091780.03272141258164360.0163607062908218
850.978287028424320.04342594315136090.0217129715756805
860.974700597207530.05059880558493970.0252994027924699
870.9694933668854330.06101326622913490.0305066331145674
880.9616767586021460.07664648279570810.0383232413978541
890.9550224932225620.08995501355487570.0449775067774378
900.9408868465873730.1182263068252550.0591131534126273
910.9502385203976260.09952295920474880.0497614796023744
920.93835629077160.1232874184568010.0616437092284007
930.936861387140560.126277225718880.0631386128594402
940.943681901655410.112636196689180.0563180983445902
950.9403067634007350.119386473198530.0596932365992651
960.9342005408977640.1315989182044720.0657994591022358
970.9169019040759230.1661961918481540.0830980959240772
980.951057494329860.09788501134028150.0489425056701407
990.9416428240344080.1167143519311850.0583571759655923
1000.9349226348219420.1301547303561150.0650773651780577
1010.9167882126371740.1664235747256510.0832117873628255
1020.8944941242780270.2110117514439450.105505875721973
1030.8843732900671230.2312534198657540.115626709932877
1040.9236239362920580.1527521274158830.0763760637079415
1050.901232431308610.1975351373827820.098767568691391
1060.94447337608450.1110532478309990.0555266239154995
1070.9292622360610650.1414755278778690.0707377639389347
1080.931971927932060.1360561441358790.0680280720679396
1090.9082485141491410.1835029717017170.0917514858508586
1100.8805463704480980.2389072591038030.119453629551902
1110.8511883129087850.297623374182430.148811687091215
1120.8096898554701860.3806202890596280.190310144529814
1130.7890817761602460.4218364476795090.210918223839754
1140.7778220451565180.4443559096869630.222177954843482
1150.7317648224564110.5364703550871770.268235177543589
1160.7354554677812120.5290890644375760.264544532218788
1170.7081326540404920.5837346919190170.291867345959508
1180.646723422105210.7065531557895810.353276577894791
1190.6057494174204150.788501165159170.394250582579585
1200.5450431726135540.9099136547728920.454956827386446
1210.4656705527511380.9313411055022750.534329447248862
1220.5203955079970010.9592089840059970.479604492002999
1230.4464294411743510.8928588823487010.553570558825649
1240.3637186923006310.7274373846012610.63628130769937
1250.2821412418931510.5642824837863030.717858758106849
1260.2092925432878560.4185850865757110.790707456712144
1270.1743730957193790.3487461914387580.825626904280621
1280.1177657574218460.2355315148436910.882234242578154
1290.1380657341735950.2761314683471890.861934265826405
1300.08583348525839740.1716669705167950.914166514741603
1310.1542826428584260.3085652857168520.845717357141574
1320.2109983395885350.421996679177070.789001660411465


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.0333333333333333OK
10% type I error level100.0833333333333333OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/108ehx1290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/108ehx1290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/11dkl1290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/11dkl1290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/21dkl1290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/21dkl1290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/3c4j61290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/3c4j61290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/4c4j61290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/4c4j61290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/5c4j61290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/5c4j61290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/6md191290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/6md191290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/7xm0c1290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/7xm0c1290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/8xm0c1290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/8xm0c1290618302.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/9xm0c1290618302.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t12906183780sbr2vto5cf50oe/9xm0c1290618302.ps (open in new window)


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