Home » date » 2010 » Dec » 24 »

*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: Fri, 24 Dec 2010 20:20:00 +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/24/t1293221928owcs90so0ryv4pp.htm/, Retrieved Fri, 24 Dec 2010 21:18:59 +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/24/t1293221928owcs90so0ryv4pp.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 «
9.1 4.5 1.0 -1.0 1989.3 9.0 4.3 1.0 3.0 2097.8 9.0 4.3 1.3 2.0 2154.9 8.9 4.2 1.1 3.0 2152.2 8.8 4.0 0.8 5.0 2250.3 8.7 3.8 0.7 5.0 2346.9 8.5 4.1 0.7 3.0 2525.6 8.3 4.2 0.9 2.0 2409.4 8.1 4.0 1.3 1.0 2394.4 7.9 4.3 1.4 -4.0 2401.3 7.8 4.7 1.6 1.0 2354.3 7.6 5.0 2.1 1.0 2450.4 7.4 5.1 0.3 6.0 2504.7 7.2 5.4 2.1 3.0 2661.4 7.0 5.4 2.5 2.0 2880.4 7.0 5.4 2.3 2.0 3064.4 6.8 5.5 2.4 2.0 3141.1 6.8 5.8 3.0 -8.0 3327.7 6.7 5.7 1.7 0.0 3565.0 6.8 5.5 3.5 -2.0 3403.1 6.7 5.6 4.0 3.0 3149.9 6.7 5.6 3.7 5.0 3006.8 6.7 5.5 3.7 8.0 3230.7 6.5 5.5 3.0 8.0 3361.1 6.3 5.7 2.7 9.0 3484.7 6.3 5.6 2.5 11.0 3411.1 6.3 5.6 2.2 13.0 3288.2 6.5 5.4 2.9 12.0 3280.4 6.6 5.2 3.1 13.0 3174.0 6.5 5.1 3.0 15.0 3165.3 6.3 5.1 2.8 13.0 3092.7 6.3 5.0 2.5 16.0 3053.1 6.5 5.3 1.9 10.0 3182.0 7.0 5.4 1.9 14.0 2999.9 7.1 5.3 1.8 14.0 3249.6 7.3 5.1 2.0 15.0 3210.5 7.3 5.0 2.6 13.0 3030.3 7.4 5.0 2.5 8.0 2803.5 7.4 4.6 2.5 7.0 2767.6 7.3 4.8 1.6 3.0 2882.6 7.4 5.1 1.4 3.0 2863.4 7.5 5.1 0.8 4.0 2897.1 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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 11.3640291504025 -0.46071028839786rente[t] -0.16307043917458inflatie[t] -0.0260912652092994consumer[t] -0.000433460991891714Bel20[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)11.36402915040250.22139251.329800
rente-0.460710288397860.051956-8.867300
inflatie-0.163070439174580.021961-7.425400
consumer-0.02609126520929940.004013-6.501700
Bel20-0.0004334609918917144.2e-05-10.377300


Multiple Linear Regression - Regression Statistics
Multiple R0.903987694364819
R-squared0.81719375156302
Adjusted R-squared0.811856342849532
F-TEST (value)153.106834314159
F-TEST (DF numerator)4
F-TEST (DF denominator)137
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.309640357013574
Sum Squared Residuals13.1351696447346


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.18.291569727476690.808430272523308
298.23231620669880.767683793301202
398.18473571751870.815264282481295
48.98.238499913662210.661500086337786
58.88.284858049370990.515141950629016
68.78.351434819151280.348565180848724
78.58.187944783799470.312055216200533
88.38.185719099591880.114280900408120
98.18.2452261616893-0.145226161689297
107.98.21817147645493-0.318171476454924
117.87.89118961383328-0.0911896138332781
127.67.62978570640584-0.0297857064058367
137.47.72324821017408-0.323248210174077
147.27.30185879133894-0.101858791338942
1577.16779392365412-0.167793923654124
1677.12065118898096-0.120651188980964
176.87.02502665814563-0.225026658145626
186.86.96900013912752-0.169000139127520
196.76.91547232384396-0.215472323843961
206.86.83644745601516-0.0364474560151568
216.76.688137204688570.0118627953114343
226.76.74690407396205-0.0469040739620452
236.76.617649391089380.0823506089106217
246.56.6752753851689-0.175275385168905
256.36.55238741543459-0.252387415434592
266.36.61079273069392-0.310792730693925
276.36.66080368793119-0.360803687931192
286.56.66826869913461-0.168268699134613
296.66.74782565330725-0.147825653307248
306.56.76179230627535-0.261792306275351
316.36.8780581925402-0.578058192540205
326.36.91194161278338-0.611941612783378
336.56.97224525916972-0.472245259169722
3476.900742416116220.0992575838837806
357.16.85488527919810.245114720801897
367.36.905270308616430.394729691383574
377.36.983791275108950.316208724891051
387.47.228863598033940.171136401966056
397.47.4548002282113-0.0548002282113004
407.37.5639386125585-0.263938612558501
417.47.46666206491838-0.0666620649183795
427.57.52380542778708-0.0238054277870777
437.77.424819551471210.275180448528789
447.77.301834124611450.398165875388546
457.77.516301313413170.183698686586826
467.77.7553152747933-0.0553152747933061
477.77.9563915549696-0.256391554969598
487.87.797182627232320.00281737276767588
4987.734306204252630.265693795747368
508.17.751424166252480.34857583374752
518.17.687277864529370.412722135470635
528.27.811296827950780.388703172049223
538.28.044754498526110.155245501473885
548.28.04325577781970.156744222180293
558.18.1015128846514-0.0015128846513974
568.18.038648795773880.0613512042261173
578.28.147265209719620.052734790280383
588.38.36430236183357-0.0643023618335725
598.38.271248778580010.0287512214199862
608.48.26294051594260.137059484057395
618.58.302495803767540.197504196232463
628.58.4744493798870.0255506201129918
638.48.50372800936636-0.103728009366358
6488.1279257812555-0.127925781255501
657.98.05906757129454-0.159067571294536
668.18.25619484029443-0.156194840294435
678.58.51879893595494-0.0187989359549430
688.88.521934938724060.278065061275944
698.88.324460728774060.475539271225939
708.68.446851619054180.153148380945820
718.38.23326211716330.0667378828366928
728.38.36476060389508-0.0647606038950793
738.38.38338802623523-0.0833880262352327
748.48.360697457497470.0393025425025287
758.48.4800968315494-0.0800968315494098
768.58.53161867877458-0.0316186787745790
778.68.61280278557476-0.0128027855747601
788.68.461799449428440.138200550571558
798.68.469731188766340.130268811233660
808.68.345142851457170.254857148542834
818.68.407063767379560.192936232620444
828.58.72215040605816-0.222150406058156
838.48.7547288009252-0.354728800925198
848.48.59145179936802-0.191451799368016
858.48.61697090259383-0.216970902593832
868.58.453657934955080.0463420650449174
878.58.447007589013930.0529924109860734
888.68.386153984452760.213846015547241
898.68.63049120222455-0.0304912022245511
908.48.56689760967844-0.166897609678442
918.28.5860221500432-0.386022150043197
9288.41648183093498-0.416481830934978
9388.42986747516084-0.429867475160841
9488.2577331094416-0.257733109441602
9588.14873707230876-0.148737072308758
967.98.0428834588785-0.142883458878495
977.98.06966424138125-0.169664241381253
987.88.08273689161317-0.282736891613169
997.88.10384305700885-0.303843057008853
10088.11814448164556-0.118144481645558
1017.88.1387898826618-0.338789882661808
1027.47.92667816843694-0.526678168436936
1037.27.99090533823868-0.790905338238682
10477.9197458285907-0.919745828590696
10577.83247818427654-0.832478184276538
1067.27.4515113494287-0.251511349428700
1077.27.28760350823305-0.0876035082330467
1087.27.47944521497731-0.27944521497731
10977.1566761234435-0.156676123443494
1106.97.02485789819206-0.124857898192058
1116.86.94718504806134-0.147185048061338
1126.86.97365628534316-0.173656285343164
1136.86.759362506123590.0406374938764103
1146.96.95571806839681-0.0557180683968129
1157.26.93459343446420.265406565535807
1167.26.880420680184210.319579319815788
1177.26.771315512501040.428684487498959
1187.16.648165637160020.451834362839975
1197.26.926932950982130.273067049017872
1207.37.002827899890240.297172100109756
1217.57.178675219733730.321324780266269
1227.67.10757135171670.492428648283295
1237.77.382674843063090.317325156936908
1247.76.908462661184740.791537338815258
1257.77.522302048415370.177697951584631
1267.87.783781610000430.0162183899995682
12788.06765631964566-0.0676563196456628
1288.18.14679243195043-0.0467924319504271
1298.18.10278570004638-0.00278570004638115
13088.09687465170858-0.0968746517085788
1318.18.3157517675018-0.215751767501792
1328.28.43226168765013-0.232261687650134
1338.38.38432925284906-0.0843292528490561
1348.48.54222674618488-0.142226746184881
1358.48.3830485453150.0169514546850034
1368.48.218841873346920.18115812665308
1378.58.099830448091070.400169551908928
1388.58.123661942501340.376338057498658
1398.68.397069733858710.202930266141286
1408.68.326422361999250.273577638000751
1418.58.281601288425190.218398711574813
1428.58.79074350945993-0.290743509459930


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2062997248364430.4125994496728870.793700275163557
90.153970829663870.307941659327740.84602917033613
100.0747489077557620.1494978155115240.925251092244238
110.1529242558065270.3058485116130540.847075744193473
120.1116950320669610.2233900641339230.888304967933039
130.2599334867945040.5198669735890080.740066513205496
140.3083725961338740.6167451922677470.691627403866126
150.4070878608089270.8141757216178530.592912139191073
160.61171248317540.77657503364920.3882875168246
170.6182919018464780.7634161963070440.381708098153522
180.8073648360205240.3852703279589530.192635163979476
190.8442837749487970.3114324501024060.155716225051203
200.8217917161705070.3564165676589860.178208283829493
210.7696897009831310.4606205980337380.230310299016869
220.7153868932560160.5692262134879680.284613106743984
230.6587572996495090.6824854007009810.341242700350491
240.5979932561582180.8040134876835650.402006743841782
250.5419829177431880.9160341645136250.458017082256812
260.4951337928355330.9902675856710650.504866207164467
270.4630279643746810.9260559287493630.536972035625319
280.4064481685670060.8128963371340120.593551831432994
290.3589256027949280.7178512055898560.641074397205072
300.3395254668167580.6790509336335160.660474533183242
310.492870075570120.985740151140240.50712992442988
320.6256222351874380.7487555296251240.374377764812562
330.6505554875752370.6988890248495260.349444512424763
340.6610935519628470.6778128960743060.338906448037153
350.7604727524726880.4790544950546230.239527247527312
360.8536229697570510.2927540604858980.146377030242949
370.86226661423060.2754667715387990.137733385769400
380.8332165845470980.3335668309058040.166783415452902
390.8057090164251350.388581967149730.194290983574865
400.8031649416027820.3936701167944350.196835058397218
410.7681806766764570.4636386466470860.231819323323543
420.727517186384240.5449656272315210.272482813615761
430.7375959542530130.5248080914939740.262404045746987
440.7930293847534030.4139412304931940.206970615246597
450.7655164173690370.4689671652619250.234483582630963
460.7330990773447750.533801845310450.266900922655225
470.7412661143292420.5174677713415170.258733885670758
480.7018490849872270.5963018300255460.298150915012773
490.6889076654571620.6221846690856770.311092334542838
500.7028581573596520.5942836852806960.297141842640348
510.7245192301233190.5509615397533630.275480769876681
520.7379363586402860.5241272827194290.262063641359714
530.7140545701295440.5718908597409130.285945429870456
540.6898758846152620.6202482307694770.310124115384738
550.661312419810090.677375160379820.33868758018991
560.6220088709164480.7559822581671040.377991129083552
570.5889564731452220.8220870537095550.411043526854778
580.5736715384193830.8526569231612340.426328461580617
590.5380188304681630.9239623390636730.461981169531837
600.4980250271049560.9960500542099110.501974972895044
610.4688436794506830.9376873589013660.531156320549317
620.4256481137675750.851296227535150.574351886232425
630.3988456135555930.7976912271111860.601154386444407
640.3687070983844410.7374141967688820.631292901615559
650.3415260800080690.6830521600161380.658473919991931
660.3253753209500310.6507506419000620.674624679049969
670.2906977052290930.5813954104581850.709302294770907
680.2731826229348800.5463652458697590.72681737706512
690.3232786002385090.6465572004770180.676721399761491
700.2844458458562910.5688916917125820.715554154143709
710.2589013979377280.5178027958754550.741098602062272
720.2527627534768570.5055255069537130.747237246523143
730.2503428699443870.5006857398887740.749657130055613
740.2440289790791190.4880579581582380.755971020920881
750.2330099860359960.4660199720719920.766990013964004
760.2189598351016230.4379196702032460.781040164898377
770.2046536238201730.4093072476403460.795346376179827
780.2161165759018180.4322331518036360.783883424098182
790.2293630939117510.4587261878235020.770636906088249
800.3017875851559610.6035751703119220.698212414844039
810.36497392782410.72994785564820.6350260721759
820.3660102299017060.7320204598034120.633989770098294
830.3715540137107660.7431080274215330.628445986289234
840.3398674601239890.6797349202479770.660132539876011
850.3012575982322960.6025151964645920.698742401767704
860.3053660208184000.6107320416367990.6946339791816
870.3535149493326100.7070298986652190.64648505066739
880.4892697727731550.978539545546310.510730227226845
890.4883779746833530.9767559493667060.511622025316647
900.462162200906110.924324401812220.53783779909389
910.4422561646404050.884512329280810.557743835359595
920.427616303439950.85523260687990.57238369656005
930.4206624418066350.841324883613270.579337558193365
940.386694843883350.77338968776670.61330515611665
950.347419209269980.694838418539960.65258079073002
960.3186808323330190.6373616646660370.681319167666981
970.3127381526845310.6254763053690620.687261847315469
980.2810579730040840.5621159460081670.718942026995916
990.2430080627978030.4860161255956070.756991937202197
1000.2361104608768490.4722209217536980.763889539123151
1010.2105687561174670.4211375122349330.789431243882533
1020.2075306833086120.4150613666172240.792469316691388
1030.2903278675583740.5806557351167480.709672132441626
1040.5244251121348350.951149775730330.475574887865165
1050.7660457127633660.4679085744732670.233954287236634
1060.739402512999330.5211949740013410.260597487000671
1070.712496980876080.5750060382478390.287503019123920
1080.8022858581256890.3954282837486220.197714141874311
1090.8477025472397060.3045949055205890.152297452760294
1100.8868262982424370.2263474035151260.113173701757563
1110.9320410632261130.1359178735477730.0679589367738867
1120.9628992015860120.07420159682797570.0371007984139879
1130.9795648671360350.0408702657279310.0204351328639655
1140.9928817115951830.01423657680963410.00711828840481707
1150.9929331865956650.01413362680866970.00706681340433484
1160.9931461361645680.01370772767086390.00685386383543194
1170.9929640379869080.01407192402618340.0070359620130917
1180.9945589065343320.01088218693133600.00544109346566801
1190.9985548097901920.002890380419615150.00144519020980758
1200.9997205544166050.0005588911667895640.000279445583394782
1210.9999154772787380.0001690454425238028.4522721261901e-05
1220.9999637335351657.25329296699107e-053.62664648349553e-05
1230.9999740040871885.19918256231923e-052.59959128115961e-05
1240.9999533660872729.32678254560814e-054.66339127280407e-05
1250.9999826449435983.47101128040383e-051.73550564020191e-05
1260.999994491741271.10165174605763e-055.50825873028816e-06
1270.9999774877864134.5024427173769e-052.25122135868845e-05
1280.999907335690020.0001853286199621029.26643099810511e-05
1290.9997364738247520.0005270523504968520.000263526175248426
1300.9991623013975460.001675397204908710.000837698602454353
1310.9995242108734040.000951578253191780.00047578912659589
1320.9989228849559620.002154230088075650.00107711504403782
1330.9984036301774780.00319273964504460.0015963698225223
1340.9918353035117180.01632939297656470.00816469648828234


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level150.118110236220472NOK
5% type I error level220.173228346456693NOK
10% type I error level230.181102362204724NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/10mr8k1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/10mr8k1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/1yquq1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/1yquq1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/28zbb1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/28zbb1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/38zbb1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/38zbb1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/48zbb1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/48zbb1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/5j8se1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/5j8se1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/6j8se1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/6j8se1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/7uzrh1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/7uzrh1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/8uzrh1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/8uzrh1293221989.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/9mr8k1293221989.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293221928owcs90so0ryv4pp/9mr8k1293221989.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