Home » date » 2008 » Dec » 11 »

Multiple regression

*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: Thu, 11 Dec 2008 07:51:05 -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/Dec/11/t1229007221m16ppvwsvp1i6bs.htm/, Retrieved Thu, 11 Dec 2008 14:53:41 +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/Dec/11/t1229007221m16ppvwsvp1i6bs.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 «
2560 0 2491 0 2380 0 2291 0 2079 0 1929 0 1851 0 1607 0 1661 0 2259 0 1668 0 2011 0 1944 0 1958 0 1844 0 1868 0 1701 0 2338 0 2018 0 1302 0 2168 0 2139 0 1560 0 2093 0 1973 0 2090 0 2811 0 1984 0 1849 0 2433 0 2071 0 1855 0 1756 0 1898 0 1770 0 1969 0 1769 0 2139 0 3013 0 2061 0 2132 0 2973 0 2081 0 2257 0 2075 0 2084 0 1747 0 2092 0 1919 0 2551 0 2643 0 2153 0 2496 0 2645 0 2035 0 2294 0 2205 0 2044 0 1762 0 1897 0 1821 0 1905 0 2111 0 1643 0 1956 0 1977 0 1685 0 1393 0 1574 0 1793 0 1562 0 1510 0 1675 0 1965 0 2173 0 2395 0 2197 0 2257 0 2885 0 1594 0 1950 0 1772 0 1280 0 1724 0 1473 0 1461 0 1576 0 1900 0 1618 0 2303 0 1994 0 1575 0 1893 0 1788 0 1817 0 3233 0 727 1 1121 1 1665 1 1401 1 1415 1 2058 1 1544 1 1379 1 1402 1 1313 1 1296 1 1398 1 1288 1 1563 1 1972 1 1496 1 1481 1 1819 1 1479 1 1635 1 1511 1 1547 1 1388 1 1958 1 1390 1 1597 1 1842 1 1396 1 1671 1 1385 1 1632 1 1313 1 1300 1 1431 1 1398 1 1198 1 1292 1 1434 1 1660 1 1837 1 1455 1 1315 1 1642 1 1069 1 1209 1 1586 1 1122 1 1063 1 1125 1 1414 1 1347 1 1403 1 1299 1 1547 1 1515 1 1247 1 1639 1 1296 1 1063 1 1282 1 1365 1 1268 1 1532 1 1455 1 1393 1 1515 1 1510 1 1225 1 1577 1 1417 1 1224 1 1693 1 1633 1 1639 1 1914 1 1586 1 1552 1 2081 1 1500 1 1437 1 1470 1 1849 1 1387 1 1592 1 1589 1 1798 1 1935 1 1887 1 2027 1 2080 1 1556 1 1682 1 1785 1 1869 1 1781 1 2082 1 2570 1 1862 1 1936 1 1504 1 1765 1 1607 1 1577 1 1493 1 1615 1 1700 1 1335 1 1523 1 1623 1 1540 1 1637 1 1524 1 1419 1 1821 1 1593 1 1357 1 1263 1 1750 1 1405 1 1393 1 1639 1 1679 1 1551 1 1744 1 1429 1 1784 1
 
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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 1975.73335444405 -576.108850300459x[t] -92.2789154827092M1[t] + 17.3171429368757M2[t] + 230.439517145934M3[t] + 18.2461018813088M4[t] -13.9473133833168M5[t] + 244.754008194163M6[t] + 30.0401757383326M7[t] -218.334526076001M8[t] -89.3203390014449M9[t] -7.91726303800026M10[t] -284.958631519M11[t] + 0.930257369888725t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1975.7333544440576.08718325.966700
x-576.10885030045974.62835-7.719700
M1-92.278915482709292.958221-0.99270.3220130.161007
M217.317142936875792.93280.18630.8523590.42618
M3230.43951714593492.9109542.48020.0139240.006962
M418.246101881308892.8926880.19640.8444720.422236
M5-13.947313383316892.878001-0.15020.8807780.440389
M6244.75400819416392.8668972.63550.0090330.004517
M730.040175738332694.141070.31910.7499730.374986
M8-218.33452607600194.125156-2.31960.0213320.010666
M9-89.320339001444994.112777-0.94910.3436820.171841
M10-7.9172630380002694.103934-0.08410.9330310.466516
M11-284.95863151994.098628-3.02830.0027710.001385
t0.9302573698887250.5769621.61230.1084050.054202


Multiple Linear Regression - Regression Statistics
Multiple R0.710974440699702
R-squared0.505484655328254
Adjusted R-squared0.47457744628627
F-TEST (value)16.3549110707993
F-TEST (DF numerator)13
F-TEST (DF denominator)208
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation282.290577689333
Sum Squared Residuals16575097.8124528


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
125601884.38469633123675.61530366877
224911994.91101212070496.088987879296
323802208.96364369965171.036356300348
422911997.70048580492293.299514195085
520791966.43732791018112.562672089821
619292226.06890685755-297.068906857547
718512012.28533177161-161.285331771605
816071764.84088732716-157.840887327161
916611894.78533177161-233.785331771605
1022591977.11866510494281.881334895061
1116681701.00755399383-33.0075539938275
1220111986.8964428827224.1035571172837
1319441895.5477847699048.4522152301041
1419582006.07410055937-48.0741005593695
1518442220.12673213832-376.126732138317
1618682008.86357424358-140.86357424358
1717011977.60041634884-276.600416348843
1823382237.23199529621100.768004703788
1920182023.44842021027-5.44842021027002
2013021776.00397576583-474.003975765825
2121681905.94842021027262.05157978973
2221391988.28175354360150.718246456397
2315601712.17064243249-152.170642432492
2420931998.0595313213894.940468678619
2519731906.7108732085666.2891267914395
2620902017.2371889980372.7628110019658
2728112231.28982057698579.710179423019
2819842020.02666268224-36.0266626822447
2918491988.76350478751-139.763504787508
3024332248.39508373488184.604916265124
3120712034.6115086489336.3884913510653
3218551787.1670642044967.8329357955097
3317561917.11150864893-161.111508648935
3418981999.44484198227-101.444841982268
3517701723.3337308711646.6662691288429
3619692009.22261976005-40.2226197600457
3717691917.87396164723-148.873961647225
3821392028.4002774367110.599722563301
3930132242.45290901565770.547090984354
4020612031.1897511209129.8102488790906
4121321999.92659322617132.073406773827
4229732259.55817217354713.44182782646
4320812045.774597087635.2254029124006
4422571798.33015264316458.669847356845
4520751928.2745970876146.725402912401
4620842010.6079304209373.3920695790672
4717471734.4968193098212.5031806901782
4820922020.3857081987171.6142918012896
4919191929.03705008589-10.0370500858900
5025512039.56336587536511.436634124636
5126432253.61599745431389.384002545689
5221532042.35283955957110.647160440426
5324962011.08968166484484.910318335163
5426452270.72126061221374.278739387794
5520352056.93768552626-21.9376855262641
5622941809.49324108182484.50675891818
5722051939.43768552626265.562314473736
5820442021.7710188596022.2289811404025
5917621745.6599077484916.3400922515135
6018972031.54879663738-134.548796637375
6118211940.20013852455-119.200138524555
6219052050.72645431403-145.726454314028
6321112264.77908589298-153.779085892976
6416432053.51592799824-410.515927998239
6519562022.2527701035-66.2527701035019
6619772281.88434905087-304.884349050870
6716852068.10077396493-383.100773964929
6813931820.65632952048-427.656329520484
6915741950.60077396493-376.600773964929
7017932032.93410729826-239.934107298262
7115621756.82299618715-194.822996187151
7215102042.71188507604-532.71188507604
7316751951.36322696322-276.363226963219
7419652061.88954275269-96.889542752693
7521732275.94217433164-102.942174331640
7623952064.67901643690330.320983563096
7721972033.41585854217163.584141457833
7822572293.04743748954-36.0474374895350
7928852079.26386240359805.736137596407
8015941831.81941795915-237.819417959149
8119501961.76386240359-11.7638624035936
8217722044.09719573693-272.097195736927
8312801767.98608462582-487.986084625815
8417242053.87497351470-329.874973514705
8514731962.52631540188-489.526315401884
8614612073.05263119136-612.052631191357
8715762287.10526277030-711.105262770305
8819002075.84210487557-175.842104875568
8916182044.57894698083-426.578946980831
9023032304.2105259282-1.21052592819982
9119942090.42695084226-96.4269508422582
9215751842.98250639781-267.982506397814
9318931972.92695084226-79.9269508422582
9417882055.26028417559-267.260284175592
9518171779.1491730644837.8508269355195
9632332065.038061953371167.96193804663
977271397.58055354009-670.580553540089
9811211508.10686932956-387.106869329563
9916651722.15950090851-57.1595009085103
10014011510.89634301377-109.896343013773
10114151479.63318511904-64.6331851190365
10220581739.26476406640318.735235933595
10315441525.4811889804618.5188110195365
10413791278.03674453602100.963255463981
10514021407.98118898046-5.98118898046343
10613131490.31452231380-177.314522313797
10712961214.2034112026981.7965887973144
10813981500.09230009157-102.092300091574
10912881408.74364197875-120.743641978754
11015631519.2699577682343.7300422317724
11119721733.32258934717238.677410652825
11214961522.05943145244-26.0594314524382
11314811490.7962735577-9.79627355770128
11418191750.4278525050768.5721474949302
11514791536.64427741913-57.6442774191281
11616351289.19983297468345.800167025316
11715111419.1442774191391.8557225808718
11815471501.4776107524645.5223892475385
11913881225.36649964135162.633500358650
12019581511.25538853024446.744611469761
12113901419.90673041742-29.9067304174187
12215971530.4330462068966.5669537931076
12318421744.4856777858497.5143222141603
12413961533.22251989110-137.222519891103
12516711501.95936199637169.040638003634
12613851761.59094094373-376.590940943734
12716321547.8073658577984.1926341422071
12813131300.3629214133512.6370785866516
12913001430.30736585779-130.307365857793
13014311512.64069919113-81.6406991911262
13113981236.52958808002161.470411919985
13211981522.41847696890-324.418476968904
13312921431.06981885608-139.069818856083
13414341541.59613464556-107.596134645557
13516601755.64876622450-95.6487662245044
13618371544.38560832977292.614391670232
13714551513.12245043503-58.1224504350307
13813151772.7540293824-457.754029382399
13916421558.9704542964683.0295457035424
14010691311.52600985201-242.526009852013
14112091441.47045429646-232.470454296458
14215861523.8037876297962.1962123702091
14311221247.69267651868-125.692676518680
14410631533.58156540757-470.581565407569
14511251442.23290729475-317.232907294748
14614141552.75922308422-138.759223084222
14713471766.81185466317-419.811854663169
14814031555.54869676843-152.548696768432
14912991524.28553887370-225.285538873695
15015471783.91711782106-236.917117821064
15115151570.13354273512-55.1335427351222
15212471322.68909829068-75.6890982906778
15316391452.63354273512186.366457264878
15412961534.96687606846-238.966876068455
15510631258.85576495734-195.855764957344
15612821544.74465384623-262.744653846233
15713651453.39599573341-88.3959957334128
15812681563.92231152289-295.922311522886
15915321777.97494310183-245.974943101834
16014551566.71178520710-111.711785207097
16113931535.44862731236-142.44862731236
16215151795.08020625973-280.080206259728
16315101581.29663117379-71.296631173787
16412251333.85218672934-108.852186729343
16515771463.79663117379113.203368826213
16614171546.12996450712-129.129964507120
16712241270.01885339601-46.0188533960091
16816931555.90774228490137.092257715102
16916331464.55908417208168.440915827922
17016391575.0853999615563.9146000384488
17119141789.1380315405124.861968459502
17215861577.874873645768.12512635423834
17315521546.611715751025.3882842489752
17420811806.24329469839274.756705301607
17515001592.45971961245-92.4597196124516
17614371345.0152751680191.9847248319928
17714701474.95971961245-4.95971961245168
17818491557.29305294578291.706947054215
17913871281.18194183467105.818058165326
18015921567.0708307235624.9291692764373
18115891475.72217261074113.277827389258
18217981586.24848840022211.751511599784
18319351800.30111997916134.698880020837
18418871589.03796208443297.962037915574
18520271557.77480418969469.225195810310
18620801817.40638313706262.593616862942
18715561603.62280805112-47.6228080511164
18816821356.17836360667325.821636393328
18917851486.12280805112298.877191948884
19018691568.45614138445300.543858615550
19117811292.34503027334488.654969726661
19220821578.23391916223503.766080837773
19325701486.885261049411083.11473895059
19418621597.41157683888264.588423161119
19519361811.46420841783124.535791582172
19615041600.20105052309-96.201050523091
19717651568.93789262835196.062107371646
19816071828.56947157572-221.569471575723
19915771614.78589648978-37.7858964897811
20014931367.34145204534125.658547954663
20116151497.28589648978117.714103510219
20217001579.61922982311120.380770176886
20313351303.5081187120031.4918812879967
20415231589.39700760089-66.3970076008921
20516231498.04834948807124.951650511928
20615401608.57466527755-68.5746652775453
20716371822.62729685649-185.627296856493
20815241611.36413896176-87.3641389617558
20914191580.10098106702-161.100981067019
21018211839.73256001439-18.7325600143874
21115931625.94898492845-32.9489849284458
21213571378.50454048400-21.5045404840013
21312631508.44898492845-245.448984928446
21417501590.78231826178159.217681738221
21514051314.6712071506790.328792849332
21613931600.56009603956-207.560096039557
21716391509.21143792674129.788562073264
21816791619.7377537162159.26224628379
21915511833.79038529516-282.790385295157
22017441622.52722740042121.472772599580
22114291591.26406950568-162.264069505684
22217841850.89564845305-66.895648453052
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/11zh41229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/11zh41229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/2gkgs1229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/2gkgs1229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/3jj8p1229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/3jj8p1229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/4eond1229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/4eond1229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/5s6i91229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/5s6i91229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/6soy71229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/6soy71229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/7ixja1229007052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/7ixja1229007052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/8uzrk1229007053.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/8uzrk1229007053.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/9h3ct1229007053.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229007221m16ppvwsvp1i6bs/9h3ct1229007053.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



Error 001_3: History of computation (impact.txt) is not saved due to a technical problem. We are sorry for this inconveniance and will correct it A.S.A.P.