Home » date » 2010 » Dec » 12 »

*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, 12 Dec 2010 19:24: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/Dec/12/t1292181747w09ygzm9tk4943g.htm/, Retrieved Sun, 12 Dec 2010 20:22:37 +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/Dec/12/t1292181747w09ygzm9tk4943g.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 «
26105 29462 27071 31514 22397 26105 29462 27071 23843 22397 26105 29462 21705 23843 22397 26105 18089 21705 23843 22397 20764 18089 21705 23843 25316 20764 18089 21705 17704 25316 20764 18089 15548 17704 25316 20764 28029 15548 17704 25316 29383 28029 15548 17704 36438 29383 28029 15548 32034 36438 29383 28029 22679 32034 36438 29383 24319 22679 32034 36438 18004 24319 22679 32034 17537 18004 24319 22679 20366 17537 18004 24319 22782 20366 17537 18004 19169 22782 20366 17537 13807 19169 22782 20366 29743 13807 19169 22782 25591 29743 13807 19169 29096 25591 29743 13807 26482 29096 25591 29743 22405 26482 29096 25591 27044 22405 26482 29096 17970 27044 22405 26482 18730 17970 27044 22405 19684 18730 17970 27044 19785 19684 18730 17970 18479 19785 19684 18730 10698 18479 19785 19684 31956 10698 18479 19785 29506 31956 10698 18479 34506 29506 31956 10698 27165 34506 29506 31956 26736 27165 34506 29506 23691 26736 27165 34506 18157 23691 26736 27165 17328 18157 23691 26736 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
X[t] = + 15528.2166014861 + 0.283174803792777Y_1[t] + 0.298954678015929Y_2[t] -0.0123849708445849Y_3[t] -3780.91761340949M1[t] -8590.0139987651M2[t] -4995.57765924133M3[t] -9992.05694547716M4[t] -10063.8242839980M5[t] -6319.54201284951M6[t] -3551.14205129836M7[t] -9582.68297879728M8[t] -14587.2298411741M9[t] + 5113.37309057484M10[t] -64.3210395853369M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)15528.21660148613489.299754.45022.9e-051.4e-05
Y_10.2831748037927770.1132632.50020.0145690.007284
Y_20.2989546780159290.1144882.61120.0108650.005432
Y_3-0.01238497084458490.114838-0.10780.9144010.4572
M1-3780.917613409492225.513895-1.69890.0934290.046715
M2-8590.01399876511879.994129-4.56921.9e-059e-06
M3-4995.577659241332534.664761-1.97090.0523760.026188
M4-9992.056945477162348.815557-4.25415.9e-053e-05
M5-10063.82428399802108.647425-4.77269e-064e-06
M6-6319.542012849512569.088047-2.45980.0161720.008086
M7-3551.142051298362071.511517-1.71430.0905540.045277
M8-9582.682978797281758.231334-5.45021e-060
M9-14587.22984117411964.628892-7.424900
M105113.373090574842739.9617951.86620.0658680.032934
M11-64.32103958533692471.396257-0.0260.9793050.489652


Multiple Linear Regression - Regression Statistics
Multiple R0.949610283391202
R-squared0.901759690322319
Adjusted R-squared0.883662791171167
F-TEST (value)49.8295140394219
F-TEST (DF numerator)14
F-TEST (DF denominator)76
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1935.56350504491
Sum Squared Residuals284726862.236691


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12610527792.8971747924-1687.89717479238
22239722803.0100337030-406.010033703028
32384324314.2308813743-471.2308813743
42170518660.27476246503044.72523753496
51808918461.2916297380-372.291629737961
62076420524.5400409325239.459959067528
72531622995.89155458942320.10844541058
81770419097.8501522218-1393.85015222184
91554813265.48858069362282.51141930637
102802930023.5472391236-1994.54723912357
112938327829.88594736771553.11405263233
123643832035.58100474624402.41899525382
133203430502.66944501701531.33055498297
142267926538.8272266368-3859.82722663684
152431926080.1909053885-1761.19090538848
161800418805.9406961333-801.940696133347
171753717552.0715458583-15.0715458583007
182036619255.90103977991110.09896022013
192278222764.001777510917.9982224890889
201916918268.1377414668900.86225853318
211380712927.7177325538879.282267446175
222974329999.8920251339-256.892025133856
232559127776.6234843554-2185.62348435545
242909631495.7527011237-2399.75270112368
252648227268.7360565064-786.73605650644
262240522818.6792794291-413.679279429058
272704424433.73509274582610.26490725424
281797019564.4398128214-1594.43981282143
291873018360.4885821342369.511417865829
301968419549.8150761006134.184923899377
311978522927.9505812060-3142.95058120596
321847917200.80049387541278.19950612459
331069811844.8064980391-1146.80649803908
343195628950.34058993233005.65941006766
352950627482.38486108012023.61513891990
363450633304.47363477751201.52636522253
372716529943.7113689787-2778.71136897866
382673624580.94531762922155.05468237085
392369125797.3485207880-2106.34852078796
401815719901.2684711044-1744.26847110439
411732817357.4079263281-29.4079263281101
421820519250.2353332140-1045.23533321402
432099522087.6845982702-1092.68459827017
441738217118.6517668032263.348233196776
45936711914.2162705568-2547.21627055681
463112428230.49582957872893.50417042127
472655126862.4610609018-311.461060901819
483065132235.4461936547-1584.4461936547
492585927978.9657225631-2119.96572256313
502510023095.24632897012004.75367102987
512577824991.3837949000786.616205099955
522041820019.3392053089398.66079469112
531868818641.846383024646.1536169754334
542042420285.4421592136138.557840786435
552477623094.62543090841681.3745690916
561981418835.8725701124978.127429887575
571273813705.7627806549-967.762780654945
583156629865.30829533551700.69170466445
593011127965.28029467592145.71970532411
603001933333.9367261229-3314.93672612293
613193428858.80374318953075.19625681051
622582624582.50340929851243.49659070154
632683527020.9456729742-185.945672974149
642020520460.4573712766-255.457371276559
651778918888.5337556464-1099.53375564637
662052019954.0997500037565.90024999626
672251822855.6879553261-337.687955326084
681557218236.2976010271-2664.29760102714
691150911828.3066428049-319.306642804933
702544728277.0859814977-2830.08598149773
712409025917.6554173090-1827.65541730904
722778629814.8586868751-2028.85868687515
732619526502.2519265843-307.251926584328
742051622364.3673237774-1848.36732377739
752275923829.2422075970-1070.24220759704
761902817789.86487842971238.13512157031
771697117402.4619391741-431.461939174095
782003619421.0742456390614.925754360975
792248522488.6635343574-3.66353435742568
801873018092.3896744931637.610325506859
811453812718.70149469681819.29850530322
822756130079.3300393982-2518.33003939823
832598527382.7089343100-1397.70893431002
843467030945.95105269993724.04894730011
853206628991.96456236853074.03543763146
862718626061.42108055591124.57891944405
872958627387.92292423232198.07707576774
882135921644.4148024607-285.414802460667
892155320020.89823809641532.10176190358
901957321330.8923551167-1757.89235511668
912425623698.4945678316557.50543216837


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.4413963750221660.8827927500443320.558603624977834
190.6003180682179230.7993638635641540.399681931782077
200.5370868168872320.9258263662255350.462913183112768
210.4480980215517980.8961960431035960.551901978448202
220.3320484306786890.6640968613573790.66795156932131
230.3439633239861530.6879266479723060.656036676013847
240.8405880878396140.3188238243207720.159411912160386
250.7796710480165540.4406579039668910.220328951983446
260.7118239837743380.5763520324513240.288176016225662
270.7021037134068190.5957925731863620.297896286593181
280.7626907958924420.4746184082151160.237309204107558
290.7024697026243310.5950605947513380.297530297375669
300.6252949905629580.7494100188740840.374705009437042
310.7611307451911440.4777385096177120.238869254808856
320.7222377716393350.5555244567213290.277762228360665
330.7433744073445380.5132511853109240.256625592655462
340.7753995736215340.4492008527569310.224600426378466
350.7706303550201250.458739289959750.229369644979875
360.7315575343833130.5368849312333740.268442465616687
370.765293545286910.4694129094261790.234706454713090
380.822794190220980.3544116195580420.177205809779021
390.8215280887406790.3569438225186420.178471911259321
400.8062815625571620.3874368748856760.193718437442838
410.7548370224256620.4903259551486750.245162977574338
420.7190787668511620.5618424662976760.280921233148838
430.6748340097473820.6503319805052360.325165990252618
440.610853549550470.7782929008990590.389146450449529
450.6654629080281170.6690741839437660.334537091971883
460.7526800566242890.4946398867514210.247319943375711
470.6965991061939740.6068017876120510.303400893806025
480.6880487641841260.6239024716317480.311951235815874
490.7964046893748230.4071906212503550.203595310625177
500.7896681535825540.4206636928348910.210331846417445
510.7363061667862210.5273876664275570.263693833213779
520.6943882002764870.6112235994470260.305611799723513
530.6268382889250030.7463234221499930.373161711074997
540.5565617973527740.8868764052944530.443438202647226
550.534961449556040.930077100887920.46503855044396
560.4825848746169210.9651697492338430.517415125383079
570.4300286260460650.860057252092130.569971373953935
580.5206752328880650.958649534223870.479324767111935
590.5368038264274830.9263923471450330.463196173572517
600.7499181661831220.5001636676337560.250081833816878
610.767437513942010.4651249721159790.232562486057989
620.7325662751797820.5348674496404360.267433724820218
630.7089307135881550.5821385728236890.291069286411845
640.630494594851460.7390108102970810.369505405148540
650.5653642877655490.8692714244689020.434635712234451
660.508187984022150.98362403195570.49181201597785
670.4092118898945790.8184237797891580.590788110105421
680.4551295003346030.9102590006692050.544870499665397
690.3667684695030800.7335369390061590.633231530496920
700.3188321638800750.637664327760150.681167836119925
710.2324797205608090.4649594411216190.76752027943919
720.545449784047010.909100431905980.45455021595299
730.5034922500116080.9930154999767830.496507749988392


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/10ad7f1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/10ad7f1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/1e29o1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/1e29o1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/2e29o1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/2e29o1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/3e29o1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/3e29o1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/47c8r1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/47c8r1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/57c8r1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/57c8r1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/67c8r1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/67c8r1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/7z37u1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/7z37u1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/8ad7f1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/8ad7f1292181853.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/9ad7f1292181853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292181747w09ygzm9tk4943g/9ad7f1292181853.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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