Home » date » 2010 » Nov » 28 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 28 Nov 2010 12:07:22 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx.htm/, Retrieved Sun, 28 Nov 2010 13:08:34 +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/2010/Nov/28/t1290946104n6ebykqtvhcxapx.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
5.81 0 5.76 0 5.99 0 6.12 0 6.03 0 6.25 0 5.80 0 5.67 0 5.89 0 5.91 0 5.86 0 6.07 0 6.27 0 6.68 0 6.77 0 6.71 0 6.62 0 6.50 0 5.89 0 6.05 0 6.43 0 6.47 0 6.62 0 6.77 0 6.70 0 6.95 0 6.73 0 7.07 0 7.28 0 7.32 0 6.76 0 6.93 0 6.99 0 7.16 0 7.28 0 7.08 0 7.34 0 7.87 0 6.28 1 6.30 1 6.36 1 6.28 1 5.89 1 6.04 1 5.96 1 6.10 1 6.26 1 6.02 1 6.25 1 6.41 1 6.22 1 6.57 1 6.18 1 6.26 1 6.10 1 6.02 1 6.06 1 6.35 1 6.21 1 6.48 1 6.74 1 6.53 1 6.80 1 6.75 1 6.56 1 6.66 1 6.18 1 6.40 1 6.43 1 6.54 1 6.44 1 6.64 1 6.82 1 6.97 1 7.00 1 6.91 1 6.74 1 6.98 1 6.37 1 6.56 1 6.63 1 6.87 1 6.68 1 6.75 1 6.84 1 7.15 1 7.09 1 6.97 1 7.15 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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 5.97918507128879 -1.18678734507501X[t] + 0.0967005152517632M1[t] + 0.264549164414625M2[t] + 0.206996231711863M3[t] + 0.246094880874725M4[t] + 0.160193530037586M5[t] + 0.218265247879974M6[t] -0.273350388671451M7[t] -0.202108882365732M8[t] -0.125153090345727M9[t] -0.00676872689715154M10[t] -0.039812934877147M11[t] + 0.0259013508371385t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)5.979185071288790.10093659.237400
X-1.186787345075010.09706-12.227300
M10.09670051525176320.119650.80820.4215330.210766
M20.2645491644146250.1196112.21170.030030.015015
M30.2069962317118630.1200021.72490.0886570.044328
M40.2460948808747250.119862.05320.0435410.021771
M50.1601935300375860.1197461.33780.1850130.092506
M60.2182652478799740.1239771.76050.0823940.041197
M7-0.2733503886714510.123822-2.20760.030330.015165
M8-0.2021088823657320.123695-1.63390.1064660.053233
M9-0.1251530903457270.123597-1.01260.3145110.157255
M10-0.006768726897151540.123526-0.05480.9564470.478223
M11-0.0398129348771470.123484-0.32240.7480360.374018
t0.02590135083713850.00186713.875500


Multiple Linear Regression - Regression Statistics
Multiple R0.87528582129607
R-squared0.766125268961935
Adjusted R-squared0.72558698224867
F-TEST (value)18.8988073023632
F-TEST (DF numerator)13
F-TEST (DF denominator)75
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.230990987570176
Sum Squared Residuals4.00176272539838


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
15.816.10178693737768-0.291786937377685
25.766.2955369373777-0.535536937377696
35.996.26388535551207-0.273885355512067
46.126.32888535551207-0.208885355512069
56.036.26888535551207-0.238885355512068
66.256.3528584241916-0.102858424191595
75.85.88714413847731-0.0871441384773088
85.675.98428699562017-0.314286995620166
95.896.0871441384773-0.197144138477309
105.916.23142985276302-0.321429852763023
115.866.22428699562017-0.364286995620166
126.076.29000128133445-0.220001281334451
136.276.41260314742335-0.142603147423354
146.686.606353147423350.0736468525766483
156.776.574701565557730.195298434442270
166.716.639701565557730.0702984344422701
176.626.579701565557730.0402984344422701
186.56.66367463423726-0.163674634237257
195.896.19796034852297-0.307960348522971
206.056.29510320566583-0.245103205665828
216.436.397960348522970.0320396514770291
226.476.54224606280868-0.0722460628086852
236.626.535103205665830.0848967943341721
246.776.600817491380110.169182508619886
256.76.72341935746902-0.0234193574690154
266.956.917169357469010.0328306425309854
276.736.88551777560339-0.155517775603392
287.076.950517775603390.119482224396608
297.286.890517775603390.389482224396608
307.326.974490844282920.345509155717082
316.766.508776558568630.251223441431367
326.936.605919415711490.32408058428851
336.996.708776558568630.281223441431368
347.166.853062272854350.306937727145653
357.286.845919415711490.43408058428851
367.086.911633701425780.168366298574225
377.347.034235567514680.305764432485322
387.877.227985567514680.642014432485324
396.286.009546640574040.270453359425962
406.36.074546640574040.225453359425962
416.366.014546640574040.345453359425962
426.286.098519709253560.181480290746436
435.895.632805423539280.257194576460721
446.045.729948280682140.310051719317864
455.965.832805423539280.127194576460721
466.15.977091137824990.122908862175006
476.265.969948280682140.290051719317864
486.026.03566256639642-0.0156625663964219
496.256.158264432485320.0917355675146763
506.416.352014432485320.0579855675146774
516.226.3203628506197-0.100362850619701
526.576.38536285061970.184637149380300
536.186.3253628506197-0.145362850619700
546.266.40933591929923-0.149335919299227
556.15.943621633584940.156378366415059
566.026.0407644907278-0.0207644907277982
576.066.14362163358494-0.0836216335849412
586.356.287907347870650.0620926521293446
596.216.2807644907278-0.0707644907277982
606.486.346478776442080.133521223557917
616.746.469080642530990.270919357469015
626.536.66283064253098-0.132830642530985
636.86.631179060665360.168820939334638
646.756.696179060665360.0538209393346381
656.566.63617906066536-0.0761790606653625
666.666.72015212934489-0.0601521293448885
676.186.2544378436306-0.0744378436306029
686.46.351580700773460.0484192992265406
696.436.4544378436306-0.024437843630603
706.546.59872355791632-0.058723557916317
716.446.59158070077346-0.151580700773460
726.646.65729498648775-0.0172949864877457
736.826.779896852576650.0401031474233526
746.976.97364685257665-0.00364685257664711
7576.941995270711020.0580047292889757
766.917.00699527071102-0.0969952707110238
776.746.94699527071102-0.206995270711024
786.987.03096833939055-0.0509683393905502
796.376.56525405367626-0.195254053676265
806.566.66239691081912-0.102396910819122
816.636.76525405367626-0.135254053676265
826.876.90953976796198-0.0395397679619792
836.686.90239691081912-0.222396910819123
846.756.96811119653341-0.218111196533408
856.847.09071306262231-0.25071306262231
867.157.28446306262231-0.134463062622308
877.097.25281148075669-0.162811480756686
886.977.31781148075669-0.347811480756686
897.157.25781148075669-0.107811480756686


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3856374496454810.7712748992909620.614362550354519
180.5830790317608470.8338419364783070.416920968239153
190.8333994035582630.3332011928834730.166600596441736
200.84628490440670.3074301911865990.153715095593300
210.7852679715055760.4294640569888480.214732028494424
220.760584434231270.478831131537460.23941556576873
230.763356746195420.4732865076091590.236643253804580
240.7153374285912770.5693251428174460.284662571408723
250.751065562052090.4978688758958190.248934437947910
260.7549899637459080.4900200725081840.245010036254092
270.9693770407284050.06124591854319050.0306229592715952
280.9705473506511750.0589052986976490.0294526493488245
290.9705838695886480.05883226082270330.0294161304113517
300.9663025981962650.06739480360746940.0336974018037347
310.9609968160202580.07800636795948320.0390031839797416
320.9690702385530240.06185952289395270.0309297614469764
330.9546385587232870.09072288255342610.0453614412767131
340.947836174145870.1043276517082590.0521638258541297
350.9451783179993380.1096433640013250.0548216820006623
360.9534187477319060.09316250453618840.0465812522680942
370.9677161751711050.06456764965779080.0322838248288954
380.9741263933243580.05174721335128310.0258736066756415
390.9611528800282140.07769423994357270.0388471199717864
400.9456126302600040.1087747394799930.0543873697399964
410.9534258068308630.09314838633827370.0465741931691368
420.9415580886959970.1168838226080060.0584419113040031
430.9272033330806770.1455933338386460.072796666919323
440.9249216095040190.1501567809919620.0750783904959808
450.9127664810941070.1744670378117870.0872335189058935
460.8852408649190140.2295182701619720.114759135080986
470.9241081468719360.1517837062561280.075891853128064
480.9372750440070910.1254499119858170.0627249559929086
490.930073599087340.1398528018253190.0699264009126596
500.9325092889810830.1349814220378340.0674907110189170
510.986571967671860.02685606465627920.0134280323281396
520.9863682787916660.02726344241666840.0136317212083342
530.9970962615975980.005807476804803730.00290373840240187
540.999322021994460.001355956011082170.000677978005541086
550.9991409064046680.001718187190663180.00085909359533159
560.999188082881950.001623834236098460.000811917118049232
570.9994621077699590.001075784460082210.000537892230041104
580.9990117312540670.001976537491865560.00098826874593278
590.998689698452420.002620603095161490.00131030154758075
600.9975193504925590.004961299014882520.00248064950744126
610.9982871691068060.003425661786387240.00171283089319362
620.9995670569630.0008658860740004160.000432943037000208
630.9989696244886280.002060751022743970.00103037551137199
640.998575611366440.00284877726712010.00142438863356005
650.9978955986701630.004208802659673310.00210440132983665
660.9970921829198780.005815634160244040.00290781708012202
670.993410992187610.01317801562477840.00658900781238919
680.9840070047475020.03198599050499660.0159929952524983
690.9642020148692260.07159597026154760.0357979851307738
700.950929349678380.09814130064323890.0490706503216194
710.90808865238380.1838226952324000.0919113476162002
720.8037865118210170.3924269763579650.196213488178983


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level140.25NOK
5% type I error level180.321428571428571NOK
10% type I error level320.571428571428571NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/10ep691290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/10ep691290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/1porf1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/1porf1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/2porf1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/2porf1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/3if9i1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/3if9i1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/4if9i1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/4if9i1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/5if9i1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/5if9i1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/6b6ql1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/6b6ql1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/7mgpo1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/7mgpo1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/8mgpo1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/8mgpo1290946034.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/9mgpo1290946034.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290946104n6ebykqtvhcxapx/9mgpo1290946034.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