Home » date » 2010 » Nov » 26 »

Regressie Sterftes2

*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: Fri, 26 Nov 2010 18:38:01 +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/26/t12907966107bp9ijdg4nizb5x.htm/, Retrieved Fri, 26 Nov 2010 19:36:53 +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/26/t12907966107bp9ijdg4nizb5x.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 «
12008 1 9169 1 8788 1 8417 1 8247 1 8197 1 8236 1 8253 1 7733 1 8366 1 8626 1 8863 1 10102 1 8463 1 9114 1 8563 1 8872 1 8301 1 8301 1 8278 1 7736 1 7973 1 8268 1 9476 1 11100 1 8962 1 9173 1 8738 1 8459 1 8078 1 8411 1 8291 1 7810 1 8616 1 8312 1 9692 1 9911 1 8915 1 9452 1 9112 1 8472 1 8230 1 8384 1 8625 1 8221 1 8649 1 8625 1 10443 1 10357 0 8586 0 8892 0 8329 0 8101 0 7922 0 8120 0 7838 0 7735 0 8406 0 8209 0 9451 0 10041 0 9411 0 10405 0 8467 0 8464 0 8102 0 7627 0 7513 0 7510 0 8291 0 8064 0 9383 0 9706 0 8579 0 9474 0 8318 0 8213 0 8059 0 9111 0 7708 0 7680 0 8014 0 8007 0 8718 0 9486 0 9113 0 9025 0 8476 0 7952 0 7759 0 7835 0 7600 0 7651 0 8319 0 8812 0 8630 0
 
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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Sterftes[t] = + 9190.72916666667 + 282.541666666667Dummy1[t] + 1006.875M1[t] -432.25M2[t] -41.6249999999997M3[t] -779.5M4[t] -984.5M5[t] -1251M6[t] -1078.875M7[t] -1318.75M8[t] -1572.5M9[t] -1002.75M10[t] -966.625M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9190.72916666667145.96064162.967200
Dummy1282.54166666666780.9643963.48970.0007770.000388
M11006.875198.3214575.0772e-061e-06
M2-432.25198.321457-2.17950.0321250.016062
M3-41.6249999999997198.321457-0.20990.8342710.417135
M4-779.5198.321457-3.93050.0001758.7e-05
M5-984.5198.321457-4.96424e-062e-06
M6-1251198.321457-6.307900
M7-1078.875198.321457-5.441e-060
M8-1318.75198.321457-6.649600
M9-1572.5198.321457-7.92900
M10-1002.75198.321457-5.05623e-061e-06
M11-966.625198.321457-4.8745e-063e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.88647432177585
R-squared0.785836723167954
Adjusted R-squared0.754873357842838
F-TEST (value)25.3795643631328
F-TEST (DF numerator)12
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation396.642914858732
Sum Squared Residuals13058024.9583334


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11200810480.14583333331527.85416666668
291699041.02083333333127.979166666667
387889431.64583333333-643.645833333333
484178693.77083333333-276.770833333333
582478488.77083333333-241.770833333333
681978222.27083333333-25.2708333333336
782368394.39583333333-158.395833333334
882538154.5208333333398.4791666666663
977337900.77083333333-167.770833333334
1083668470.52083333333-104.520833333334
1186268506.64583333333119.354166666666
1288639473.27083333333-610.270833333333
131010210480.1458333333-378.145833333337
1484639041.02083333333-578.020833333333
1591149431.64583333333-317.645833333333
1685638693.77083333333-130.770833333333
1788728488.77083333333383.229166666666
1883018222.2708333333378.7291666666664
1983018394.39583333333-93.3958333333336
2082788154.52083333333123.479166666666
2177367900.77083333333-164.770833333334
2279738470.52083333333-497.520833333334
2382688506.64583333333-238.645833333334
2494769473.270833333332.72916666666678
251110010480.1458333333619.854166666664
2689629041.02083333333-79.0208333333336
2791739431.64583333333-258.645833333334
2887388693.7708333333344.2291666666666
2984598488.77083333333-29.7708333333337
3080788222.27083333333-144.270833333334
3184118394.3958333333316.6041666666664
3282918154.52083333333136.479166666666
3378107900.77083333333-90.770833333334
3486168470.52083333333145.479166666666
3583128506.64583333333-194.645833333334
3696929473.27083333333218.729166666667
37991110480.1458333333-569.145833333336
3889159041.02083333333-126.020833333334
3994529431.6458333333320.3541666666664
4091128693.77083333333418.229166666666
4184728488.77083333333-16.7708333333337
4282308222.270833333337.72916666666644
4383848394.39583333333-10.3958333333336
4486258154.52083333333470.479166666666
4582217900.77083333333320.229166666666
4686498470.52083333333178.479166666666
4786258506.64583333333118.354166666666
48104439473.27083333333969.729166666667
491035710197.6041666667159.395833333331
5085868758.47916666667-172.479166666667
5188929149.10416666667-257.104166666667
5283298411.22916666667-82.2291666666665
5381018206.22916666667-105.229166666666
5479227939.72916666667-17.7291666666664
5581208111.854166666678.14583333333378
5678387871.97916666667-33.9791666666663
5777357618.22916666667116.770833333334
5884068187.97916666667218.020833333334
5982098224.10416666667-15.1041666666663
6094519190.72916666667260.270833333334
611004110197.6041666667-156.604166666669
6294118758.47916666667652.520833333333
63104059149.104166666671255.89583333333
6484678411.2291666666755.7708333333334
6584648206.22916666667257.770833333334
6681027939.72916666667162.270833333334
6776278111.85416666667-484.854166666666
6875137871.97916666667-358.979166666666
6975107618.22916666667-108.229166666666
7082918187.97916666667103.020833333334
7180648224.10416666667-160.104166666666
7293839190.72916666667192.270833333334
73970610197.6041666667-491.604166666669
7485798758.47916666667-179.479166666667
7594749149.10416666667324.895833333333
7683188411.22916666667-93.2291666666666
7782138206.229166666676.77083333333367
7880597939.72916666667119.270833333334
7991118111.85416666667999.145833333334
8077087871.97916666667-163.979166666666
8176807618.2291666666761.7708333333338
8280148187.97916666667-173.979166666666
8380078224.10416666667-217.104166666666
8487189190.72916666667-472.729166666666
85948610197.6041666667-711.604166666669
8691138758.47916666667354.520833333333
8790259149.10416666667-124.104166666667
8884768411.2291666666764.7708333333334
8979528206.22916666667-254.229166666667
9077597939.72916666667-180.729166666666
9178358111.85416666667-276.854166666666
9276007871.97916666667-271.979166666666
9376517618.2291666666732.7708333333338
9483198187.97916666667131.020833333334
9588128224.10416666667587.895833333334
9686309190.72916666667-560.729166666666


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9982149618669220.003570076266156580.00178503813307829
170.9974063921867520.005187215626496350.00259360781324817
180.993844962743480.01231007451304030.00615503725652017
190.987183525387780.0256329492244410.0128164746122205
200.9756026645692330.04879467086153460.0243973354307673
210.9582542340606270.08349153187874620.0417457659393731
220.9514979056691080.09700418866178320.0485020943308916
230.9345648871216570.1308702257566860.065435112878343
240.9285528465111990.1428943069776020.071447153488801
250.9300073445631520.1399853108736960.0699926554368482
260.9016470126301780.1967059747396450.0983529873698225
270.8865496087328050.2269007825343890.113450391267195
280.8520873520653330.2958252958693340.147912647934667
290.8030998604750670.3938002790498670.196900139524933
300.755527905091110.4889441898177790.244472094908889
310.6964069292883560.6071861414232870.303593070711644
320.6279047308127560.7441905383744890.372095269187244
330.564735956283440.8705280874331210.435264043716561
340.5398605299182450.920278940163510.460139470081755
350.4885107484311670.9770214968623340.511489251568833
360.4806731963593520.9613463927187030.519326803640648
370.7318160482883990.5363679034232010.268183951711601
380.7023882184870810.5952235630258380.297611781512919
390.7115048387568370.5769903224863250.288495161243163
400.703619657503280.5927606849934420.296380342496721
410.6530005444436620.6939989111126760.346999455556338
420.606062870763470.787874258473060.39393712923653
430.5759736153380950.848052769323810.424026384661905
440.5417429177187960.9165141645624080.458257082281204
450.5154938051252110.9690123897495790.484506194874789
460.4934819975842340.9869639951684690.506518002415766
470.531961939078590.936076121842820.46803806092141
480.6593793787568960.6812412424862070.340620621243104
490.6586598648827970.6826802702344060.341340135117203
500.6313927857570940.7372144284858120.368607214242906
510.6711698456834460.6576603086331080.328830154316554
520.6088149995123820.7823700009752370.391185000487618
530.5444102595266410.9111794809467180.455589740473359
540.4765460612859680.9530921225719360.523453938714032
550.4110363364402530.8220726728805070.588963663559747
560.3604858721994690.7209717443989380.639514127800531
570.3049270295917290.6098540591834570.695072970408271
580.2647682561242370.5295365122484730.735231743875763
590.2112962642208830.4225925284417650.788703735779117
600.2066068144623090.4132136289246180.793393185537691
610.2030408391074820.4060816782149640.796959160892518
620.2715743861913070.5431487723826140.728425613808693
630.7362472452124970.5275055095750060.263752754787503
640.670153224817060.6596935503658810.32984677518294
650.6347096888114340.7305806223771320.365290311188566
660.567410230129110.865179539741780.43258976987089
670.7066332031841260.5867335936317490.293366796815874
680.6637318867600180.6725362264799640.336268113239982
690.5912256677090530.8175486645818940.408774332290947
700.5088784759638990.9822430480722030.491121524036101
710.4577732063819420.9155464127638830.542226793618058
720.5314354944560060.9371290110879890.468564505543994
730.4862582736299860.9725165472599730.513741726370014
740.4642387738226140.9284775476452280.535761226177386
750.4231122861750110.8462245723500220.576887713824989
760.3250657283726090.6501314567452190.67493427162739
770.2423851308548670.4847702617097340.757614869145133
780.1720665271172030.3441330542344060.827933472882797
790.6731696255871780.6536607488256450.326830374412822
800.5107009495681350.978598100863730.489299050431865


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0307692307692308NOK
5% type I error level50.0769230769230769NOK
10% type I error level70.107692307692308NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/1097ua1290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/1097ua1290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/1k6fy1290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/1k6fy1290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/2k6fy1290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/2k6fy1290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/3vye11290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/3vye11290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/4vye11290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/4vye11290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/5vye11290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/5vye11290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/65pv41290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/65pv41290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/7yyvp1290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/7yyvp1290796671.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/8yyvp1290796671.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t12907966107bp9ijdg4nizb5x/8yyvp1290796671.ps (open in new window)


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