Home » date » 2008 » Nov » 27 »

multiple linear regression rentevoet

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 27 Nov 2008 05:49:29 -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/27/t1227790518lg1yey1d49jzxt2.htm/, Retrieved Thu, 27 Nov 2008 12:55:28 +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/27/t1227790518lg1yey1d49jzxt2.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 «
4,75 1 4,75 1 4,75 1 4,75 1 4,58 1 4,50 1 4,50 1 4,49 1 4,03 0 3,75 0 3,39 0 3,25 0 3,25 1 3,25 1 3,25 1 3,25 0 3,25 0 3,25 0 3,25 0 3,25 0 3,25 0 3,25 0 3,25 0 2,85 0 2,75 0 2,75 0 2,55 0 2,50 0 2,50 0 2,10 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 0 2,00 1 2,00 0 2,00 1 2,00 0 2,00 0 2,00 1 2,00 1 2,00 0 2,00 0 2,00 1 2,00 1 2,00 1 2,00 1 2,00 1 2,00 1 2,00 1 2,00 1 2,00 1 2,00 1 2,21 1 2,25 1 2,25 1 2,45 1 2,50 1 2,50 1 2,64 1 2,75 1 2,93 1 3,00 0 3,17 0 3,25 0 3,39 1 3,50 0 3,50 0 3,65 0 3,75 0 3,75 0 3,90 0 4,00 0 4,00 0 4,00 0 4,00 1 4,00 1 4,00 1 4,00 1 4,00 1 4,00 1 4,00 1 4,00 1 4,00 1 4,18 1 4,25 1 4,25 1 3,95 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
rentevoet%[t] = + 2.67337920837125 + 0.328781847133759dummy[t] + 0.224729868061874M1[t] + 0.183632137170154M2[t] + 0.202382137170153M3[t] + 0.255979868061873M4[t] + 0.193632137170153M5[t] + 0.210979868061873M6[t] + 0.206132137170153M7[t] + 0.277229868061873M8[t] + 0.310675329845312M9[t] + 0.177229868061873M10[t] + 0.0271428571428556M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.673379208371250.3730587.166100
dummy0.3287818471337590.2026841.62210.108660.05433
M10.2247298680618740.4970010.45220.6523540.326177
M20.1836321371701540.4983830.36850.7134940.356747
M30.2023821371701530.4983830.40610.6857560.342878
M40.2559798680618730.4970010.5150.6079210.303961
M50.1936321371701530.4983830.38850.698650.349325
M60.2109798680618730.4970010.42450.6723220.336161
M70.2061321371701530.4983830.41360.6802590.340129
M80.2772298680618730.4970010.55780.5785160.289258
M90.3106753298453120.4981070.62370.5345690.267284
M100.1772298680618730.4970010.35660.7223190.36116
M110.02714285714285560.5130820.05290.9579410.47897


Multiple Linear Regression - Regression Statistics
Multiple R0.202141867402353
R-squared0.0408613345569104
Adjusted R-squared-0.101233282545770
F-TEST (value)0.28756426802138
F-TEST (DF numerator)12
F-TEST (DF denominator)81
p-value0.989824486603742
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.959889297728986
Sum Squared Residuals74.6323845754664


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14.753.226890923566871.52310907643313
24.753.185793192675161.56420680732484
34.753.204543192675161.54545680732484
44.753.258140923566881.49185907643312
54.583.195793192675161.38420680732484
64.53.213140923566881.28685907643312
74.53.208293192675161.29170680732484
84.493.279390923566881.21060907643312
94.032.984054538216561.04594546178344
103.752.850609076433120.89939092356688
113.392.70052206551410.689477934485896
123.252.673379208371250.576620791628752
133.253.226890923566880.0231090764331209
143.253.185793192675160.0642068073248405
153.253.204543192675160.045456807324841
163.252.929359076433120.320640923566879
173.252.86701134554140.382988654458599
183.252.884359076433120.365640923566879
193.252.87951134554140.370488654458599
203.252.950609076433120.299390923566879
213.252.984054538216560.26594546178344
223.252.850609076433120.399390923566879
233.252.70052206551410.549477934485896
242.852.673379208371250.176620791628752
252.752.89810907643312-0.148109076433121
262.752.8570113455414-0.107011345541402
272.552.8757613455414-0.325761345541401
282.52.92935907643312-0.429359076433121
292.52.8670113455414-0.367011345541401
302.12.88435907643312-0.784359076433121
3122.8795113455414-0.8795113455414
3222.95060907643312-0.950609076433122
3322.98405453821656-0.98405453821656
3422.85060907643312-0.850609076433121
3522.7005220655141-0.700522065514104
3622.67337920837125-0.673379208371248
3722.89810907643312-0.898109076433121
3822.8570113455414-0.857011345541402
3922.8757613455414-0.875761345541401
4022.92935907643312-0.929359076433122
4123.19579319267516-1.19579319267516
4222.88435907643312-0.884359076433121
4323.20829319267516-1.20829319267516
4422.95060907643312-0.950609076433122
4522.98405453821656-0.98405453821656
4623.17939092356688-1.17939092356688
4723.02930391264786-1.02930391264786
4822.67337920837125-0.673379208371248
4922.89810907643312-0.898109076433121
5023.18579319267516-1.18579319267516
5123.20454319267516-1.20454319267516
5223.25814092356688-1.25814092356688
5323.19579319267516-1.19579319267516
5423.21314092356688-1.21314092356688
5523.20829319267516-1.20829319267516
5623.27939092356688-1.27939092356688
5723.31283638535032-1.31283638535032
5823.17939092356688-1.17939092356688
5923.02930391264786-1.02930391264786
602.213.00216105550501-0.792161055505006
612.253.22689092356688-0.97689092356688
622.253.18579319267516-0.93579319267516
632.453.20454319267516-0.754543192675159
642.53.25814092356688-0.758140923566879
652.53.19579319267516-0.695793192675159
662.643.21314092356688-0.573140923566879
672.753.20829319267516-0.458293192675159
682.933.27939092356688-0.349390923566879
6932.984054538216560.0159454617834397
703.172.850609076433120.319390923566879
713.252.70052206551410.549477934485896
723.393.002161055505010.387838944494994
733.52.898109076433120.601890923566879
743.52.85701134554140.642988654458598
753.652.87576134554140.774238654458599
763.752.929359076433120.820640923566879
773.752.86701134554140.882988654458599
783.92.884359076433121.01564092356688
7942.87951134554141.12048865445860
8042.950609076433121.04939092356688
8142.984054538216561.01594546178344
8243.179390923566880.820609076433121
8343.029303912647860.970696087352138
8443.002161055505010.997838944494994
8543.226890923566880.773109076433121
8643.185793192675160.81420680732484
8743.204543192675160.795456807324841
8843.258140923566880.741859076433121
8943.195793192675160.80420680732484
9043.213140923566880.786859076433121
914.183.208293192675160.97170680732484
924.253.279390923566880.97060907643312
934.253.312836385350320.937163614649682
943.953.179390923566880.770609076433121


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.7546767752077940.4906464495844120.245323224792206
170.6137733862526000.7724532274947990.386226613747400
180.4714746660547590.9429493321095170.528525333945241
190.3418653520198360.6837307040396720.658134647980164
200.2344096252445260.4688192504890520.765590374755474
210.186127327869420.372254655738840.81387267213058
220.1309018157498930.2618036314997850.869098184250107
230.08333450102088730.1666690020417750.916665498979113
240.05309747236888890.1061949447377780.946902527631111
250.03035779716674880.06071559433349760.969642202833251
260.01664191104361220.03328382208722440.983358088956388
270.008907352150570980.01781470430114200.99109264784943
280.0080503424411760.0161006848823520.991949657558824
290.006263900000332950.01252780000066590.993736099999667
300.00765446983724810.01530893967449620.992345530162752
310.009904599120156380.01980919824031280.990095400879844
320.01180781891654700.02361563783309390.988192181083453
330.02743053153286790.05486106306573570.972569468467132
340.04360367579021380.08720735158042750.956396324209786
350.05268092828638280.1053618565727660.947319071713617
360.05262063062236680.1052412612447340.947379369377633
370.0416347885721130.0832695771442260.958365211427887
380.03287765995926470.06575531991852930.967122340040735
390.02605656825838870.05211313651677730.973943431741611
400.02716966689699890.05433933379399780.972830333103001
410.1146742374657710.2293484749315430.885325762534229
420.1121861386423140.2243722772846280.887813861357686
430.2162008583027570.4324017166055150.783799141697243
440.2248897383103800.4497794766207610.77511026168962
450.2523360975778140.5046721951556280.747663902422186
460.3889112770356440.7778225540712880.611088722964356
470.4629318759684430.9258637519368860.537068124031557
480.4866757447655310.9733514895310620.513324255234469
490.51143759067140.97712481865720.4885624093286
500.5574893628028470.8850212743943070.442510637197154
510.5995775890768910.8008448218462180.400422410923109
520.6545043897839670.6909912204320660.345495610216033
530.6841495636940560.6317008726118870.315850436305944
540.7220511295436460.5558977409127080.277948870456354
550.759705665206080.480588669587840.24029433479392
560.8100697266251120.3798605467497750.189930273374888
570.8502880804185910.2994238391628180.149711919581409
580.88911633685590.2217673262882010.110883663144101
590.9110255694288190.1779488611423620.0889744305711811
600.9270629424014590.1458741151970830.0729370575985413
610.9430482535145820.1139034929708360.0569517464854181
620.9593162454840340.0813675090319330.0406837545159665
630.9699265160907030.06014696781859420.0300734839092971
640.980863383648250.03827323270350150.0191366163517508
650.990455459852060.01908908029588030.00954454014794013
660.996393035423650.007213929152700270.00360696457635013
670.9994916787779960.001016642444008170.000508321222004084
680.9999868455525282.63088949431352e-051.31544474715676e-05
690.9999993814844831.23703103300837e-066.18515516504183e-07
700.9999994269194451.14616110928226e-065.7308055464113e-07
710.9999993342533771.33149324661814e-066.65746623309072e-07
720.9999999848143583.03712840877811e-081.51856420438905e-08
730.9999999674122026.51755954328964e-083.25877977164482e-08
740.9999999870540252.58919491757661e-081.29459745878831e-08
750.9999999551689588.96620845716028e-084.48310422858014e-08
760.9999991837014021.63259719562458e-068.16298597812292e-07
770.999986574507692.68509846183028e-051.34254923091514e-05
780.9999492276062940.0001015447874118915.07723937059456e-05


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.206349206349206NOK
5% type I error level220.349206349206349NOK
10% type I error level310.492063492063492NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/10akda1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/10akda1227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/11eym1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/11eym1227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/26ry21227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/26ry21227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/3iesp1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/3iesp1227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/4btdg1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/4btdg1227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/5a9f31227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/5a9f31227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/6mhs81227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/6mhs81227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/7f55x1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/7f55x1227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/8416q1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/8416q1227790164.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/9nbmo1227790164.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227790518lg1yey1d49jzxt2/9nbmo1227790164.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)
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