Home » date » 2010 » Nov » 27 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sat, 27 Nov 2010 17:19:25 +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/27/t1290878430bbhdiezwcxlc4z1.htm/, Retrieved Sat, 27 Nov 2010 18:20:30 +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/27/t1290878430bbhdiezwcxlc4z1.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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 6.53684210526316 -0.0319401444788443X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.536842105263160.07189590.921700
X-0.03194014447884430.094975-0.33630.7374550.368727


Multiple Linear Regression - Regression Statistics
Multiple R0.0360316991397718
R-squared0.00129828334289903
Adjusted R-squared-0.0101810467336194
F-TEST (value)0.113097483411052
F-TEST (DF numerator)1
F-TEST (DF denominator)87
p-value0.737454668526929
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.443192383986229
Sum Squared Residuals17.0884955624355


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
15.816.53684210526316-0.726842105263157
25.766.53684210526316-0.776842105263158
35.996.53684210526316-0.546842105263158
46.126.53684210526316-0.416842105263158
56.036.53684210526316-0.506842105263158
66.256.53684210526316-0.286842105263158
75.86.53684210526316-0.736842105263158
85.676.53684210526316-0.866842105263158
95.896.53684210526316-0.646842105263158
105.916.53684210526316-0.626842105263158
115.866.53684210526316-0.676842105263158
126.076.53684210526316-0.466842105263158
136.276.53684210526316-0.266842105263158
146.686.536842105263160.143157894736842
156.776.536842105263160.233157894736842
166.716.536842105263160.173157894736842
176.626.536842105263160.0831578947368422
186.56.53684210526316-0.0368421052631579
195.896.53684210526316-0.646842105263158
206.056.53684210526316-0.486842105263158
216.436.53684210526316-0.106842105263158
226.476.53684210526316-0.0668421052631582
236.626.536842105263160.0831578947368422
246.776.536842105263160.233157894736842
256.76.536842105263160.163157894736842
266.956.536842105263160.413157894736842
276.736.536842105263160.193157894736843
287.076.536842105263160.533157894736842
297.286.536842105263160.743157894736842
307.326.536842105263160.783157894736842
316.766.536842105263160.223157894736842
326.936.536842105263160.393157894736842
336.996.536842105263160.453157894736842
347.166.536842105263160.623157894736842
357.286.536842105263160.743157894736842
367.086.536842105263160.543157894736842
377.346.536842105263160.803157894736842
387.876.536842105263161.33315789473684
396.286.50490196078431-0.224901960784313
406.36.50490196078431-0.204901960784314
416.366.50490196078431-0.144901960784313
426.286.50490196078431-0.224901960784313
435.896.50490196078431-0.614901960784314
446.046.50490196078431-0.464901960784314
455.966.50490196078431-0.544901960784314
466.16.50490196078431-0.404901960784314
476.266.50490196078431-0.244901960784314
486.026.50490196078431-0.484901960784314
496.256.50490196078431-0.254901960784314
506.416.50490196078431-0.0949019607843136
516.226.50490196078431-0.284901960784314
526.576.504901960784310.0650980392156866
536.186.50490196078431-0.324901960784314
546.266.50490196078431-0.244901960784314
556.16.50490196078431-0.404901960784314
566.026.50490196078431-0.484901960784314
576.066.50490196078431-0.444901960784314
586.356.50490196078431-0.154901960784314
596.216.50490196078431-0.294901960784314
606.486.50490196078431-0.0249019607843133
616.746.504901960784310.235098039215687
626.536.504901960784310.0250980392156865
636.86.504901960784310.295098039215686
646.756.504901960784310.245098039215686
656.566.504901960784310.0550980392156859
666.666.504901960784310.155098039215686
676.186.50490196078431-0.324901960784314
686.46.50490196078431-0.104901960784313
696.436.50490196078431-0.074901960784314
706.546.504901960784310.0350980392156863
716.446.50490196078431-0.0649019607843133
726.646.504901960784310.135098039215686
736.826.504901960784310.315098039215687
746.976.504901960784310.465098039215686
7576.504901960784310.495098039215686
766.916.504901960784310.405098039215686
776.746.504901960784310.235098039215687
786.986.504901960784310.475098039215687
796.376.50490196078431-0.134901960784314
806.566.504901960784310.0550980392156859
816.636.504901960784310.125098039215686
826.876.504901960784310.365098039215686
836.686.504901960784310.175098039215686
846.756.504901960784310.245098039215686
856.846.504901960784310.335098039215686
867.156.504901960784310.645098039215687
877.096.504901960784310.585098039215686
886.976.504901960784310.465098039215686
897.156.504901960784310.645098039215687


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.0827266460275850.165453292055170.917273353972415
60.08168153422248340.1633630684449670.918318465777517
70.05209650148119690.1041930029623940.947903498518803
80.05619386811661780.1123877362332360.943806131883382
90.03024833610361290.06049667220722570.969751663896387
100.01611813592415030.03223627184830050.98388186407585
110.009486310658593550.01897262131718710.990513689341406
120.006621568600694990.01324313720139000.993378431399305
130.01172850835630260.02345701671260530.988271491643697
140.1243689048054150.2487378096108300.875631095194585
150.342153514988110.684307029976220.65784648501189
160.4748854043355990.9497708086711990.525114595664401
170.5220602988352310.9558794023295380.477939701164769
180.5149048374323250.970190325135350.485095162567675
190.5804219813826570.8391560372346860.419578018617343
200.6120192365925850.775961526814830.387980763407415
210.6217250780188790.7565498439622430.378274921981121
220.6405328665254220.7189342669491570.359467133474578
230.6843605106723580.6312789786552850.315639489327642
240.7533637957064870.4932724085870260.246636204293513
250.7909321499469870.4181357001060260.209067850053013
260.8625752563689410.2748494872621170.137424743631059
270.8825178343760480.2349643312479040.117482165623952
280.9303188715727740.1393622568544520.0696811284272261
290.9713278773680740.05734424526385240.0286721226319262
300.987840581855630.02431883628874150.0121594181443707
310.9882670617950460.02346587640990780.0117329382049539
320.9893784552421450.02124308951571020.0106215447578551
330.9907962799159930.01840744016801490.00920372008400743
340.9929612202310370.01407755953792540.00703877976896269
350.9950955943174650.009808811365070820.00490440568253541
360.9961519723697460.007696055260507450.00384802763025372
370.997744283075790.004511433848420010.00225571692421000
380.9994035596181370.001192880763725470.000596440381862735
390.9990753828041220.001849234391756440.000924617195878222
400.9985714512949420.002857097410117080.00142854870505854
410.9977531508790260.004493698241948620.00224684912097431
420.9967159377892120.006568124421576350.00328406221078817
430.9977460894643620.004507821071275200.00225391053563760
440.9977979989798040.004404002040392080.00220200102019604
450.9983304525110580.003339094977884020.00166954748894201
460.998294305132120.003411389735760370.00170569486788018
470.9977646908948230.004470618210353020.00223530910517651
480.998288450523820.003423098952359380.00171154947617969
490.9978992999957020.004201400008596410.00210070000429821
500.9969808078334630.006038384333073380.00301919216653669
510.996609451551360.006781096897281690.00339054844864085
520.9950712331137740.009857533772452690.00492876688622634
530.9950781511904820.009843697619036710.00492184880951836
540.9944320933652060.01113581326958700.00556790663479351
550.995975899348710.008048201302579750.00402410065128987
560.9982014400111360.003597119977727640.00179855998886382
570.9992973578747250.001405284250550600.000702642125275302
580.9992577990588340.001484401882332340.000742200941166172
590.9995868179541120.000826364091776010.000413182045888005
600.9994540373950280.001091925209943440.00054596260497172
610.999146321878570.001707356242860770.000853678121430383
620.9987683057717460.002463388456507790.00123169422825389
630.9981489721777480.003702055644504480.00185102782225224
640.9970546483639020.005890703272196380.00294535163609819
650.9955860964379810.008827807124037640.00441390356201882
660.9929538487721440.01409230245571140.00704615122785568
670.9972550433402040.005489913319593030.00274495665979651
680.997638525582480.004722948835039610.00236147441751981
690.9979717457905030.004056508418994730.00202825420949737
700.9975603379539010.004879324092197710.00243966204609885
710.9983220588864830.003355882227034490.00167794111351724
720.997562780259530.004874439480938840.00243721974046942
730.9954332829576160.00913343408476830.00456671704238415
740.9926944412525950.01461111749480980.00730555874740492
750.9891160917067970.02176781658640540.0108839082932027
760.9809843885127280.03803122297454490.0190156114872724
770.9665816939559260.06683661208814880.0334183060440744
780.9488137108138880.1023725783722230.0511862891861116
790.9740035005916870.05199299881662520.0259964994083126
800.9760878446590740.04782431068185170.0239121553409258
810.9755619747062960.04887605058740860.0244380252937043
820.9457265702791320.1085468594417360.0542734297208681
830.9445008126233130.1109983747533750.0554991873766875
840.9439481472547140.1121037054905730.0560518527452864


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level370.4625NOK
5% type I error level530.6625NOK
10% type I error level570.7125NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/103r21290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/103r21290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/10wdos1290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/10wdos1290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/203r21290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/203r21290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/303r21290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/303r21290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/4td841290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/4td841290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/5td841290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/5td841290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/6td841290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/6td841290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/74m7q1290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/74m7q1290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/8wdos1290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/8wdos1290878356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/9wdos1290878356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290878430bbhdiezwcxlc4z1/9wdos1290878356.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by