Home » date » 2008 » Nov » 30 »

*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, 30 Nov 2008 06:01:50 -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/30/t12280501481p7kwpfnevb3xlh.htm/, Retrieved Sun, 30 Nov 2008 13:02:29 +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/30/t12280501481p7kwpfnevb3xlh.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:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

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 1508 0 1507 0 1385 0 1632 0 1511 0 1559 0 1630 0 1579 0 1653 0 2152 0 2148 0 1752 0 1765 0 1717 0 1558 0 1575 0 1520 0 1805 0 1800 0 1719 0 2008 0 2242 0 2478 0 2030 0 1655 0 1693 0 1623 0 1805 0 1746 0 1795 0 1926 0 1619 0 1992 0 2233 0 2192 0 2080 0 1768 0 1835 0 1569 0 1976 0 1853 0 1965 0 1689 0 1778 0 1976 0 2397 0 2654 0 2097 0 1963 0 1677 0 1941 0 2003 0 1813 0 2012 0 1912 0 2084 0 2080 0 2118 0 2150 0 1608 0 1503 0 1548 0 1382 0 1731 0 1798 0 1779 0 1887 0 2004 0 2077 0 2092 0 2051 0 1577 0 1356 0 1652 0 1382 0 1519 0 1421 0 1442 0 1543 0 1656 0 1561 0 1905 0 2199 0 1473 0 1655 0 1407 0 1395 0 1530 0 1309 0 1526 0 1327 0 1627 0 1748 0 1958 0 2274 0 1648 0 1401 0 1411 0 1403 0 1394 0 1520 0 1528 0 1643 0 1515 0 1685 0 2000 0 2215 0 1956 0 1462 0 1563 0 1459 0 1446 0 1622 0 1657 0 1638 0 1643 0 1683 0 2050 0 2262 0 1813 0 1445 0 1762 0 1461 0 1556 0 1431 0 1427 0 1554 0 1645 0 1653 0 2016 0 2207 0 1665 0 1361 0 1506 0 1360 0 1453 0 1522 0 1460 0 1552 0 1548 0 1827 0 1737 0 1941 0 1474 0 1458 0 1542 0 1404 0 1522 0 1385 0 1641 0 1510 0 1681 0 1938 0 1868 0 1726 0 1456 0 1445 0 1456 0 1365 0 1487 0 1558 0 1488 0 1684 0 1594 0 1850 0 1998 0 2079 0 1494 0 1057 1 1218 1 1168 1 1236 1 1076 1 1174 1 1139 1 1427 1 1487 1 1483 1 1513 1 1357 1 1165 1 1282 1 1110 1 1297 1 1185 1 1222 1 1284 1 1444 1 1575 1 1737 1 1763 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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Slachtoffer/maand[t] = + 2165.22639318886 -395.811145510836Dumivariabele[t] -442.550696594427M1[t] -617.8125M2[t] -567.25M3[t] -680.4375M4[t] -543.125M5[t] -598.875M6[t] -523.25M7[t] -508.375M8[t] -455.5625M9[t] -316.1875M10[t] -116.625M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2165.2263931888643.63188149.624900
Dumivariabele-395.81114551083638.605577-10.252700
M1-442.55069659442761.373686-7.210800
M2-617.812561.326238-10.074200
M3-567.2561.326238-9.249700
M4-680.437561.326238-11.095400
M5-543.12561.326238-8.856300
M6-598.87561.326238-9.765400
M7-523.2561.326238-8.532200
M8-508.37561.326238-8.289700
M9-455.562561.326238-7.428500
M10-316.187561.326238-5.15581e-060
M11-116.62561.326238-1.90170.0588150.029407


Multiple Linear Regression - Regression Statistics
Multiple R0.814751285561214
R-squared0.66381965732365
Adjusted R-squared0.641282427647024
F-TEST (value)29.4543591580865
F-TEST (DF numerator)12
F-TEST (DF denominator)179
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation173.456794605829
Sum Squared Residuals5385619.46749226


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
116871722.67569659442-35.6756965944224
215081547.41389318885-39.4138931888546
315071597.97639318885-90.9763931888542
413851484.78889318885-99.788893188855
516321622.101393188859.89860681114526
615111566.35139318885-55.3513931888549
715591641.97639318885-82.9763931888545
816301656.85139318885-26.8513931888544
915791709.66389318885-130.663893188855
1016531849.03889318885-196.038893188855
1121522048.60139318885103.398606811145
1221482165.22639318885-17.2263931888546
1317521722.6756965944329.3243034055724
1417651547.41389318885217.586106811145
1517171597.97639318885119.023606811145
1615581484.7888931888573.2111068111455
1715751622.10139318885-47.1013931888545
1815201566.35139318885-46.3513931888545
1918051641.97639318885163.023606811146
2018001656.85139318885143.148606811145
2117191709.663893188859.33610681114551
2220081849.03889318885158.961106811146
2322422048.60139318885193.398606811146
2424782165.22639318885312.773606811146
2520301722.67569659443307.324303405572
2616551547.41389318885107.586106811146
2716931597.9763931888595.0236068111455
2816231484.78889318885138.211106811146
2918051622.10139318885182.898606811145
3017461566.35139318885179.648606811145
3117951641.97639318885153.023606811146
3219261656.85139318885269.148606811145
3316191709.66389318885-90.6638931888545
3419921849.03889318885142.961106811146
3522332048.60139318885184.398606811146
3621922165.2263931888526.7736068111456
3720801722.67569659443357.324303405572
3817681547.41389318885220.586106811145
3918351597.97639318885237.023606811145
4015691484.7888931888584.2111068111455
4119761622.10139318885353.898606811146
4218531566.35139318885286.648606811146
4319651641.97639318885323.023606811145
4416891656.8513931888532.1486068111455
4517781709.6638931888568.3361068111455
4619761849.03889318885126.961106811146
4723972048.60139318885348.398606811146
4826542165.22639318885488.773606811146
4920971722.67569659443374.324303405572
5019631547.41389318885415.586106811145
5116771597.9763931888579.0236068111455
5219411484.78889318885456.211106811146
5320031622.10139318885380.898606811146
5418131566.35139318885246.648606811146
5520121641.97639318885370.023606811145
5619121656.85139318885255.148606811145
5720841709.66389318885374.336106811146
5820801849.03889318885230.961106811146
5921182048.6013931888569.3986068111455
6021502165.22639318885-15.2263931888545
6116081722.67569659443-114.675696594428
6215031547.41389318885-44.4138931888545
6315481597.97639318885-49.9763931888545
6413821484.78889318885-102.788893188854
6517311622.10139318885108.898606811145
6617981566.35139318885231.648606811145
6717791641.97639318885137.023606811145
6818871656.85139318885230.148606811145
6920041709.66389318885294.336106811146
7020771849.03889318885227.961106811146
7120922048.6013931888543.3986068111455
7220512165.22639318885-114.226393188854
7315771722.67569659443-145.675696594428
7413561547.41389318885-191.413893188855
7516521597.9763931888554.0236068111455
7613821484.78889318885-102.788893188854
7715191622.10139318885-103.101393188855
7814211566.35139318885-145.351393188854
7914421641.97639318885-199.976393188854
8015431656.85139318885-113.851393188855
8116561709.66389318885-53.6638931888545
8215611849.03889318885-288.038893188855
8319052048.60139318885-143.601393188855
8421992165.2263931888533.7736068111456
8514731722.67569659443-249.675696594428
8616551547.41389318885107.586106811146
8714071597.97639318885-190.976393188854
8813951484.78889318885-89.7888931888545
8915301622.10139318885-92.1013931888545
9013091566.35139318885-257.351393188854
9115261641.97639318885-115.976393188855
9213271656.85139318885-329.851393188854
9316271709.66389318885-82.6638931888545
9417481849.03889318885-101.038893188854
9519582048.60139318885-90.6013931888546
9622742165.22639318885108.773606811146
9716481722.67569659443-74.6756965944276
9814011547.41389318885-146.413893188855
9914111597.97639318885-186.976393188854
10014031484.78889318885-81.7888931888545
10113941622.10139318885-228.101393188854
10215201566.35139318885-46.3513931888545
10315281641.97639318885-113.976393188855
10416431656.85139318885-13.8513931888545
10515151709.66389318885-194.663893188855
10616851849.03889318885-164.038893188855
10720002048.60139318885-48.6013931888545
10822152165.2263931888549.7736068111455
10919561722.67569659443233.324303405572
11014621547.41389318885-85.4138931888544
11115631597.97639318885-34.9763931888545
11214591484.78889318885-25.7888931888545
11314461622.10139318885-176.101393188854
11416221566.3513931888555.6486068111455
11516571641.9763931888515.0236068111455
11616381656.85139318885-18.8513931888545
11716431709.66389318885-66.6638931888545
11816831849.03889318885-166.038893188855
11920502048.601393188851.39860681114554
12022622165.2263931888596.7736068111456
12118131722.6756965944390.3243034055724
12214451547.41389318885-102.413893188854
12317621597.97639318885164.023606811145
12414611484.78889318885-23.7888931888545
12515561622.10139318885-66.1013931888545
12614311566.35139318885-135.351393188854
12714271641.97639318885-214.976393188854
12815541656.85139318885-102.851393188855
12916451709.66389318885-64.6638931888545
13016531849.03889318885-196.038893188855
13120162048.60139318885-32.6013931888545
13222072165.2263931888541.7736068111456
13316651722.67569659443-57.6756965944276
13413611547.41389318885-186.413893188855
13515061597.97639318885-91.9763931888545
13613601484.78889318885-124.788893188854
13714531622.10139318885-169.101393188854
13815221566.35139318885-44.3513931888545
13914601641.97639318885-181.976393188854
14015521656.85139318885-104.851393188855
14115481709.66389318885-161.663893188855
14218271849.03889318885-22.0388931888545
14317372048.60139318885-311.601393188855
14419412165.22639318885-224.226393188855
14514741722.67569659443-248.675696594428
14614581547.41389318885-89.4138931888544
14715421597.97639318885-55.9763931888545
14814041484.78889318885-80.7888931888545
14915221622.10139318885-100.101393188855
15013851566.35139318885-181.351393188854
15116411641.97639318885-0.976393188854502
15215101656.85139318885-146.851393188855
15316811709.66389318885-28.6638931888545
15419381849.0388931888588.9611068111455
15518682048.60139318885-180.601393188855
15617262165.22639318885-439.226393188855
15714561722.67569659443-266.675696594428
15814451547.41389318885-102.413893188854
15914561597.97639318885-141.976393188855
16013651484.78889318885-119.788893188854
16114871622.10139318885-135.101393188855
16215581566.35139318885-8.35139318885452
16314881641.97639318885-153.976393188855
16416841656.8513931888527.1486068111455
16515941709.66389318885-115.663893188855
16618501849.038893188850.961106811145528
16719982048.60139318885-50.6013931888545
16820792165.22639318885-86.2263931888545
16914941722.67569659443-228.675696594428
17010571151.60274767802-94.6027476780185
17112181202.1652476780215.8347523219813
17211681088.9777476780279.0222523219813
17312361226.290247678029.70975232198147
17410761170.54024767802-94.5402476780185
17511741246.16524767802-72.1652476780185
17611391261.04024767802-122.040247678018
17714271313.85274767802113.147252321981
17814871453.2277476780233.7722523219815
17914831652.79024767802-169.790247678019
18015131769.41524767802-256.415247678019
18113571326.8645510835930.1354489164084
18211651151.6027476780213.3972523219814
18312821202.1652476780279.8347523219813
18411101088.9777476780221.0222523219814
18512971226.2902476780270.7097523219815
18611851170.5402476780214.4597523219814
18712221246.16524767802-24.1652476780185
18812841261.0402476780222.9597523219815
18914441313.85274767802130.147252321981
19015751453.22774767802121.772252321981
19117371652.7902476780284.2097523219814
19217631769.41524767802-6.41524767801863
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/1hzgh1228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/1hzgh1228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/237j81228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/237j81228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/3wqru1228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/3wqru1228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/4s3th1228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/4s3th1228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/5it211228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/5it211228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/6ylkd1228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/6ylkd1228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/7ttas1228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/7ttas1228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/8a5l51228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/8a5l51228050100.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/9zktt1228050100.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/30/t12280501481p7kwpfnevb3xlh/9zktt1228050100.ps (open in new window)


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

  • 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