Home » date » 2009 » Nov » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 19 Nov 2009 08:42:20 -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/Nov/19/t1258645477hdgdfhps4ksqs8d.htm/, Retrieved Thu, 19 Nov 2009 16:44:49 +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/Nov/19/t1258645477hdgdfhps4ksqs8d.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 «
142773 0 142773 149657 133639 0 133639 142773 128332 0 128332 133639 120297 0 120297 128332 118632 0 118632 120297 155276 0 155276 118632 169316 0 169316 155276 167395 0 167395 169316 157939 0 157939 167395 149601 0 149601 157939 146310 0 146310 149601 141579 0 141579 146310 136473 0 136473 141579 129818 0 129818 136473 124226 0 124226 129818 116428 0 116428 124226 116440 0 116440 116428 147747 0 147747 116440 160069 0 160069 147747 163129 0 163129 160069 151108 0 151108 163129 141481 0 141481 151108 139174 0 139174 141481 134066 0 134066 139174 130104 0 130104 134066 123090 0 123090 130104 116598 0 116598 123090 109627 0 109627 116598 105428 0 105428 109627 137272 0 137272 105428 159836 0 159836 137272 155283 0 155283 159836 141514 0 141514 155283 131852 0 131852 141514 130691 0 130691 131852 128461 0 128461 130691 123066 0 123066 128461 117599 0 117599 123066 111599 0 111599 117599 105395 0 105395 111599 102334 0 102334 105395 131305 0 131305 102334 149033 0 149033 etc...
 
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] = + 4.92846343476301e-11 -2.98615544369428e-12X[t] + 1Y1[t] + 8.76083176041636e-18Y2[t] -3.59960750140816e-13M1[t] + 1.91039989183012e-13M2[t] + 9.58085589102287e-12M3[t] + 1.62581264265537e-12M4[t] + 2.27350604296845e-12M5[t] -4.41959246781001e-14M6[t] -1.80473205404753e-12M7[t] -1.53258490248065e-12M8[t] -7.35980514667547e-13M9[t] + 1.80890479746526e-13M10[t] + 1.87338371298928e-13M11[t] -5.19452604930502e-14t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)4.92846343476301e-1104.16567.9e-053.9e-05
X-2.98615544369428e-120-0.96240.3387910.169395
Y110335919230348125700
Y28.76083176041636e-1800.02880.9771150.488557
M1-3.59960750140816e-130-0.10080.9199540.459977
M21.91039989183012e-1300.05160.9589660.479483
M39.58085589102287e-1202.57910.0117610.005881
M41.62581264265537e-1200.41120.6820110.341005
M52.27350604296845e-1200.57080.569730.284865
M6-4.41959246781001e-140-0.00390.9968710.498436
M7-1.80473205404753e-120-0.28130.7791950.389597
M8-1.53258490248065e-120-0.37120.711480.35574
M9-7.35980514667547e-130-0.15820.8746880.437344
M101.80890479746526e-1300.04150.9670130.483507
M111.87338371298928e-1300.05290.9579780.478989
t-5.19452604930502e-140-0.99220.3241320.162066


Multiple Linear Regression - Regression Statistics
Multiple R1
R-squared1
Adjusted R-squared1
F-TEST (value)5.04145999650029e+31
F-TEST (DF numerator)15
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.77646115224013e-12
Sum Squared Residuals3.62771363407775e-21


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1142773142773-6.97076020479089e-12
2133639133639-4.62525687717883e-12
31283321283325.44183115870851e-11
4120297120297-3.40053118173447e-12
5118632118632-3.18394361020532e-12
6155276155276-2.57676634316205e-12
7169316169316-6.5738652310142e-14
8167395167395-3.19090256683984e-12
9157939157939-3.34301268480542e-12
10149601149601-2.22858031249122e-12
11146310146310-2.4625185072201e-12
12141579141579-1.90520641912936e-12
13136473136473-5.40804853090086e-13
14129818129818-3.03322622107426e-13
15124226124226-1.07290116431453e-11
16116428116428-1.01714685867044e-12
17116440116440-1.54992536523827e-12
18147747147747-3.98203146897926e-13
19160069160069-2.53182729282213e-12
20163129163129-5.85571213715199e-13
21151108151108-1.45731604890662e-12
22141481141481-1.56500888007174e-12
23139174139174-4.07146249988704e-13
241340661340668.21668768276585e-14
251301041301047.12718539250577e-13
26123090123090-2.64089300562253e-13
27116598116598-8.46659381828784e-12
28109627109627-9.34354041977796e-13
291054281054284.02090450770148e-13
301372721372724.41916686385895e-13
31159836159836-1.71288707538038e-12
32155283155283-1.01901181872110e-13
331415141415147.81473043696383e-13
341318521318527.04690533827093e-13
351306911306914.42694807366088e-13
361284611284617.76367744610878e-13
371230661230668.83398016398544e-13
381175991175991.04877352990937e-12
39111599111599-5.56753523644028e-12
401053951053951.61861052151793e-12
411023341023342.4412300609666e-12
421313051313051.47759031385716e-12
431490331490331.38689493736117e-13
441449541449541.58082312342448e-12
451324041324041.91684482289470e-12
461221041221041.20418801869533e-12
471187551187551.01328401782209e-12
48116222116222-3.66583030304323e-13
491109241109246.09372201687507e-13
50103753103753-2.85770229223607e-13
519998399983-7.88086321980542e-12
529330293302-5.01697637255762e-13
539149691496-2.34141071347797e-13
541193211193212.11389323339096e-13
551392611392616.25320839405668e-13
56133739133739-9.46886526784736e-13
571239131239134.616692582237e-13
581134381134382.57877236088505e-13
591094161094161.27789733128369e-12
60109406109406-2.62116264450192e-13
611056451056451.82582058110069e-12
621013281013281.46442816736043e-12
639768697686-6.21270645376455e-12
6493093930932.34901832418257e-13
6591382913824.41832730154226e-13
661222571222574.3691179031731e-13
671391831391831.25769982657461e-12
681398871398875.75501905279789e-13
69131822131822-2.19450391589948e-13
701168051168052.21053179561928e-13
711137061137068.69565956885385e-13
721130121130121.44525348746748e-12
731104521104522.094509147549e-12
741070051070051.33491334573885e-12
75102841102841-7.93622362508816e-12
7698173981732.18735745246233e-12
7798181981811.62893998675624e-12
781372771372771.12882204362521e-12
791475791475791.64608353994517e-12
801465711465711.78480351657972e-12
811389201389208.20366781548175e-13
821303401303402.07834327435405e-13
83128140128140-5.10145421152348e-13
841270591270592.30117604977839e-13
851228601228601.38574657189466e-12
861177021177021.63032398606346e-12
87113537113537-7.62537759055352e-12
881083661083661.81285991323993e-12
891110781110785.39168181441674e-14
90150739150739-7.21660667464705e-13
911591291591296.42659320851088e-13
921579281579288.84132943927921e-13
931477681477681.03942521893901e-12
941375071375071.19794589695471e-12
95136919136919-2.23631934996096e-13


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
19001
200.999980519056013.89618879815751e-051.94809439907876e-05
215.74677351011148e-111.14935470202230e-100.999999999942532
220.0002414253227125050.0004828506454250090.999758574677287
230.6349603211469470.7300793577061060.365039678853053
240.9999997079646155.84070769135105e-072.92035384567552e-07
250.1840839851838640.3681679703677270.815916014816136
2611.88675465857786e-189.43377329288929e-19
270.3980916253618930.7961832507237860.601908374638107
280.02033823050207570.04067646100415130.979661769497924
290.05931477426549990.1186295485310000.9406852257345
300.003838634586271320.007677269172542640.996161365413729
310.1664839971416790.3329679942833570.833516002858321
3211.42464844856028e-337.12324224280138e-34
330.0009086851644529630.001817370328905930.999091314835547
340.9980286820813280.003942635837344960.00197131791867248
350.1418215161089990.2836430322179970.858178483891001
360.9998450517786940.0003098964426122860.000154948221306143
379.170981533742e-131.8341963067484e-120.999999999999083
380.9379760286307220.1240479427385560.0620239713692782
392.09562493592928e-114.19124987185856e-110.999999999979044
400.008029441491104470.01605888298220890.991970558508896
410.002179954886522720.004359909773045450.997820045113477
420.9999999954812579.03748692899215e-094.51874346449607e-09
430.8244532919659890.3510934160680220.175546708034011
440.9621504057437020.07569918851259540.0378495942562977
452.28085882460876e-154.56171764921753e-150.999999999999998
460.9992858289361870.001428342127627010.000714171063813504
470.1037877335516100.2075754671032210.89621226644839
480.999999758548794.82902421120387e-072.41451210560194e-07
491.57360404677747e-083.14720809355495e-080.99999998426396
502.93809074304749e-075.87618148609497e-070.999999706190926
510.9970311990338380.005937601932323420.00296880096616171
520.9999996925536076.14892785833258e-073.07446392916629e-07
530.9999999997186135.62774842786012e-102.81387421393006e-10
540.3131959480510210.6263918961020420.686804051948979
550.1991427793525430.3982855587050860.800857220647457
560.9999999999738535.2294254431622e-112.6147127215811e-11
570.984135352576190.03172929484762090.0158646474238105
580.999999999999992.14518213266390e-141.07259106633195e-14
590.0007568237117128670.001513647423425730.999243176288287
6014.50893324638215e-222.25446662319107e-22
610.8521772020154980.2956455959690030.147822797984502
620.9999999999999862.69318134736742e-141.34659067368371e-14
630.2394010488341820.4788020976683650.760598951165818
640.9999978489323044.30213539193941e-062.15106769596971e-06
650.9659379890327910.0681240219344170.0340620109672085
660.7921269439809170.4157461120381660.207873056019083
674.55520669046499e-089.11041338092998e-080.999999954447933
680.3183252344381460.6366504688762930.681674765561854
690.2979205482720170.5958410965440330.702079451727983
700.8885233552203260.2229532895593470.111476644779674
719.99011669378782e-061.99802333875756e-050.999990009883306
720.989380863511330.02123827297733950.0106191364886698
736.93940152158611e-111.38788030431722e-100.999999999930606
740.9636668041415130.07266639171697460.0363331958584873
751.64297341712738e-073.28594683425475e-070.999999835702658
760.9476807813155570.1046384373688850.0523192186844426


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level330.568965517241379NOK
5% type I error level370.637931034482759NOK
10% type I error level400.689655172413793NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/105drq1258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/105drq1258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/1p0k91258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/1p0k91258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/2qhxc1258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/2qhxc1258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/3ji0c1258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/3ji0c1258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/4ucep1258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/4ucep1258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/516b71258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/516b71258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/6pucb1258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/6pucb1258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/7wcr61258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/7wcr61258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/8isik1258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/8isik1258645334.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/9sw251258645334.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258645477hdgdfhps4ksqs8d/9sw251258645334.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