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:20:25 -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/t1195496111qbfprbx46qkbpup.htm/, Retrieved Mon, 19 Nov 2007 19:15:11 +0100
 
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
 
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 time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1717.75147928696 -396.055827106182X[t] + 1.00000000006915T[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1717.7514792869616.512653104.026400
X-396.05582710618247.709356-8.301400
T1.000000000069150.1055649.47300


Multiple Linear Regression - Regression Statistics
Multiple R0.675537295812174
R-squared0.456350638033224
Adjusted R-squared0.450597734731988
F-TEST (value)79.3252752806048
F-TEST (DF numerator)2
F-TEST (DF denominator)189
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation214.664492262603
Sum Squared Residuals8709279.5610503


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
116871533.82793527424153.172064725760
215081540.67887017472-32.6788701747198
315071489.1163701711517.8836298288453
413851480.30387017054-95.3038701705447
516321589.9913701781342.0086298218703
615111524.74137017362-13.7413701736176
715591497.1163701717161.8836298282927
816301553.2413701755976.7586298244116
915791449.42887016841129.571129831590
1016531384.05387016389268.946129836111
1121521683.49137017460468.508629825405
1221481562.86637017625585.133629823746
1317521620.00619875021131.993801249795
1417651818.85713419396-53.8571341939561
1517171720.29463416114-3.29463416114038
1615581674.48213415397-116.482134153972
1715751554.1696341756520.8303658243474
1815201554.91963417570-34.9196341757045
1918051764.2946341601840.7053658398169
2018001744.4196341588155.5803658411913
2117191610.60713417956108.392865820445
2220081760.23213415990247.767865840098
2322421794.66963416228447.330365837716
2424781914.04463420054563.955365799462
2520301919.18446280089110.815537199106
2616551730.03539814781-75.035398147814
2716931717.47289814995-24.4728981499453
2816231760.66039814993-137.660398149932
2918051805.34789815302-0.347898153021946
3017461802.09789815280-56.0978981527972
3117951775.4728981509619.5271018490440
3219261891.5978981989934.4021018010137
3316191531.7853981741087.2146018258953
3419921765.41039815026226.58960184974
3522331806.84789815313426.152101846874
3621921649.22289814223542.777101857774
3720801990.3627268058289.637273194184
3817681864.21366219709-96.2136621970926
3918351880.65116219823-45.6511621982293
4015691727.83866213766-158.838662137662
4119761997.52616220631-21.5261622063113
4218531930.27616220166-77.276162201661
4319651966.65116220418-1.65116220417629
4416891675.7761621340613.2238378659381
4517781711.9636621375666.0363378624357
4619761770.58866214062205.411337859382
4723971992.02616220593404.973837794069
4826542132.40116221564521.598837784362
4920972028.5409907084668.459009291544
5019632080.39192611204-117.391926112042
5116771743.82942612877-66.8294261287678
5219412121.01692611485-180.016926114851
5320032045.70442610964-42.7044261096429
5418131911.45442610036-98.4544261003594
5520122034.82942610889-22.8294261088909
5619121919.95442610095-7.95442610094718
5720842039.1419261091944.8580738908109
5820801895.76692609927184.233073900725
5921181734.20442612810383.795573871898
6021501649.57942612225500.42057387775
6116081560.7192546761147.2807453238945
6215031641.57019011170-138.570190111696
6315481636.00769011131-88.0076901113118
6413821583.19519007766-201.195190077660
6517311794.8826901223-63.8826901222983
6617981917.63269010079-119.632690100787
6717791823.00769009424-44.0076900942431
6818871916.13269010068-29.1326901006829
6920041980.3201901051223.6798098948785
7020771913.94519010053163.054809899468
7120921729.38269011777362.617309882231
7220511571.75769007687479.242309923131
7315771550.8975186754326.1024813245737
7413561515.74845407300-159.748454072996
7516521761.18595410997-109.185954109968
7613821604.37345407912-222.373454079124
7715191604.06095407910-85.0609540791027
7814211561.81095407618-140.810954076181
7914421507.18595407240-65.1859540724036
8015431593.31095407836-50.3109540783593
8116561653.498454102522.50154589747867
8215611419.12345406631141.876545933686
8319051563.56095407630341.439045923698
8421991740.93595410857458.064045891432
8514731468.07578266974.92421733030091
8616551835.92671809514-180.926718095137
8714071537.36421807449-130.364218074491
8813951638.55171809149-243.551718091488
8915301636.23921809133-106.239218091328
9013091470.9892180699-161.989218069901
9115261612.36421807968-86.3642180796768
9213271398.48921806489-71.489218064887
9316271645.67671809198-18.6767180919804
9417481627.30171809071120.698281909290
9519581637.73921809143320.260781908568
9622741837.11421809522436.885781904781
9716481664.25404667327-16.2540466732651
9814011603.10498207904-202.104982079037
9914111562.54248207623-151.542482076232
10014031667.72998207351-264.729982073506
10113941521.41748207339-127.417482073388
10215201703.16748207596-183.167482075956
10315281635.54248207128-107.542482071280
10416431735.66748207820-92.6674820782034
10515151554.8549820757-39.8549820757
10616851585.4799820778299.5200179221822
10720001700.9174820758299.082517924200
10822151799.29248208260415.707517917397
10919561993.43231070603-37.4323107060282
11014621685.28324606472-223.283246064719
11115631735.72074606821-172.720746068207
11214591744.90824606884-285.908246068843
11314461594.59574607845-148.595746078448
11416221826.34574609447-204.345746094474
11516571785.72074607166-128.720746071665
11616381751.84574606932-113.845746069322
11716431704.03324606602-61.0332460660159
11816831604.6582460791478.341753920856
11920501772.09574607072277.904253929277
12022621867.47074609732394.529253902682
12118131871.61057469760-58.6105746976041
12214451689.46151005501-244.461510055008
12317621955.89901010343-193.899010103433
12414611768.08651006045-307.086510060445
12515561725.77401005852-169.774010058519
12614311656.52401005273-225.524010052731
12714271576.89901007722-149.899010077224
12815541689.02401005498-135.024010054978
12916451727.21151005862-82.2115100586187
13016531595.8365100785357.1634899214661
13120161759.27401005984256.725989940164
13222071833.64901009498373.350989905021
13316651744.78883864883-79.7888386488342
13413611626.63977404066-265.639774040664
13515061721.07727404619-215.077274046195
13613601688.26477404493-328.264774044926
13714531643.95227404186-190.952274041861
13815221768.70227405049-246.702274050488
13914601631.07727404097-171.077274040971
14015521708.20227404630-156.202274046304
14115481651.38977404238-103.389774042375
14218271791.0147740520335.9852259479692
14317371501.45227407201235.547725927993
14419411588.82727407805352.172725921951
14514741574.96710257709-100.967102577091
14614581744.81803803884-286.818038038836
14715421778.25553804115-236.255538041148
14814041753.44303803943-349.443038039433
14915221734.13053803810-212.130538038097
15013851652.88053803248-267.880538032479
15116411833.25553799495-192.255537994952
15215101687.38053803486-177.380538034864
15316811805.56803804304-124.568038043037
15419381923.1930380011714.8069619988289
15518681653.63053803253214.369461967470
15617261395.00553796465330.994462035354
15714561578.14536657731-122.145366577311
15814451752.9963020294-307.996302029402
15914561713.43380202367-257.433802023666
16013651735.6213020282-370.6213020282
16114871720.30880202414-233.308802024141
16215581847.05880199591-289.058801995906
16314881701.43380202584-213.433802025836
16416841882.55880199836-198.558801998361
16515941739.74630202849-145.746302028486
16618501856.37130199655-6.37130199655028
16719981804.80880203298193.191197967015
16820791769.18380203052309.816197969479
16914941637.32363061140-143.323630611403
17010571216.50377247351-159.503772473508
17112181326.94127250915-108.941272509145
17211681390.12877251551-222.128772515515
17312361320.81627250872-84.8162725087218
17410761216.56627247351-140.566272473513
17511741238.94127250506-64.94127250506
17611391189.06627247161-50.0662724716111
17714271424.253772487872.74622751212534
17814871344.87877251239142.121227487614
17914831141.31627246831341.683727531691
18015131054.69127246232458.308727537681
18113571351.831101102875.16889889713347
18211651345.68203650244-180.682036502441
18312821412.11953650704-130.119536507036
18411101353.30703650297-243.307036502969
18512971402.99453650640-105.994536506405
18611851346.74453650251-161.744536502515
18712221308.11953649984-86.1195364998438
18812841355.24453650310-71.2445365031026
18914441462.43203649051-18.4320364905147
19015751454.05703648994120.942963510064
19117371416.49453650734320.505463492662
19217631325.86953649707437.130463502929
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/1ae7p1195496414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/1ae7p1195496414.ps (open in new window)


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/532cn1195496414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/532cn1195496414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/6pwv11195496414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/6pwv11195496414.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/80fua1195496414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/80fua1195496414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/95kt51195496414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/19/t1195496111qbfprbx46qkbpup/95kt51195496414.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