Home » date » 2008 » Dec » 10 »

multiple regression trend

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 10 Dec 2008 02:57:09 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb.htm/, Retrieved Wed, 10 Dec 2008 10:00:33 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6.4 12.5 6.8 14.8 7.5 15.9 7.5 14.8 7.6 12.9 7.6 14.3 7.4 14.2 7.3 15.9 7.1 15.3 6.9 15.5 6.8 15.1 7.5 15 7.6 12.1 7.8 15.8 8 16.9 8.1 15.1 8.2 13.7 8.3 14.8 8.2 14.7 8 16 7.9 15.4 7.6 15 7.6 15.5 8.2 15.1 8.3 11.7 8.4 16.3 8.4 16.7 8.4 15 8.6 14.9 8.9 14.6 8.8 15.3 8.3 17.9 7.5 16.4 7.2 15.4 7.5 17.9 8.8 15.9 9.3 13.9 9.3 17.8 8.7 17.9 8.2 17.4 8.3 16.7 8.5 16 8.6 16.6 8.6 19.1 8.2 17.8 8.1 17.2 8 18.6 8.6 16.3 8.7 15.1 8.8 19.2 8.5 17.7 8.4 19.1 8.5 18 8.7 17.5 8.7 17.8 8.6 21.1 8.5 17.2 8.3 19.4 8.1 19.8 8.2 17.6 8.1 16.2 8.1 19.5 7.9 19.9 7.9 20 7.9 17.3 8 18.9 8 18.6 7.9 21.4 8 18.6 7.7 19.8 7.2 20.8 7.5 19.6 7.3 17.7 7 19.8 7 22.2 7 20.7 7.2 17.9 7.3 21.2 7.1 21.4 6.8 21.7 6.6 23.2 6.2 21.5 6.2 22.9 6.8 23.2 6.9 18.6
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 9.97086989076777 -0.142539531379827Export[t] + 0.00855033860914675t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9.970869890767770.72631613.72800
Export-0.1425395313798270.052939-2.69250.0085960.004298
t0.008550338609146750.0056131.52320.1315440.065772


Multiple Linear Regression - Regression Statistics
Multiple R0.320123548276028
R-squared0.102479086160835
Adjusted R-squared0.0805883321647575
F-TEST (value)4.68138677083479
F-TEST (DF numerator)2
F-TEST (DF denominator)82
p-value0.0118803070538149
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.668722269254966
Sum Squared Residuals36.6695368185959


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.48.19767608712908-1.79767608712908
26.87.87838550356462-1.07838550356462
37.57.73014235765596-0.230142357655957
47.57.89548618078291-0.395486180782913
57.68.17486162901373-0.574861629013731
67.67.98385662369112-0.38385662369112
77.48.00666091543825-0.606660915438249
87.37.77289405070169-0.47289405070169
97.17.86696810813873-0.766968108138733
106.97.84701054047191-0.947010540471914
116.87.912576691633-1.11257669163299
127.57.93538098338012-0.435380983380121
137.68.35729596299077-0.757295962990767
147.87.83845003549455-0.0384500354945531
1587.690206889585890.30979311041411
168.17.955328384678730.144671615321274
178.28.163434067219630.0365659327803692
188.38.015190921310970.284809078689034
198.28.03799521305810.162004786941903
2087.861244160873470.138755839126532
217.97.95531821831051-0.0553182183105106
227.68.02088436947159-0.420884369471589
237.67.95816494239082-0.358164942390822
248.28.02373109355190.1762689064481
258.38.51691583885246-0.216915838852457
268.47.86978433311440.5302156668856
278.47.821318859171620.578681140828384
288.48.072186401126470.327813598873531
298.68.09499069287360.505009307126401
308.98.14630289089670.753697109103307
318.88.055075557539960.74492444246004
328.37.693023114561560.606976885438443
337.57.91538275024045-0.415382750240445
347.28.06647262022942-0.866472620229418
357.57.718674130389-0.218674130388998
368.88.01230353175780.787696468242202
379.38.30593293312660.994067066873402
389.37.758579099354421.54142090064558
398.77.752875484825590.947124515174414
408.27.832695589124650.367304410875354
418.37.941023599699670.35897640030033
428.58.04935161027470.450648389725304
438.67.972378230055950.627621769944053
448.67.624579740215530.975420259784474
458.27.818431469618450.381568530381551
468.17.912505527055490.187494472944509
4787.721500521732880.278499478267120
488.68.057891782515630.542108217484371
498.78.237489558780570.462510441219431
508.87.661627818732421.13837218126758
518.57.883987454411310.616012545588689
528.47.69298244908870.7070175509113
538.57.858326272215660.641673727784344
548.77.938146376514720.761853623485283
558.77.903934855709910.796065144290084
568.67.442104740765631.15789525923437
578.58.00655925175610.493440748243895
588.37.701522621329630.598477378670368
598.17.653057147386850.446942852613152
608.27.975194455031610.224805544968385
618.18.18330013757252-0.0833001375725194
628.17.721470022628240.378529977371763
637.97.673004548685450.226995451314548
647.97.667300934156620.232699065843384
657.98.0607080074913-0.160708007491296
6687.841195095892720.15880490410728
6787.892507293915810.107492706084186
687.97.501946944661450.398053055338555
6987.90960797113410.0903920288658921
707.77.74711087208746-0.047110872087462
717.27.61312167931678-0.413121679316782
727.57.79271945558172-0.292719455581721
737.38.07209490381254-0.77209490381254
7477.78131222652405-0.78131222652405
7577.44776768982161-0.447767689821611
7677.6701273255005-0.670127325500499
777.28.07778835197316-0.877788351973161
787.37.61595823702888-0.315958237028879
797.17.59600066936206-0.49600066936206
806.87.56178914855726-0.761789148557259
816.67.35653019009666-0.756530190096665
826.27.60739773205152-1.40739773205152
836.27.4163927267289-1.21639272672891
846.87.3821812059241-0.582181205924105
856.98.04641338888046-1.14641338888046


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.05266760058625740.1053352011725150.947332399413743
70.08057592814500530.1611518562900110.919424071854995
80.1315637292656210.2631274585312410.86843627073438
90.155245867971610.310491735943220.84475413202839
100.1943579984564930.3887159969129850.805642001543507
110.2211551221797420.4423102443594840.778844877820258
120.1854419361566840.3708838723133680.814558063843316
130.171975896247370.343951792494740.82802410375263
140.1485538314271250.297107662854250.851446168572875
150.1262360456408450.2524720912816900.873763954359155
160.1094540618778750.2189081237557510.890545938122125
170.09353122492799090.1870624498559820.90646877507201
180.07271645063050420.1454329012610080.927283549369496
190.05047398402101230.1009479680420250.949526015978988
200.03809381164549950.07618762329099890.9619061883545
210.03505088904295560.07010177808591110.964949110957044
220.06521663953858980.1304332790771800.93478336046141
230.1092977718361620.2185955436723240.890702228163838
240.09056059327605720.1811211865521140.909439406723943
250.08336369105943080.1667273821188620.91663630894057
260.06457006732296560.1291401346459310.935429932677034
270.04803493897459180.09606987794918360.951965061025408
280.03736660660049790.07473321320099590.962633393399502
290.02768998089594950.05537996179189890.97231001910405
300.02330461197068370.04660922394136750.976695388029316
310.01611459521401030.03222919042802070.98388540478599
320.01435632417044380.02871264834088770.985643675829556
330.1579968416191260.3159936832382520.842003158380874
340.8427452887200520.3145094225598950.157254711279948
350.9871780365564610.0256439268870780.012821963443539
360.9854274336480280.02914513270394310.0145725663519716
370.985083618602980.02983276279403770.0149163813970189
380.9903941181606230.01921176367875370.00960588183937687
390.9859445470821870.02811090583562580.0140554529178129
400.992405263944370.01518947211126090.00759473605563045
410.9956820625777050.008635874844589880.00431793742229494
420.9962626315463460.007474736907307120.00373736845365356
430.99556062573840.00887874852320020.0044393742616001
440.9933683578406220.01326328431875500.00663164215937752
450.997152391876490.005695216247020450.00284760812351023
460.9996264778648120.0007470442703753270.000373522135187664
470.9999899200801112.01598397771809e-051.00799198885904e-05
480.9999918681010671.62637978663400e-058.13189893317001e-06
490.9999915784477621.68431044753529e-058.42155223767643e-06
500.999982119786953.57604261019022e-051.78802130509511e-05
510.9999816133147143.6773370572538e-051.8386685286269e-05
520.9999819346091213.61307817575095e-051.80653908787547e-05
530.9999758630891784.82738216448364e-052.41369108224182e-05
540.9999487474239420.0001025051521153445.12525760576718e-05
550.9998985996675450.0002028006649106200.000101400332455310
560.999854346703090.0002913065938209940.000145653296910497
570.999746331713350.0005073365732997580.000253668286649879
580.9995693978299790.0008612043400421390.000430602170021069
590.9994240208531660.001151958293668820.000575979146834409
600.9992343305558580.001531338888284720.00076566944414236
610.9993573812604420.001285237479115900.000642618739557948
620.9989513312475580.002097337504884010.00104866875244200
630.9986191452357970.002761709528406830.00138085476420341
640.9979544881347980.004091023730404870.00204551186520243
650.9977773252908940.004445349418212690.00222267470910634
660.996285285280710.007429429438581850.00371471471929092
670.994098575865810.01180284826837950.00590142413418974
680.993407741437840.01318451712432130.00659225856216063
690.9938490367593770.01230192648124570.00615096324062284
700.9929972148281080.01400557034378410.00700278517189203
710.9901246457965920.01975070840681510.00987535420340756
720.9859781332145810.02804373357083720.0140218667854186
730.9789748131277320.04205037374453670.0210251868722684
740.9743390315033340.05132193699333160.0256609684966658
750.9542069237204570.09158615255908640.0457930762795432
760.9253106131763670.1493787736472660.074689386823633
770.8878210723346520.2243578553306970.112178927665348
780.8280606573478970.3438786853042060.171939342652103
790.7683855911425180.4632288177149640.231614408857482


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level250.337837837837838NOK
5% type I error level420.567567567567568NOK
10% type I error level490.662162162162162NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/10mul51228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/10mul51228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/1s4kp1228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/1s4kp1228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/29yma1228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/29yma1228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/3dz9x1228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/3dz9x1228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/4wcj01228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/4wcj01228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/55tu91228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/55tu91228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/6gb8a1228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/6gb8a1228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/7zt441228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/7zt441228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/8fnww1228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/8fnww1228903023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/9mtz71228903023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t1228903223dnk5tliropuz0nb/9mtz71228903023.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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