Home » date » 2008 » Dec » 13 »

Multiple Linear Regression Investeringsgoederen

*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: Sat, 13 Dec 2008 05:42:32 -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/13/t1229172201mmavnh26kjh6j8i.htm/, Retrieved Sat, 13 Dec 2008 13:43:31 +0100
 
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/13/t1229172201mmavnh26kjh6j8i.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
97,7 0 101,5 0 119,6 0 108,1 0 117,8 0 125,5 0 89,2 0 92,3 0 104,6 0 122,8 0 96,0 0 94,6 0 93,3 0 101,1 0 114,2 0 104,7 0 113,3 0 118,2 0 83,6 0 73,9 0 99,5 0 97,7 0 103,0 0 106,3 0 92,2 0 101,8 0 122,8 0 111,8 0 106,3 0 121,5 0 81,9 0 85,4 0 110,9 0 117,3 0 106,3 0 105,5 0 101,3 0 105,9 0 126,3 0 111,9 0 108,9 0 127,2 0 94,2 0 85,7 0 116,2 0 107,2 0 110,6 0 112,0 0 104,5 0 112,0 0 132,8 0 110,8 0 128,7 0 136,8 0 94,9 0 88,8 0 123,2 0 125,3 0 122,7 0 125,7 0 116,3 0 118,7 0 142,0 0 127,9 0 131,9 0 152,3 0 110,8 1 99,1 1 135,0 1 133,2 1 131,0 1 133,9 1 119,9 1 136,9 1 148,9 1 145,1 1 142,4 1 159,6 1 120,7 1 109,0 1 142,0 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 109.771212121212 + 21.3954545454545X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)109.7712121212121.91698557.262400
X21.39545454545454.454674.80297e-064e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.475401918013747
R-squared0.226006983651150
Adjusted R-squared0.216209603697367
F-TEST (value)23.0681044031455
F-TEST (DF numerator)1
F-TEST (DF denominator)79
p-value7.29512625641249e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.5736586420235
Sum Squared Residuals19160.5686363636


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197.7109.771212121212-12.0712121212122
2101.5109.771212121212-8.27121212121214
3119.6109.7712121212129.82878787878788
4108.1109.771212121212-1.67121212121212
5117.8109.7712121212128.02878787878788
6125.5109.77121212121215.7287878787879
789.2109.771212121212-20.5712121212121
892.3109.771212121212-17.4712121212121
9104.6109.771212121212-5.17121212121213
10122.8109.77121212121213.0287878787879
1196109.771212121212-13.7712121212121
1294.6109.771212121212-15.1712121212121
1393.3109.771212121212-16.4712121212121
14101.1109.771212121212-8.67121212121213
15114.2109.7712121212124.42878787878788
16104.7109.771212121212-5.07121212121212
17113.3109.7712121212123.52878787878788
18118.2109.7712121212128.42878787878788
1983.6109.771212121212-26.1712121212121
2073.9109.771212121212-35.8712121212121
2199.5109.771212121212-10.2712121212121
2297.7109.771212121212-12.0712121212121
23103109.771212121212-6.77121212121212
24106.3109.771212121212-3.47121212121212
2592.2109.771212121212-17.5712121212121
26101.8109.771212121212-7.97121212121212
27122.8109.77121212121213.0287878787879
28111.8109.7712121212122.02878787878788
29106.3109.771212121212-3.47121212121212
30121.5109.77121212121211.7287878787879
3181.9109.771212121212-27.8712121212121
3285.4109.771212121212-24.3712121212121
33110.9109.7712121212121.12878787878789
34117.3109.7712121212127.52878787878788
35106.3109.771212121212-3.47121212121212
36105.5109.771212121212-4.27121212121212
37101.3109.771212121212-8.47121212121212
38105.9109.771212121212-3.87121212121211
39126.3109.77121212121216.5287878787879
40111.9109.7712121212122.12878787878789
41108.9109.771212121212-0.871212121212114
42127.2109.77121212121217.4287878787879
4394.2109.771212121212-15.5712121212121
4485.7109.771212121212-24.0712121212121
45116.2109.7712121212126.42878787878788
46107.2109.771212121212-2.57121212121212
47110.6109.7712121212120.828787878787875
48112109.7712121212122.22878787878788
49104.5109.771212121212-5.27121212121212
50112109.7712121212122.22878787878788
51132.8109.77121212121223.0287878787879
52110.8109.7712121212121.02878787878788
53128.7109.77121212121218.9287878787879
54136.8109.77121212121227.0287878787879
5594.9109.771212121212-14.8712121212121
5688.8109.771212121212-20.9712121212121
57123.2109.77121212121213.4287878787879
58125.3109.77121212121215.5287878787879
59122.7109.77121212121212.9287878787879
60125.7109.77121212121215.9287878787879
61116.3109.7712121212126.52878787878788
62118.7109.7712121212128.92878787878788
63142109.77121212121232.2287878787879
64127.9109.77121212121218.1287878787879
65131.9109.77121212121222.1287878787879
66152.3109.77121212121242.5287878787879
67110.8131.166666666667-20.3666666666667
6899.1131.166666666667-32.0666666666667
69135131.1666666666673.83333333333334
70133.2131.1666666666672.03333333333332
71131131.166666666667-0.166666666666665
72133.9131.1666666666672.73333333333334
73119.9131.166666666667-11.2666666666667
74136.9131.1666666666675.73333333333334
75148.9131.16666666666717.7333333333333
76145.1131.16666666666713.9333333333333
77142.4131.16666666666711.2333333333333
78159.6131.16666666666728.4333333333333
79120.7131.166666666667-10.4666666666667
80109131.166666666667-22.1666666666667
81142131.16666666666710.8333333333333


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3109954953415770.6219909906831540.689004504658423
60.331818007385190.663636014770380.66818199261481
70.4636633710427770.9273267420855540.536336628957223
80.4582295266970440.9164590533940880.541770473302956
90.3401976884199330.6803953768398670.659802311580067
100.346260504437140.692521008874280.65373949556286
110.3058725048380240.6117450096760490.694127495161976
120.2754182074287690.5508364148575380.724581792571231
130.2532910435883940.5065820871767880.746708956411606
140.1886827347714760.3773654695429520.811317265228524
150.1514889074542040.3029778149084090.848511092545796
160.1047196866080840.2094393732161690.895280313391916
170.07829864316444550.1565972863288910.921701356835555
180.06909954363150110.1381990872630020.930900456368499
190.1263749976437520.2527499952875040.873625002356248
200.3425553459636050.685110691927210.657444654036395
210.287915413932670.575830827865340.71208458606733
220.2455801140978900.4911602281957810.75441988590211
230.1951507759824270.3903015519648530.804849224017573
240.1513810553478120.3027621106956230.848618944652188
250.1483013752761320.2966027505522640.851698624723868
260.1159914458788840.2319828917577670.884008554121116
270.1353908673502900.2707817347005800.86460913264971
280.1082727523290140.2165455046580280.891727247670986
290.08145748435895830.1629149687179170.918542515641042
300.08511071858611910.1702214371722380.914889281413881
310.1563575464970770.3127150929941550.843642453502923
320.2209644268450740.4419288536901480.779035573154926
330.1842297058897220.3684594117794450.815770294110278
340.1666826010163470.3333652020326940.833317398983653
350.1346881537738040.2693763075476080.865311846226196
360.108249884844980.216499769689960.89175011515502
370.0919473928639280.1838947857278560.908052607136072
380.07304147802137850.1460829560427570.926958521978621
390.08896326873840450.1779265374768090.911036731261595
400.06997888660490690.1399577732098140.930021113395093
410.05390460100027870.1078092020005570.946095398999721
420.0649833987295960.1299667974591920.935016601270404
430.0740103608222180.1480207216444360.925989639177782
440.143613327424580.287226654849160.85638667257542
450.1217365977842410.2434731955684830.878263402215758
460.1035102518465570.2070205036931140.896489748153443
470.08524685715503770.1704937143100750.914753142844962
480.06950592560629890.1390118512125980.930494074393701
490.06446723968092750.1289344793618550.935532760319073
500.05331872241609840.1066374448321970.946681277583902
510.07292764532550150.1458552906510030.927072354674499
520.06100475774981750.1220095154996350.938995242250182
530.06393787213801670.1278757442760330.936062127861983
540.09429313680478510.1885862736095700.905706863195215
550.1413338507591210.2826677015182420.858666149240879
560.3439188304917390.6878376609834790.65608116950826
570.3143322558266990.6286645116533970.685667744173301
580.2868739907215130.5737479814430260.713126009278487
590.257906234272690.515812468545380.74209376572731
600.2313036157425420.4626072314850840.768696384257458
610.2300034287234850.4600068574469710.769996571276515
620.2401762795796660.4803525591593320.759823720420334
630.2606633623348230.5213267246696470.739336637665177
640.2477931986829740.4955863973659480.752206801317026
650.2572566858605560.5145133717211110.742743314139444
660.2903807644935890.5807615289871780.70961923550641
670.3165632746332290.6331265492664570.683436725366771
680.6106977771787780.7786044456424440.389302222821222
690.5450291782800980.9099416434398030.454970821719901
700.4575248415381380.9150496830762770.542475158461862
710.367315087944220.734630175888440.63268491205578
720.2752635871649850.5505271743299690.724736412835015
730.2695474600978580.5390949201957150.730452539902142
740.1816993010331820.3633986020663640.818300698966818
750.1418870843468210.2837741686936430.858112915653179
760.09032617295135040.1806523459027010.90967382704865


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/10mpeh1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/10mpeh1229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/1jw761229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/1jw761229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/2lqbr1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/2lqbr1229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/3udir1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/3udir1229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/42sd81229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/42sd81229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/5du211229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/5du211229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/6lm6m1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/6lm6m1229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/7gmzn1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/7gmzn1229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/8u9fa1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/8u9fa1229172147.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/9wame1229172147.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229172201mmavnh26kjh6j8i/9wame1229172147.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
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))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
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')
qqline(mysum$resid)
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()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
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')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.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