Home » date » 2010 » Dec » 21 »

*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: Tue, 21 Dec 2010 16:18:28 +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/21/t1292948345xpmkkbava3uvvng.htm/, Retrieved Tue, 21 Dec 2010 17:19:08 +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/21/t1292948345xpmkkbava3uvvng.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 3484,7 9,0 4,3 1,0 3,0 3411,1 9,0 4,3 1,3 2,0 3288,2 8,9 4,2 1,1 3,0 3280,4 8,8 4,0 0,8 5,0 3174,0 8,7 3,8 0,7 5,0 3165,3 8,5 4,1 0,7 3,0 3092,7 8,3 4,2 0,9 2,0 3053,1 8,1 4,0 1,3 1,0 3182,0 7,9 4,3 1,4 -4,0 2999,9 7,8 4,7 1,6 1,0 3249,6 7,6 5,0 2,1 1,0 3210,5 7,4 5,1 0,3 6,0 3030,3 7,2 5,4 2,1 3,0 2803,5 7,0 5,4 2,5 2,0 2767,6 7,0 5,4 2,3 2,0 2882,6 6,8 5,5 2,4 2,0 2863,4 6,8 5,8 3,0 -8,0 2897,1 6,7 5,7 1,7 0,0 3012,6 6,8 5,5 3,5 -2,0 3143,0 6,7 5,6 4,0 3,0 3032,9 6,7 5,6 3,7 5,0 3045,8 6,7 5,5 3,7 8,0 3110,5 6,5 5,5 3,0 8,0 3013,2 6,3 5,7 2,7 9,0 2987,1 6,3 5,6 2,5 11,0 2995,6 6,3 5,6 2,2 13,0 2833,2 6,5 5,4 2,9 12,0 2849,0 6,6 5,2 3,1 13,0 2794,8 6,5 5,1 3,0 15,0 2845,3 6,3 5,1 2,8 13,0 2915,0 6,3 5,0 2,5 16,0 2892,6 6,5 5,3 1,9 10,0 2604,4 7,0 5,4 1,9 14,0 2641,7 7,1 5,3 1,8 14,0 2659,8 7,3 5,1 2,0 15,0 2638,5 7,3 5,0 2,6 13,0 2720,3 7,4 5,0 2,5 8,0 2745,9 7,4 4,6 2,5 7,0 2735,7 7,3 4,8 1,6 3,0 2811,7 7,4 5,1 1,4 3,0 2799,4 7,5 5,1 0,8 4,0 2555,3 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 13.1121249136743 -0.931678442910017rente[t] -0.077702445244027hicp[t] -0.027613673258089consumer[t] -0.000195934660486037bel20[t] -0.00837512881878393t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13.11212491367430.30890842.446800
rente-0.9316784429100170.051936-17.93900
hicp-0.0777024452440270.023244-3.3430.0010710.000535
consumer-0.0276136732580890.0045-6.136500
bel20-0.0001959346604860374e-05-4.94692e-061e-06
t-0.008375128818783930.000891-9.401400


Multiple Linear Regression - Regression Statistics
Multiple R0.907212309133192
R-squared0.823034173842778
Adjusted R-squared0.81652807729288
F-TEST (value)126.50199202096
F-TEST (DF numerator)5
F-TEST (DF denominator)136
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.305771902075493
Sum Squared Residuals12.7155180294456


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.18.17833450837880.921665491621195
298.260261166121440.739738833878564
398.280269346761270.719730653238734
48.98.354517168375990.54548283162401
58.88.521408563071950.278591436928046
68.78.70884399890581-0.00884399890580678
78.58.490417540081480.00958245991851884
88.38.40870676373622-0.108706763736225
98.18.55794404092327-0.457944040923274
107.98.43604320267203-0.536043202672034
117.87.85246295662663-0.0524629566266297
127.67.533394117537830.0666058824621682
137.47.46895460539643-0.0689546053964328
147.27.168490543037890.0315094569621048
1577.16368216369104-0.163682163691038
1677.14831503796517-0.148315037965166
176.87.04276376581231-0.24276376581231
186.86.97779737149662-0.177797371496616
196.76.92006342643522-0.220063426435218
206.86.98783705154799-0.187837051547989
216.76.73094689564526-0.0309468956452573
226.76.688127596763230.0118724032367666
236.76.677402319927740.0225976800722627
246.56.74248334524506-0.242483345245064
256.36.54858348279808-0.248583482798081
266.36.5920238961888-0.292023896188795
276.36.58355194328997-0.283551943289974
286.56.73163869700478-0.231638697004783
296.66.87706475305945-0.277064753059452
306.56.90450566618535-0.404505666185349
316.36.95324172709567-0.653241727095673
326.36.98289309276172-0.682893092761718
336.56.96378630691695-0.463786306916955
3476.744480277938680.255519722061316
357.16.833496820580510.266503179419492
367.36.972476626305180.327523373694815
377.37.04984776591940.250152234080593
387.47.182295320607030.217704679392972
397.47.5762037757473-0.176203775747297
407.37.54698881790155-0.246988817901552
417.47.277060641582550.122939358417454
427.57.335520957276730.164479042723269
437.77.35287754040440.347122459595606
447.77.17754720213990.522452797860101
457.77.40979830651340.290201693486608
467.77.694340278710.00565972129000357
477.77.97840865251504-0.278408652515044
487.87.87382254582722-0.0738225458272172
4987.875780061807840.124219938192162
508.18.09604472133020.00395527866980601
518.17.89153905280640.208460947193608
528.28.008284947601310.191715052398691
538.28.28333417668643-0.0833341766864326
548.28.43262736379936-0.232627363799363
558.18.55086424391526-0.450864243915261
568.18.37785348214923-0.277853482149228
578.28.35541860620444-0.15541860620444
588.38.73765697842555-0.437656978425552
598.38.62212500920815-0.322125009208145
608.48.44814112907637-0.0481411290763736
618.58.460575249772180.0394247502278168
628.58.65374862134787-0.153748621347867
638.48.52568994373274-0.125689943732736
6488.1638805409423-0.163880540942305
657.98.24499698238222-0.344996982382217
668.18.28610757587629-0.18610757587629
678.58.54041248618253-0.0404124861825325
688.88.474842302745820.325157697254184
698.88.007862947734460.792137052265537
708.68.09073657223990.509263427760104
718.37.846795406100960.453204593899038
728.37.948542210649750.351457789350252
738.38.02403745915490.275962540845107
748.47.917785499256750.482214500743249
758.48.10710625560570.292893744394307
768.58.248026878381240.251973121618757
778.68.407181395202230.192818604797768
788.68.381325289541810.218674710458191
798.68.284450973038080.315549026961923
808.68.18659624857790.413403751422107
818.68.352907057539090.247092942460913
828.58.69989866224299-0.199898662242989
838.48.7910740952735-0.391074095273502
848.48.59755553348833-0.197555533488332
858.48.74165858391956-0.341658583919564
868.58.5286485371385-0.0286485371385016
878.58.332391967741060.167608032258944
888.68.287017566168860.312982433831137
898.68.63361590838169-0.0336159083816935
908.48.50747673112639-0.107476731126388
918.28.48110643897809-0.281106438978094
9288.14189764861251-0.141897648612512
9388.0676007459413-0.0676007459412967
9487.876088669796940.123911330203065
9587.766837841684240.233162158315763
967.97.715555972029420.184444027970583
977.97.784164813803530.115835186196472
987.87.8772995934389-0.0772995934389019
997.87.88712572667015-0.0871257266701506
10087.89839727793240.1016027220676
1017.87.683886891765430.116113108234571
1027.47.393534041665030.00646595833497051
1037.27.58297637253273-0.382976372532731
10477.55979890212047-0.559798902120468
10577.42429758187619-0.424297581876189
1067.26.936626133547410.263373866452591
1077.26.872963559985290.327036440014714
1087.27.188485597135910.0115144028640902
10977.00906719199719-0.00906719199719133
1106.96.96189240270785-0.0618924027078518
1116.87.04888106367968-0.248881063679675
1126.87.0382482631498-0.238248263149793
1136.86.776905308822440.0230946911775602
1146.97.17255733252114-0.272557332521139
1157.27.30408127851144-0.104081278511443
1167.27.173013897879760.0269861021202409
1177.27.080296345988740.119703654011262
1187.16.968987770651250.131012229348746
1197.27.034643557423620.165356442576378
1207.37.263891779063230.0361082209367677
1217.57.53535433595234-0.0353543359523406
1227.67.478174908357980.121825091642023
1237.77.598420152018910.10157984798109
1247.76.722980924265630.977019075734374
1257.77.73468644328548-0.0346864432854808
1267.87.94125739786398-0.141257397863985
12788.22076450780218-0.220764507802177
1288.18.315348064672-0.215348064672002
1298.18.24568571730339-0.145685717303391
13088.15725036438394-0.157250364383937
1318.18.41241886449848-0.312418864498481
1328.28.64289524961736-0.44289524961736
1338.38.54347960680704-0.243479606807037
1348.48.65678622706646-0.256786227066459
1358.48.53480219123345-0.134802191233451
1368.48.44976159356905-0.0497615935690538
1378.58.368532371716260.131467628283734
1388.58.219779388827530.280220611172475
1398.68.301268431383340.298731568616659
1408.68.305258915459470.294741084540533
1418.58.243376651414310.256623348585687
1428.58.6060698446669-0.106069844666894


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.004483010572678870.008966021145357750.99551698942732
100.001639076846019640.003278153692039270.99836092315398
110.0006294066720485340.001258813344097070.999370593327951
120.0001408610596616970.0002817221193233950.999859138940338
135.71577995495649e-050.000114315599099130.99994284220045
144.75046020049755e-059.5009204009951e-050.999952495397995
151.87396493091837e-053.74792986183673e-050.99998126035069
167.46176970286808e-061.49235394057362e-050.999992538230297
171.62235143885263e-063.24470287770526e-060.999998377648561
184.22508362207069e-058.45016724414138e-050.99995774916378
193.55527590601244e-057.11055181202488e-050.99996444724094
205.30666057012168e-050.0001061332114024340.999946933394299
213.15284574794616e-056.30569149589231e-050.99996847154252
222.64770848472695e-055.2954169694539e-050.999973522915153
231.32023171639995e-052.6404634327999e-050.999986797682836
246.43078329924307e-061.28615665984861e-050.9999935692167
252.68224619020621e-065.36449238041241e-060.99999731775381
261.31339766647128e-062.62679533294256e-060.999998686602333
273.16250954723244e-066.32501909446487e-060.999996837490453
283.38136104374955e-056.7627220874991e-050.999966186389562
290.0001810054142520530.0003620108285041060.999818994585748
300.0001532093400351810.0003064186800703620.999846790659965
310.0001427643933882610.0002855287867765230.999857235606612
320.0001608975232379010.0003217950464758030.999839102476762
330.02127827112388910.04255654224777820.97872172887611
340.4696451926336480.9392903852672950.530354807366352
350.8006992758593290.3986014482813430.199300724140671
360.9355164112142220.1289671775715560.0644835887857782
370.970387343454110.05922531309177840.0296126565458892
380.9789868622844330.04202627543113370.0210131377155669
390.9742403892931770.05151922141364650.0257596107068233
400.9719263344839670.05614733103206550.0280736655160327
410.9648747250942950.0702505498114110.0351252749057055
420.9584291774029820.0831416451940360.041570822597018
430.9691074900143850.06178501997123060.0308925099856153
440.9811275435303740.03774491293925140.0188724564696257
450.9768048442878820.04639031142423640.0231951557121182
460.9700073504552360.0599852990895290.0299926495447645
470.9755211768127620.04895764637447650.0244788231872382
480.969228546907960.06154290618408060.0307714530920403
490.9611879510705810.07762409785883770.0388120489294189
500.950754292783740.09849141443252130.0492457072162606
510.9451168304484950.109766339103010.0548831695515051
520.9339227387017330.1321545225965350.0660772612982673
530.92051217624950.1589756475009990.0794878237504994
540.9112139309709740.1775721380580510.0887860690290256
550.9294686799480530.1410626401038940.0705313200519472
560.925809057272070.148381885455860.0741909427279301
570.9141109773370050.171778045325990.0858890226629949
580.9299265209632040.1401469580735930.0700734790367963
590.9344744046468530.1310511907062940.065525595353147
600.9266864538717740.1466270922564520.0733135461282258
610.914254434942260.1714911301154780.0857455650577392
620.9042148848686760.1915702302626480.095785115131324
630.8944014212401770.2111971575196470.105598578759823
640.8983837437483330.2032325125033340.101616256251667
650.9353679595928050.129264080814390.0646320404071949
660.9520810981826480.09583780363470380.0479189018173519
670.9596710652791720.08065786944165530.0403289347208276
680.9663361975464550.06732760490708950.0336638024535447
690.9903065138381530.01938697232369310.00969348616184653
700.9921374800572320.01572503988553550.00786251994276774
710.991115197489850.01776960502030080.00888480251015039
720.9880025613544450.02399487729111060.0119974386455553
730.983624323757860.03275135248428050.0163756762421402
740.9832106147114380.03357877057712460.0167893852885623
750.978661434248090.04267713150382190.0213385657519109
760.9728519536200210.05429609275995710.0271480463799786
770.9653728411265320.06925431774693530.0346271588734677
780.9577763116213520.08444737675729630.0422236883786482
790.9545549817766760.09089003644664840.0454450182233242
800.962425269152980.07514946169403950.0375747308470197
810.9626045836611740.07479083267765170.0373954163388258
820.9666470347326180.06670593053476470.0333529652673823
830.9785434003680360.04291319926392820.0214565996319641
840.9766543566926670.04669128661466550.0233456433073328
850.9804838455863270.03903230882734580.0195161544136729
860.9749342222374430.05013155552511480.0250657777625574
870.9729886929560.05402261408800220.0270113070440011
880.9797481092782160.04050378144356760.0202518907217838
890.976194373455340.04761125308931870.0238056265446594
900.9713632963589150.05727340728217070.0286367036410853
910.9695091482969820.06098170340603580.0304908517030179
920.9640618118558720.07187637628825620.0359381881441281
930.9567946293404640.08641074131907270.0432053706595363
940.953031459534380.09393708093124080.0469685404656204
950.9604965416596230.07900691668075330.0395034583403766
960.970196312527740.05960737494452030.0298036874722601
970.9797896324527420.04042073509451640.0202103675472582
980.9836132547023120.0327734905953770.0163867452976885
990.9895603750961660.02087924980766720.0104396249038336
1000.9993595841937180.001280831612563240.000640415806281618
1010.9999917163179921.65673640165649e-058.28368200828243e-06
1020.9999990210993871.95780122568335e-069.78900612841675e-07
1030.9999994288658831.14226823325277e-065.71134116626386e-07
1040.999999262058491.47588301946389e-067.37941509731943e-07
1050.999998659030992.68193801836737e-061.34096900918368e-06
1060.9999994483973431.10320531306419e-065.51602656532093e-07
1070.9999999714650235.70699534934044e-082.85349767467022e-08
1080.9999999988569882.28602366416737e-091.14301183208369e-09
1090.9999999997310715.37857653288076e-102.68928826644038e-10
1100.999999999663686.72639309272512e-103.36319654636256e-10
1110.999999998821952.35609946338462e-091.17804973169231e-09
1120.999999996426477.1470585447841e-093.57352927239205e-09
1130.999999991848511.63029822046809e-088.15149110234045e-09
1140.9999999895594982.08810042232522e-081.04405021116261e-08
1150.9999999802260673.95478669220432e-081.97739334610216e-08
1160.9999999615732337.68535333439568e-083.84267666719784e-08
1170.9999999862198272.75603452379062e-081.37801726189531e-08
1180.9999999570579968.58840076801688e-084.29420038400844e-08
1190.9999998743166672.51366666761751e-071.25683333380876e-07
1200.9999997819505624.36098876495333e-072.18049438247666e-07
1210.9999992625024031.47499519382856e-067.37497596914282e-07
1220.9999972592626095.48147478277279e-062.7407373913864e-06
1230.999990077771451.98444571001379e-059.92222855006895e-06
1240.9999834186644223.31626711564182e-051.65813355782091e-05
1250.9999680786857886.38426284241642e-053.19213142120821e-05
1260.9999912793003921.74413992160579e-058.72069960802896e-06
1270.9999801989088643.96021822711256e-051.98010911355628e-05
1280.9999300554059230.000139889188154086.994459407704e-05
1290.9998410499029770.0003179001940464560.000158950097023228
1300.9992550307620840.001489938475831120.000744969237915558
1310.998853601740870.002292796518261610.0011463982591308
1320.9990022066118630.001995586776273850.000997793388136924
1330.9939096264435340.01218074711293210.00609037355646604


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level570.456NOK
5% type I error level780.624NOK
10% type I error level1070.856NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/10w8oo1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/10w8oo1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/17pru1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/17pru1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/27pru1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/27pru1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/30z8f1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/30z8f1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/40z8f1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/40z8f1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/50z8f1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/50z8f1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/6a8701292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/6a8701292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/73h6l1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/73h6l1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/83h6l1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/83h6l1292948297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/93h6l1292948297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292948345xpmkkbava3uvvng/93h6l1292948297.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; 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