Home » date » 2007 » Nov » 19 » attachments

R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 19 Nov 2007 11:11:07 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52.htm/, Retrieved Mon, 19 Nov 2007 19:04:06 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-183.923544 0 -177.0726091 0 -228.6351091 0 -237.4476091 0 -127.7601091 0 -193.0101091 0 -220.6351091 0 -164.5101091 0 -268.3226091 0 -333.6976091 0 -34.26010911 0 -154.8851091 0 -97.74528053 0 101.1056549 0 2.543154874 0 -43.26934513 0 -163.5818451 0 -162.8318451 0 46.54315487 0 26.66815487 0 -107.1443451 0 42.48065487 0 76.91815487 0 196.2931549 0 201.4329835 0 12.28391886 0 -0.278581137 0 42.90891886 0 87.59641886 0 84.34641886 0 57.72141886 0 173.8464189 0 -185.9660811 0 47.65891886 0 89.09641886 0 -68.52858114 0 272.6112475 0 146.4621829 0 162.8996829 0 10.08718285 0 279.7746829 0 212.5246829 0 248.8996829 0 -41.97531715 0 -5.787817149 0 52.83718285 0 274.2746829 0 414.6496829 0 310.7895114 0 362.6404468 0 26.07794684 0 403.2654468 0 327.9529468 0 193.7029468 0 317.0779468 0 202.2029468 0 321.3904468 0 178.0154468 0 16.45294684 0 -68.17205316 0 -157.0322246 0 -76.18128917 0 -81.74378917 0 -134.5562892 0 77.13121083 0 199.8812108 0 105.2562108 0 198.3812108 0 262.5687108 0 196.1937108 0 11.63121083 0 -145.9937892 0 -166.8539606 0 -202.0030252 0 43.43447482 0 -113.3780252 0 -113.6905252 0 -155.9405252 0 -210.5655252 0 -124.4405252 0 -64.25302518 0 -298.6280252 0 -154.1905252 0 23.18447482 0 -249.6756966 0 118.1752388 0 -180.3872612 0 -79.19976119 0 -81.51226119 0 -246.7622612 0 -105.3872612 0 -319.2622612 0 -72.07476119 0 -90.44976119 0 -80.01226119 0 119.3627388 0 -53.49743261 0 -114.6464972 0 -155.2089972 0 -50.02149721 0 -196.3339972 0 -14.58399721 0 -82.20899721 0 17.91600279 0 -162.8964972 0 -132.2714972 0 -16.83399721 0 81.54100279 0 275.6808314 0 -32.46823322 0 17.96926678 0 27.15676678 0 -123.1557332 0 108.5942668 0 67.96926678 0 34.09426678 0 -13.71823322 0 -113.0932332 0 54.34426678 0 149.7192668 0 153.8590954 0 -28.28996923 0 238.1475308 0 50.33503077 0 8.022530771 0 -61.22746923 0 -140.8524692 0 -28.72746923 0 9.460030771 0 -121.9149692 0 41.52253077 0 115.8975308 0 27.03735936 0 -91.11170524 0 3.325794759 0 -29.48670524 0 -73.79920524 0 50.95079476 0 -86.67420524 0 -9.54920524 0 -66.36170524 0 73.26329476 0 -216.2992052 0 -128.9242052 0 -142.7843767 0 27.06655875 0 60.50405875 0 35.69155875 0 16.37905875 0 -64.87094125 0 115.5040587 0 -30.37094125 0 87.81655875 0 205.4415587 0 -64.12094125 0 -322.7459413 0 -139.6061127 0 35.24482274 0 -4.317677263 0 17.86982274 0 2.557322737 0 129.3073227 0 -16.31767726 0 164.8073227 0 21.99482274 0 138.6198227 0 87.05732274 0 51.43232274 0 -80.42784867 0 -105.1918797 1 5.245620328 1 68.43312033 1 -0.879379672 1 -105.1293797 1 -82.75437967 1 -132.6293797 1 102.5581203 1 23.18312033 1 -180.3793797 1 -267.0043797 1 30.13544892 1 23.98638432 1 90.42388432 1 31.61138432 1 81.29888432 1 25.04888432 1 -13.57611568 1 33.54888432 1 140.7363843 1 132.3613843 1 94.79888432 1 4.173884316 1
 
Text written by user:
 
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 compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.17742567439308e-08 + 9.18380456424851e-09T[t] + 2.37968489558231e-08M1[t] -5.342838992659e-09M2[t] + 5.28955941669531e-10M3[t] -9.97425785522416e-09M4[t] -1.28997541035386e-09M5[t] -8.35568271161252e-09M6[t] -8.17139072699052e-09M7[t] -1.17371037337928e-08M8[t] -5.80283206036438e-09M9[t] -1.19935330071584e-08M10[t] -1.18422603138965e-09M11[t] -1.84286943719420e-10t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.17742567439308e-0844.029939010.5
T9.18380456424851e-0941.037226010.5
M12.37968489558231e-0853.942919010.5
M2-5.342838992659e-0953.941479010.5
M35.28955941669531e-1053.931287010.5
M4-9.97425785522416e-0953.922166010.5
M5-1.28997541035386e-0953.914117010.5
M6-8.35568271161252e-0953.907141010.5
M7-8.17139072699052e-0953.901237010.5
M8-1.17371037337928e-0853.896405010.5
M9-5.80283206036438e-0953.892648010.5
M10-1.19935330071584e-0853.889963010.5
M11-1.18422603138965e-0953.888353010.5
t-1.84286943719420e-100.240551010.5


Multiple Linear Regression - Regression Statistics
Multiple R8.78616408123945e-11
R-squared7.71966792624623e-21
Adjusted R-squared-0.0730337078651686
F-TEST (value)1.05700068528602e-19
F-TEST (DF numerator)13
F-TEST (DF denominator)178
p-value1
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation152.417759553726
Sum Squared Residuals4135148.8700732


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1-183.9235444.5386883584797e-08-183.923544045387
2-177.07260911.60628133016871e-08-177.072609116063
3-228.63510912.17504521060619e-08-228.635109121750
4-237.44760911.10628661786905e-08-237.447609111063
5-127.76010911.95628899746225e-08-127.760109119563
6-193.01010911.23128245377302e-08-193.010109112313
7-220.63510911.23128245377302e-08-220.635109112313
8-164.51010918.56289261719212e-09-164.510109108563
9-268.32260911.43128318086383e-08-268.322609114313
10-333.69760917.93784238339867e-09-333.697609107938
11-34.260109111.85628366011770e-08-34.2601091285628
12-154.88510911.95628047094942e-08-154.885109119563
13-97.745280534.31753619523079e-08-97.7452805731754
14101.10565491.38513627234715e-08101.105654886149
152.5431548741.95389047163985e-082.54315485446110
16-43.269345138.8514084950475e-09-43.2693451388514
17-163.58184511.73513967638428e-08-163.581845117351
18-162.83184511.01014165920787e-08-162.831845110101
1946.543154871.01014165920787e-0846.5431548598986
2026.668154876.35141716998078e-0926.6681548636486
21-107.14434511.21014096521321e-08-107.144345112101
2242.480654875.7264060160378e-0942.4806548642736
2376.918154871.63513789175340e-0876.9181548536486
24196.29315491.73513683421334e-08196.293154882649
25201.43298354.0963925584947e-08201.432983459036
2612.283918861.16399547778201e-0812.2839188483600
27-0.2785811371.73274564141401e-08-0.278581154327456
2842.908918866.63997212768663e-0942.90891885336
2987.596418861.51399888181913e-0887.59641884486
3084.346418867.88999443557259e-0984.34641885211
3157.721418867.88997311929052e-0957.72141885211
32173.84641894.13999146076094e-09173.84641889586
33-185.96608119.88998749562597e-09-185.96608110989
3447.658918863.51494833239485e-0947.6589188564851
3589.096418861.41399567610279e-0889.09641884586
36-68.528581141.51399319747725e-08-68.52858115514
37272.61124753.8752546061005e-08272.611247461247
38146.46218299.4285041996045e-09146.462182890571
39162.89968291.51160293171415e-08162.899682884884
4010.087182854.4285375366826e-0910.0871828455715
41279.77468291.29284103422833e-08279.774682887072
42212.52468295.67851543564757e-09212.524682894321
43248.89968295.67843017051928e-09248.899682894322
44-41.975317151.92853377711799e-09-41.9753171519285
45-5.7878171497.67852181837725e-09-5.78781715667852
4652.837182851.30351907046133e-0952.8371828486965
47274.27468291.19284777611028e-08274.274682888072
48414.64968291.29284671857022e-08414.649682887072
49310.78951143.65410528502252e-08310.789511363459
50362.64044687.21723836250021e-09362.640446792783
5126.077946841.29045822916396e-0826.0779468270954
52403.26544682.21706386582810e-09403.265446797783
53327.95294681.07169739749224e-08327.952946789283
54193.70294683.46710748999612e-09193.702946796533
55317.07794683.4669938031584e-09317.077946796533
56202.2029468-2.82881273960811e-10202.202946800283
57321.39044685.46702949577593e-09321.390446794533
58178.0154468-9.07931507754256e-10178.015446800908
5916.452946849.71709468444715e-0916.4529468302829
60-68.172053161.07170450291960e-08-68.172053170717
61-157.03222463.43296164828644e-08-157.032224634330
62-76.181289175.00560304317332e-09-76.1812891750056
63-81.743789171.06931281607103e-08-81.7437891806931
64-134.55628925.6559201766504e-12-134.556289200006
6577.131210838.505665505254e-0977.1312108214943
66199.88121081.25564270092582e-09199.881210798744
67105.25621081.25567112263525e-09105.256210798744
68198.3812108-2.49428921961226e-09198.381210802494
69262.56871083.25559312841506e-09262.568710796744
70196.1937108-3.11928260998684e-09196.193710803119
7111.631210837.50564765894524e-0911.6312108224944
72-145.99378928.505566029271e-09-145.993789208506
73-166.85396063.21181516937941e-08-166.853960632118
74-202.00302522.79422351923131e-09-202.003025202794
7543.434474828.48169179334946e-0943.4344748115183
76-113.3780252-2.20578044718422e-09-113.378025197794
77-113.69052526.29421492703841e-09-113.690525206294
78-155.9405252-9.55793666435056e-10-155.940525199044
79-210.5655252-9.55793666435056e-10-210.565525199044
80-124.4405252-4.70579664124671e-09-124.440525195294
81-64.253025181.04418518276361e-09-64.2530251810442
82-298.6280252-5.33083266418544e-09-298.628025194669
83-154.19052525.29419708072965e-09-154.190525205294
8423.184474826.29415808361955e-0923.1844748137058
85-249.67569662.99066869047238e-08-249.675696629907
86118.17523885.82701886742143e-10118.175238799417
87-180.38726126.27028384769801e-09-180.387261206270
88-79.19976119-4.41723102539981e-09-79.1997611855828
89-81.512261194.08276434882282e-09-81.5122611940828
90-246.7622612-3.16725845550536e-09-246.762261196833
91-105.3872612-3.16724424465065e-09-105.387261196833
92-319.2622612-6.91727564117173e-09-319.262261193083
93-72.07476119-1.16726539545198e-09-72.0747611888327
94-90.44976119-7.5422548206916e-09-90.4497611824577
95-80.012261193.08274650251406e-09-80.0122611930828
96119.36273884.08269329454924e-09119.362738795917
97-53.497432612.76952221156535e-08-53.4974326376952
98-114.6464972-1.62862079378101e-09-114.646497198371
99-155.20899724.05881905862771e-09-155.208997204059
100-50.02149721-6.6286816036154e-09-50.0214972033713
101-196.33399721.87131377060723e-09-196.333997201871
102-14.58399721-5.37869482286624e-09-14.5839972046213
103-82.20899721-5.37868061201152e-09-82.2089972046213
10417.91600279-9.12868358682317e-0917.9160027991287
105-162.8964972-3.37868755195814e-09-162.896497196621
106-132.2714972-9.75370539890719e-09-132.271497190246
107-16.833997218.71331451435253e-10-16.8339972108713
10881.541002791.87122850547894e-0981.5410027881288
109275.68083142.54838710134209e-08275.680831374516
110-32.46823322-3.84016374255225e-09-32.4682332161598
11117.969266781.84735782227108e-0917.9692667781526
11227.15676678-8.84012152368996e-0927.1567667888401
113-123.1557332-3.40151018463075e-10-123.155733199660
114108.5942668-7.59013119022711e-09108.594266807590
11567.96926678-7.59013119022711e-0967.9692667875901
11634.09426678-1.13401270596114e-0834.0942667913401
117-13.71823322-5.59013102474637e-09-13.7182332144099
118-113.0932332-1.19651275554133e-08-113.093233188035
11954.34426678-1.34011912678034e-0954.3442667813401
120149.7192668-3.40179440172506e-10149.719266800340
121153.85909542.32723209592223e-08153.859095376728
122-28.28996923-6.05158234634473e-09-28.2899692239484
123238.1475308-3.64082097803475e-10238.147530800364
12450.33503077-1.10515756546192e-0850.3350307810516
1258.022530771-2.55157317496923e-098.02253077355157
126-61.22746923-9.8015817684427e-09-61.2274692201984
127-140.8524692-9.80156755758799e-09-140.852469190198
128-28.72746923-1.35515705323996e-08-28.7274692164484
1299.460030771-7.80156739210724e-099.46003077880157
130-121.9149692-1.41765923444837e-08-121.914969185823
13141.52253077-3.55158391585064e-0941.5225307735516
132115.8975308-2.55163001838810e-09115.897530802552
13327.037359362.10609236717119e-0827.0373593389391
134-91.11170524-8.26304358270136e-09-91.111705231737
1353.325794759-2.57552468241329e-093.32579476157552
136-29.48670524-1.32630191274075e-08-29.486705226737
137-73.79920524-4.76300954233011e-09-73.799205235237
13850.95079476-1.20130181358036e-0850.950794772013
139-86.67420524-1.20130181358036e-08-86.674205227987
140-9.54920524-1.57630086761174e-08-9.549205224237
141-66.36170524-1.00130250757502e-08-66.361705229987
14273.26329476-1.63880571335540e-0873.263294776388
143-216.2992052-5.76301317778416e-09-216.299205194237
144-128.9242052-4.76305217489426e-09-128.924205195237
145-142.78437671.88495334896288e-08-142.784376718850
14627.06655875-1.04744728446349e-0827.0665587604745
14760.50405875-4.7869761488073e-0960.504058754787
14835.69155875-1.54744483893410e-0835.6915587654744
14916.37905875-6.97446722597306e-0916.3790587569745
150-64.87094125-1.42244687140192e-08-64.8709412357755
151115.5040587-1.42244402923097e-08115.504058714224
152-30.37094125-1.79744574779761e-08-30.3709412320255
15387.81655875-1.22244898648205e-0887.8165587622245
154205.4415587-1.85993940249318e-08205.441558718599
155-64.12094125-7.97446375599975e-09-64.1209412420255
156-322.7459413-6.97451696396456e-09-322.745941293026
157-139.60611271.66380971222679e-08-139.606112716638
15835.24482274-1.26859163174231e-0835.2448227526859
159-4.317677263-6.99841251616817e-09-4.31767725600159
16017.86982274-1.76858954148429e-0817.8698227576859
1612.557322737-9.18590536969077e-092.55732274618591
162129.3073227-1.64359050813800e-08129.307322716436
163-16.31767726-1.6435894423239e-08-16.3176772435641
164164.8073227-2.01858938453370e-08164.807322720186
16521.99482274-1.44359226794677e-0821.9948227544359
166138.6198227-2.0810915657421e-08138.619822720811
16787.05732274-1.01859143342153e-0887.057322750186
16851.43232274-9.18595333132544e-0951.432322749186
169-80.427848671.44265470680693e-08-80.4278486844266
170-105.1918797-5.71355940337526e-09-105.191879694286
1715.245620328-2.60387267303486e-115.24562032802604
17268.43312033-1.07135207372266e-0868.4331203407135
173-0.879379672-2.21353013696302e-09-0.87937966978647
174-105.1293797-9.46359079989634e-09-105.129379690536
175-82.75437967-9.46357658904162e-09-82.7543796605364
176-132.6293797-1.32135653529986e-08-132.629379686786
177102.5581203-7.46358352898824e-09102.558120307464
17823.18312033-1.38385445325184e-0823.1831203438385
179-180.3793797-3.2134721550392e-09-180.379379696787
180-267.0043797-2.21353957385872e-09-267.004379697786
18130.135448922.13989679309634e-0830.1354488986010
18223.98638432-7.92500287616349e-0923.986384327925
18390.42388432-2.23749907490856e-0990.4238843222375
18431.61138432-1.29249642100149e-0831.6113843329250
18581.29888432-4.42499015207432e-0981.298884324425
18625.04888432-1.16749845346931e-0825.048884331675
187-13.57611568-1.16749685474815e-08-13.5761156683250
18833.54888432-1.54249661932226e-0833.5488843354250
189140.7363843-9.6750056854944e-09140.736384309675
190132.3613843-1.60499951107340e-08132.36138431605
19194.79888432-5.42497957667365e-0994.798884325425
1924.173884316-4.42500702746429e-094.17388432042501
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/19eei1195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/19eei1195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/2dwm91195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/2dwm91195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/3dsxm1195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/3dsxm1195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/4ybu41195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/4ybu41195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/5gi211195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/5gi211195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/67age1195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/67age1195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/7l4g61195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/7l4g61195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/8c0of1195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/8c0of1195495856.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/90n7t1195495856.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195495446hkpz0wrv102ri52/90n7t1195495856.ps (open in new window)


 
Parameters:
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
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))
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')
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()
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')
 





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:

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