Home » date » 2009 » Dec » 28 »

paper multiple regressie

*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: Mon, 28 Dec 2009 08:24:16 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw.htm/, Retrieved Mon, 28 Dec 2009 16:25:19 +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/2009/Dec/28/t12620139070hpsi63xvflvlvw.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
111.6 0 104.6 0 91.6 0 98.3 0 97.7 0 106.3 0 102.3 0 106.6 0 108.1 0 93.8 0 88.2 0 108.9 0 114.2 0 102.5 0 94.2 0 97.4 0 98.5 0 106.5 0 102.9 0 97.1 0 103.7 0 93.4 0 85.8 0 108.6 0 110.2 0 101.2 0 101.2 0 96.9 0 99.4 0 118.7 0 108.0 0 101.2 0 119.9 0 94.8 0 95.3 0 118.0 0 115.9 0 111.4 0 108.2 0 108.8 0 109.5 0 124.8 0 115.3 0 109.5 0 124.2 0 92.9 0 98.4 0 120.9 0 111.7 0 116.1 0 109.4 0 111.7 0 114.3 0 133.7 0 114.3 0 126.5 0 131.0 0 104.0 0 108.9 0 128.5 0 132.4 0 128.0 0 116.4 0 120.9 0 118.6 0 133.1 0 121.1 0 127.6 0 135.4 0 114.9 0 114.3 0 128.9 0 138.9 0 129.4 0 115.0 0 128.0 0 127.0 0 128.8 0 137.9 0 128.4 0 135.9 0 122.2 0 113.1 0 136.2 1 138.0 1 115.2 1 111.0 1 99.2 1 102.4 1 112.7 1 105.5 1 98.3 1 116.4 1 97.4 1 93.3 1 117.4 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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 104.027876197698 -22.2016888398704dummy[t] + 2.48493715677481M1[t] -5.99325813974861M2[t] -14.0839534362722M3[t] -12.7246487327957M4[t] -12.3653440293192M5[t] -0.6310393258427M6[t] -8.20923462236621M7[t] -10.1374299188897M8[t] -0.62812521541325M9[t] -21.1938205119368M10[t] -23.6220158084603M11[t] + 0.415695296523518t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)104.0278761976982.37571243.788100
dummy-22.20168883987042.159455-10.281200
M12.484937156774812.9075940.85460.3952420.197621
M2-5.993258139748612.906488-2.0620.0423720.021186
M3-14.08395343627222.905627-4.84716e-063e-06
M4-12.72464873279572.905012-4.38023.5e-051.7e-05
M5-12.36534402931922.904643-4.25715.5e-052.7e-05
M6-0.63103932584272.904519-0.21730.8285440.414272
M7-8.209234622366212.904643-2.82620.0059140.002957
M8-10.13742991888972.905012-3.48960.0007810.000391
M9-0.628125215413252.905627-0.21620.8293880.414694
M10-21.19382051193682.906488-7.291900
M11-23.62201580846032.907594-8.124200
t0.4156952965235180.02673615.548100


Multiple Linear Regression - Regression Statistics
Multiple R0.911752520921038
R-squared0.831292659405868
Adjusted R-squared0.80454637370192
F-TEST (value)31.0806767192788
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.79278986918573
Sum Squared Residuals2751.62598642034


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1111.6106.9285086509964.67149134900355
2104.698.8660086509965.73399134900393
391.691.1910086509960.408991349003984
498.392.96600865099615.33399134900389
597.793.7410086509963.95899134900399
6106.3105.8910086509960.408991349003931
7102.398.7285086509963.57149134900394
8106.697.2160086509969.38399134900394
9108.1107.1410086509960.95899134900393
1093.886.9910086509966.80899134900393
1188.284.9785086509963.22149134900394
12108.9109.016219755980-0.116219755979855
13114.2111.9168522092782.28314779072180
14102.5103.854352209278-1.35435220927828
1594.296.1793522092783-1.97935220927827
1697.497.9543522092783-0.554352209278254
1798.598.7293522092783-0.229352209278277
18106.5110.879352209278-4.37935220927827
19102.9103.716852209278-0.81685220927826
2097.1102.204352209278-5.10435220927827
21103.7112.129352209278-8.42935220927827
2293.491.97935220927831.42064779072174
2385.889.9668522092783-4.16685220927826
24108.6114.004563314262-5.40456331426208
25110.2116.905195767560-6.70519576756042
26101.2108.842695767560-7.64269576756048
27101.2101.1676957675600.0323042324395135
2896.9102.942695767560-6.04269576756047
2999.4103.717695767560-4.31769576756049
30118.7115.8676957675602.83230423243952
31108108.705195767560-0.705195767560483
32101.2107.192695767560-5.99269576756048
33119.9117.1176957675602.78230423243952
3494.896.9676957675605-2.16769576756049
3595.394.95519576756050.344804232439518
36118118.992906872544-0.992906872544286
37115.9121.893539325843-5.99353932584263
38111.4113.831039325843-2.43103932584268
39108.2106.1560393258432.0439606741573
40108.8107.9310393258430.868960674157311
41109.5108.7060393258430.793960674157299
42124.8120.8560393258433.9439606741573
43115.3113.6935393258431.6064606741573
44109.5112.181039325843-2.68103932584270
45124.2122.1060393258432.09396067415730
4692.9101.956039325843-9.05603932584268
4798.499.9435393258427-1.54353932584269
48120.9123.981250430826-3.08125043082649
49111.7126.881882884125-15.1818828841249
50116.1118.819382884125-2.71938288412491
51109.4111.144382884125-1.74438288412491
52111.7112.919382884125-1.21938288412490
53114.3113.6943828841250.60561711587508
54133.7125.8443828841257.85561711587508
55114.3118.681882884125-4.38188288412491
56126.5117.1693828841259.3306171158751
57131127.0943828841253.90561711587509
58104106.944382884125-2.94438288412491
59108.9104.9318828841253.96811711587510
60128.5128.969593989109-0.46959398910871
61132.4131.8702264424070.529773557592938
62128123.8077264424074.19227355759288
63116.4116.1327264424070.267273557592871
64120.9117.9077264424072.99227355759289
65118.6118.682726442407-0.0827264424071377
66133.1130.8327264424072.26727355759287
67121.1123.670226442407-2.57022644240713
68127.6122.1577264424075.44227355759288
69135.4132.0827264424073.31727355759288
70114.9111.9327264424072.96727355759288
71114.3109.9202264424074.37977355759287
72128.9133.957937547391-5.05793754739092
73138.9136.8585700006892.04142999931072
74129.4128.7960700006890.603929999310673
75115121.121070000689-6.12107000068935
76128122.8960700006895.10392999931067
77127123.6710700006893.32892999931065
78128.8135.821070000689-7.02107000068932
79137.9128.6585700006899.24142999931067
80128.4127.1460700006891.25392999931067
81135.9137.071070000689-1.17107000068933
82122.2116.9210700006895.27892999931066
83113.1114.908570000689-1.80857000068934
84136.2116.74459226580319.4554077341973
85138119.64522471910118.3547752808989
86115.2111.5827247191013.61727528089888
87111103.9077247191017.09227528089886
8899.2105.682724719101-6.48272471910111
89102.4106.457724719101-4.05772471910113
90112.7118.607724719101-5.90772471910113
91105.5111.445224719101-5.94522471910113
9298.3109.932724719101-11.6327247191011
93116.4119.857724719101-3.45772471910112
9497.499.7077247191011-2.30772471910112
9593.397.6952247191011-4.39522471910113
96117.4121.732935824085-4.33293582408493


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.03111811342773410.06223622685546820.968881886572266
180.00729379619821880.01458759239643760.992706203801781
190.001528960390349830.003057920780699660.99847103960965
200.0387800719151940.0775601438303880.961219928084806
210.02361796217416970.04723592434833950.97638203782583
220.01045657238107920.02091314476215840.98954342761892
230.004415247131174020.008830494262348050.995584752868826
240.001770681677815210.003541363355630410.998229318322185
250.0007019637894123080.001403927578824620.999298036210588
260.0002713398875061640.0005426797750123270.999728660112494
270.003565668169578610.007131336339157210.996434331830421
280.001696951653316920.003393903306633830.998303048346683
290.00083110158433620.00166220316867240.999168898415664
300.01038441983689120.02076883967378230.98961558016311
310.007554705953420120.01510941190684020.99244529404658
320.004551222717881620.009102445435763240.995448777282118
330.02044979103258620.04089958206517250.979550208967414
340.01228447228883640.02456894457767280.987715527711164
350.01091634771174440.02183269542348880.989083652288256
360.01029239791105150.02058479582210310.989707602088948
370.006724966249801220.01344993249960240.993275033750199
380.005163972234403040.01032794446880610.994836027765597
390.006366141910345660.01273228382069130.993633858089654
400.005552570425501020.01110514085100200.994447429574499
410.004364980408153310.008729960816306620.995635019591847
420.00550859925131660.01101719850263320.994491400748683
430.004020341252355820.008040682504711640.995979658747644
440.002376217916943820.004752435833887640.997623782083056
450.002170951670379150.00434190334075830.99782904832962
460.003212744954678070.006425489909356130.996787255045322
470.001916954032744980.003833908065489970.998083045967255
480.001270750406064880.002541500812129760.998729249593935
490.01377701183101920.02755402366203830.98622298816898
500.01188014353421500.02376028706842990.988119856465785
510.00857214084772420.01714428169544840.991427859152276
520.006274521611427170.01254904322285430.993725478388573
530.004601176237503880.009202352475007770.995398823762496
540.009162437585486240.01832487517097250.990837562414514
550.007826047783494040.01565209556698810.992173952216506
560.02030148181325450.0406029636265090.979698518186745
570.01739710742317690.03479421484635370.982602892576823
580.01495132485814610.02990264971629220.985048675141854
590.01205886811216550.02411773622433110.987941131887834
600.01063161688935870.02126323377871740.98936838311064
610.01901409818107130.03802819636214260.980985901818929
620.01636021441969770.03272042883939530.983639785580302
630.01167967631510600.02335935263021200.988320323684894
640.007934665252431080.01586933050486220.992065334747569
650.005437284790049680.01087456958009940.99456271520995
660.003294094704428360.006588189408856730.996705905295572
670.003638922932293790.007277845864587580.996361077067706
680.002559772385169690.005119544770339370.99744022761483
690.001481902516794540.002963805033589070.998518097483206
700.001156080084747360.002312160169494720.998843919915253
710.0006771141033489610.001354228206697920.99932288589665
720.01598234361162690.03196468722325380.984017656388373
730.1042390744435040.2084781488870070.895760925556496
740.095926629604270.191853259208540.90407337039573
750.6098181261693130.7803637476613730.390181873830687
760.5569164381003990.8861671237992020.443083561899601
770.4289824836113790.8579649672227580.571017516388621
780.5357638374245740.9284723251508530.464236162575426
790.6499284699998530.7001430600002940.350071530000147


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.365079365079365NOK
5% type I error level540.857142857142857NOK
10% type I error level560.888888888888889NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/103ip1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/103ip1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/10volh1262013849.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/10volh1262013849.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/2wayx1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/2wayx1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/3phzj1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/3phzj1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/4p54o1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/4p54o1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/5kxjo1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/5kxjo1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/6uz1r1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/6uz1r1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/7rzqc1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/7rzqc1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/8tcrp1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/8tcrp1262013848.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/93j4s1262013848.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620139070hpsi63xvflvlvw/93j4s1262013848.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)
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