Home » date » 2008 » Nov » 23 »

Q2bis

*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: Sun, 23 Nov 2008 15:06:22 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7.htm/, Retrieved Sun, 23 Nov 2008 22:08:07 +0000
 
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/2008/Nov/23/t1227478078gf5kttmylkawyk7.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1687 0 -183.923544 1508 0 -177.0726091 1507 0 -228.6351091 1385 0 -237.4476091 1632 0 -127.7601091 1511 0 -193.0101091 1559 0 -220.6351091 1630 0 -164.5101091 1579 0 -268.3226091 1653 0 -333.6976091 2152 0 -34.26010911 2148 0 -154.8851091 1752 0 -97.74528053 1765 0 101.1056549 1717 0 2.543154874 1558 0 -43.26934513 1575 0 -163.5818451 1520 0 -162.8318451 1805 0 46.54315487 1800 0 26.66815487 1719 0 -107.1443451 2008 0 42.48065487 2242 0 76.91815487 2478 0 196.2931549 2030 0 201.4329835 1655 0 12.28391886 1693 0 -0.278581137 1623 0 42.90891886 1805 0 87.59641886 1746 0 84.34641886 1795 0 57.72141886 1926 0 173.8464189 1619 0 -185.9660811 1992 0 47.65891886 2233 0 89.09641886 2192 0 -68.52858114 2080 0 272.6112475 1768 0 146.4621829 1835 0 162.8996829 1569 0 10.08718285 1976 0 279.7746829 1853 0 212.5246829 1965 0 248.8996829 1689 0 -41.97531715 1778 0 -5.787817149 1976 0 52.83718285 2397 0 274.2746829 2654 0 414.6496829 2097 0 310.7895114 1963 0 362.6404468 1677 0 26.07794684 1941 0 403.2654468 2003 0 327.9529468 1813 0 193.7029468 2012 0 317.0779468 1912 0 202.2029468 2084 0 321.3904468 2080 0 178.0154468 2118 0 16.45294684 2150 0 -68.17205316 1608 0 -157.0322246 1503 0 -76.18128917 1548 0 -81.74378917 1382 0 -134.5562892 1731 0 77.13121083 1798 0 199.8812108 1779 0 105.2562108 1887 0 198.3812108 2004 0 262.5687108 2077 0 196.1937108 2092 0 11.63121083 2051 0 -145.9937892 1577 0 -166.8539606 1356 0 -202.0030252 1652 0 43.43447482 1382 0 -113.3780252 1519 0 -113.6905252 1421 0 -155.9405252 1442 0 -210.5655252 1543 0 -124.4405252 1656 0 -64.25302518 1561 0 -298.6280252 1905 0 -154.1905252 2199 0 23.18447482 1473 0 -249.6756966 1655 0 118.1752388 1407 0 -180.3872612 1395 0 -79.19976119 1530 0 -81.51226119 1309 0 -246.7622612 1526 0 -105.3872612 1327 0 -319.2622612 1627 0 -72.07476119 1748 0 -90.44976119 1958 0 -80.01226119 2274 0 119.3627388 1648 0 -53.49743261 1401 0 -114.6464972 1411 0 -155.2089972 1403 0 -50.02149721 1394 0 -196.3339972 1520 0 -14.58399721 1528 0 -82.20899721 1643 0 17.91600279 1515 0 -162.8964972 1685 0 -132.2714972 2000 0 -16.83399721 2215 0 81.54100279 1956 0 275.6808314 1462 0 -32.46823322 1563 0 17.96926678 1459 0 27.15676678 1446 0 -123.1557332 1622 0 108.5942668 1657 0 67.96926678 1638 0 34.09426678 1643 0 -13.71823322 1683 0 -113.0932332 2050 0 54.34426678 2262 0 149.7192668 1813 0 153.8590954 1445 0 -28.28996923 1762 0 238.1475308 1461 0 50.33503077 1556 0 8.022530771 1431 0 -61.22746923 1427 0 -140.8524692 1554 0 -28.72746923 1645 0 9.460030771 1653 0 -121.9149692 2016 0 41.52253077 2207 0 115.8975308 1665 0 27.03735936 1361 0 -91.11170524 1506 0 3.325794759 1360 0 -29.48670524 1453 0 -73.79920524 1522 0 50.95079476 1460 0 -86.67420524 1552 0 -9.54920524 1548 0 -66.36170524 1827 0 73.26329476 1737 0 -216.2992052 1941 0 -128.9242052 1474 0 -142.7843767 1458 0 27.06655875 1542 0 60.50405875 1404 0 35.69155875 1522 0 16.37905875 1385 0 -64.87094125 1641 0 115.5040587 1510 0 -30.37094125 1681 0 87.81655875 1938 0 205.4415587 1868 0 -64.12094125 1726 0 -322.7459413 1456 0 -139.6061127 1445 0 35.24482274 1456 0 -4.317677263 1365 0 17.86982274 1487 0 2.557322737 1558 0 129.3073227 1488 0 -16.31767726 1684 0 164.8073227 1594 0 21.99482274 1850 0 138.6198227 1998 0 87.05732274 2079 0 51.43232274 1494 0 -80.42784867 1057 1 -105.1918797 1218 1 5.245620328 1168 1 68.43312033 1236 1 -0.879379672 1076 1 -105.1293797 1174 1 -82.75437967 1139 1 -132.6293797 1427 1 102.5581203 1487 1 23.18312033 1483 1 -180.3793797 1513 1 -267.0043797 1357 1 30.13544892 1165 1 23.98638432 1282 1 90.42388432 1110 1 31.61138432 1297 1 81.29888432 1185 1 25.04888432 1222 1 -13.57611568 1284 1 33.54888432 1444 1 140.7363843 1575 1 132.3613843 1737 1 94.79888432 1763 1 4.173884316
 
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 time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2324.063373081 -226.385033611841X[t] + 1.00000000002621T[t] -451.374973280107M1[t] -635.461053318426M2[t] -583.13369799192M3[t] -694.55634264904M4[t] -555.478987325348M5[t] -609.464131985905M6[t] -532.074276653713M7[t] -515.43442131777M8[t] -460.857065991328M9[t] -319.71721065276M10[t] -118.389855331193M11[t] -1.76485533219257t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2324.0633730810192077335803.00900
X-226.3850336118410-20074556266.91800
T1.00000000002621048549665700.643700
M1-451.3749732801070-30449437595.730900
M2-635.4610533184260-42868898969.073900
M3-583.133697991920-39346272512.011700
M4-694.556342649040-46872313675.443900
M5-555.4789873253480-37492239027.289700
M6-609.4641319859050-41141308230.827800
M7-532.0742766537130-35921112399.373600
M8-515.434421317770-34800850614.121800
M9-460.8570659913280-31118092940.74900
M10-319.717210652760-21589091681.159800
M11-118.3898553311930-7994583180.946200
t-1.764855332192570-26697919015.986400


Multiple Linear Regression - Regression Statistics
Multiple R1
R-squared1
Adjusted R-squared1
F-TEST (value)6.52253850065383e+20
F-TEST (DF numerator)14
F-TEST (DF denominator)177
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.18850782199914e-08
Sum Squared Residuals3.1052168061658e-13


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
116871687.00000046385-4.63853101212266e-07
215081507.999999993556.45163094042839e-09
315071506.999999986511.34905022320705e-08
413851384.999999996963.0385422212696e-09
516321631.999999991348.6612357754156e-09
615111510.999999996883.12070072137048e-09
715591558.999999996153.84630070006613e-09
816301630.00000000137-1.37298399990506e-09
915791578.999999992907.0952570688324e-09
1016531652.999999997572.43500370872625e-09
1121522151.999999984791.52105195552314e-08
1221482147.999999990639.3725421112474e-09
1317521751.999999949825.01752722999672e-08
1417651765.00000001453-1.45252162780456e-08
1517171716.999999980261.97444874187426e-08
1615581557.999999985741.42582747577653e-08
1715751575.00000000409-4.08816291113719e-09
1815201520.00000001136-1.13578031416535e-08
1918051804.999999986851.31545460548017e-08
2018001799.999999990079.92531268164211e-09
2117191719.00000001082-1.08175355619094e-08
2220082007.999999991118.88581750829107e-09
2322422241.999999981391.86084392287976e-08
2424782478.00000001352-1.35203527434689e-08
2520302030.00000000136-1.35578639162345e-09
2616551654.999999985891.41133596941643e-08
2716931692.999999982871.71302699459866e-08
2816231622.999999991698.3105283741126e-09
2918051804.999999984361.56393125330223e-08
3017461745.999999991538.47450039778052e-09
3117951794.999999990839.17220921799506e-09
3219261926.00000003762-3.76213532351291e-08
3316191619.00000002244-2.24407010701534e-08
3419921991.999999994945.06102479505894e-09
3522332232.99999998541.46000694511427e-08
3621922191.999999980271.97313964982862e-08
3720802080.00000001691-1.69103820603123e-08
3817681768.00000004309-4.3092363497887e-08
3918351835.00000003784-3.78357053784845e-08
4015691568.999999994525.48151374814656e-09
4119761976.00000004309-4.30866809413219e-08
4218531853.00000004857-4.85739877567863e-08
4319651965.00000004953-4.95275026255433e-08
4416891688.999999995654.3460430569994e-09
4517781777.999999991858.147807765049e-09
4619761975.999999998761.23617679272019e-09
4723972397.00000004394-4.39425139363216e-08
4826542654.00000004662-4.66215621081571e-08
4920972096.99999993166.83998090422434e-08
5019631962.999999962453.75524586687549e-08
5116771676.999999987941.20610988277490e-08
5219411940.999999968513.14874221073971e-08
5320032002.999999958044.19614043959106e-08
5418131812.999999961773.82301564701196e-08
5520122011.999999965003.49963996027525e-08
5619121911.999999965743.42570359970427e-08
5720842083.999999963123.68834401752212e-08
5820802079.999999965733.42661130989587e-08
5921182117.999999990879.1256971996912e-09
6021502149.999999987661.23436681471875e-08
6116081607.999999933036.69719964763075e-08
6215031502.999999994645.36459374402041e-09
6315481547.999999988801.11978916525611e-08
6413821381.999999968113.18943001607315e-08
6517311730.999999995154.84622108934104e-09
6617981797.999999975622.43789569535093e-08
6717791778.999999973142.68590631376220e-08
6818871886.999999979332.06681589612900e-08
6920042003.999999975262.47360915580404e-08
7020772076.99999997992.01005678523583e-08
7120922091.999999994445.56299071185696e-09
7220512050.999999959314.06941266188854e-08
7315771576.999999946465.35402230276331e-08
7413561355.999999975032.49731412981074e-08
7516521651.999999995774.22791857329353e-09
7613821381.999999982351.76500547947959e-08
7715191518.999999973842.61583841755763e-08
7814211420.999999979982.00157907423436e-08
7914421441.999999978552.14472607023431e-08
8015431542.999999984561.54399193795792e-08
8116561656.00000000039-3.87328689010117e-10
8215611560.999999980621.93805012489273e-08
8319051904.999999973782.62198813911787e-08
8421992198.999999997432.57084438911917e-09
8514731472.999999957984.20218287712448e-08
8616551654.999999997112.89227905041581e-09
8714071406.999999983591.64050254166095e-08
8813951395.00000000693-6.93483829945449e-09
8915301529.999999998371.62581098205074e-09
9013091308.999999991298.70691412067095e-09
9115261525.9999999955.00154451140613e-09
9213271326.999999993146.8571061420962e-09
9316271627.00000000387-3.87145496159576e-09
9417481748.00000000977-9.76503660283739e-09
9519581957.999999999415.86496845897515e-10
9622742273.999999993646.36092778662298e-09
9716481647.999999966813.31908887709715e-08
9814011401.00000000469-4.69475787615798e-09
9914111410.999999997942.05597415985985e-09
10014031403.00000000139-1.38884744669785e-09
10113941393.999999999059.46099158871057e-10
10215201520.00000000107-1.06740590644269e-09
10315281527.999999999307.04851286468344e-10
10416431643.00000000567-5.66946652945735e-09
10515151515.00000000518-5.18033075567497e-09
10616851685.00000001236-1.23580707748843e-08
10720001999.999999994765.24147375781639e-09
10822152214.999999996343.66304953208995e-09
10919561955.999999999138.74203337526007e-10
11014621462.00000000054-5.37725074934182e-10
11115631562.999999996173.82790844548949e-09
11214591459.0000000071-7.10083364467954e-09
11314461446.00000001466-1.46609674008739e-08
11416221622.00000002798-2.79849168552685e-08
11516571657.00000000692-6.92034357354289e-09
11616381638.00000000978-9.78250097755767e-09
11716431643.00000000278-2.77920763015005e-09
11816831683.00000002655-2.65497590964571e-08
11920502050.00000000031-3.13327140672359e-10
12022622262.00000002181-2.18128512857492e-08
12118131813.00000000962-9.62211698993559e-09
12214451445.00000000434-4.33646708374954e-09
12317621762.00000003563-3.56320008328546e-08
12414611461.00000001140-1.13975410804720e-08
12515561556.00000000279-2.78828407932238e-09
12614311431.00000000722-7.22322294966797e-09
12714271427.00000003514-3.51363347397393e-08
12815541554.00000001183-1.18253546269562e-08
12916451645.00000000808-8.07596133397973e-09
13016531653.00000004001-4.00077928596553e-08
13120162016.00000000367-3.66628329104506e-09
13222072207.00000003462-3.461572721705e-08
13316651664.999999979992.00126792717708e-08
13413611361.00000000638-6.37919994088301e-09
13515061506.00000000217-2.16667893843353e-09
13613601360.00000001299-1.29945875551458e-08
13714531453.00000000333-3.3328773437491e-09
13815221522.00000001385-1.38525864317079e-08
13914601460.00000001025-1.02456315140992e-08
14015521552.00000001602-1.60171060697818e-08
14115481548.00000000878-8.7780738529852e-09
14218271827.00000001881-1.88124398645581e-08
14317371737.00000004060-4.05980351944526e-08
14419411941.00000004189-4.18882354488792e-08
14514741473.999999929237.07744680307075e-08
14614581458.00000001317-1.31656563518603e-08
14715421542.00000000835-8.35446434666936e-09
14814041404.00000001839-1.83920539401672e-08
14915221522.00000000939-9.3856934072065e-09
15013851385.00000001451-1.45059953077997e-08
15116411640.999999969233.07663485764418e-08
15215101510.00000001916-1.91605055055884e-08
15316811681.00000001651-1.65078836454502e-08
15419381937.999999975972.40340389987146e-08
15518681868.00000000828-8.27583263826581e-09
15617261725.999999950504.95026388789162e-08
15714561455.999999943005.70019499816856e-08
15814451445.00000001707-1.70691482962492e-08
15914561456.00000000734-7.34471540632764e-09
16013651365.00000002161-2.16139998404424e-08
16114871487.00000000971-9.71248491804666e-09
16215581557.999999983281.67154767208677e-08
16314881488.00000001947-1.94678870596390e-08
16416841683.999999987971.20347133139826e-08
16515941594.00000001847-1.84718924024311e-08
16618501849.999999987901.20963607829376e-08
16719981998.00000001593-1.59271243879716e-08
16820792079.00000001399-1.39934947831975e-08
16914941493.999999988241.17618005889031e-08
17010571056.999999975242.47640119375862e-08
17112181218.00000000044-4.429559240538e-10
17211681168.00000001479-1.47869272039392e-08
17312361236.00000000247-2.47011583854521e-09
17410761075.999999978992.10122359918279e-08
17511741174.00000000957-9.57427466848145e-09
17611391138.999999982021.79828330533908e-08
17714271426.999999982431.75688298937464e-08
17814871487.00000001673-1.67259623525099e-08
17914831482.999999970772.92344948483731e-08
18015131512.999999967503.25047981310921e-08
18113571356.999999982981.70162670551771e-08
18211651165.00000001231-1.23109409337109e-08
18312821282.00000000836-8.36455584553912e-09
18411101110.00000001751-1.75110071532204e-08
18512971297.00000001031-1.0313201269985e-08
18611851185.00000001609-1.60888137691638e-08
18712221222.00000001508-1.50765496088521e-08
18812841284.00000002006-2.00618516416477e-08
18914441443.999999997122.87894344245049e-09
19015751575.00000000328-3.27654323579139e-09
19117371737.00000001167-1.16669464012566e-08
19217631763.00000000429-4.29176850694790e-09
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/1qwbj1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/1qwbj1227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/2yw391227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/2yw391227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/3juhu1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/3juhu1227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/4qydg1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/4qydg1227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/5uum31227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/5uum31227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/6fimx1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/6fimx1227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/7v38i1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/7v38i1227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/8czfe1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/8czfe1227477977.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/9cgwj1227477977.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227478078gf5kttmylkawyk7/9cgwj1227477977.ps (open in new window)


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

  • 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