Home » date » 2010 » Dec » 05 »

vertraging met 2 lags

*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, 05 Dec 2010 10:34:04 +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/05/t1291545173v4igqmxxbjjuibc.htm/, Retrieved Sun, 05 Dec 2010 11:33:03 +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/05/t1291545173v4igqmxxbjjuibc.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 «
9939 2462 9321 9769 9336 3695 9939 9321 10195 4831 9336 9939 9464 5134 10195 9336 10010 6250 9464 10195 10213 5760 10010 9464 9563 6249 10213 10010 9890 2917 9563 10213 9305 1741 9890 9563 9391 2359 9305 9890 9928 1511 9391 9305 8686 2059 9928 9391 9843 2635 8686 9928 9627 2867 9843 8686 10074 4403 9627 9843 9503 5720 10074 9627 10119 4502 9503 10074 10000 5749 10119 9503 9313 5627 10000 10119 9866 2846 9313 10000 9172 1762 9866 9313 9241 2429 9172 9866 9659 1169 9241 9172 8904 2154 9659 9241 9755 2249 8904 9659 9080 2687 9755 8904 9435 4359 9080 9755 8971 5382 9435 9080 10063 4459 8971 9435 9793 6398 10063 8971 9454 4596 9793 10063 9759 3024 9454 9793 8820 1887 9759 9454 9403 2070 8820 9759 9676 1351 9403 8820 8642 2218 9676 9403 9402 2461 8642 9676 9610 3028 9402 8642 9294 4784 9610 9402 9448 4975 9294 9610 10319 4607 9448 9294 9548 6249 10319 9448 9801 4809 9548 10319 9596 3157 9801 9548 8923 1910 9596 9801 9746 2228 8923 9596 9829 1594 9746 8923 9125 2467 982 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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
geboortes[t] = + 3636.49072146087 -0.112892682481442huwelijken[t] + 0.263683500627484`geboortes-1`[t] + 0.288035361724047`geboortes-2`[t] + 1160.87808712201M1[t] + 804.780496030499M2[t] + 1154.06440433495M3[t] + 1093.94205740715M4[t] + 1625.10788116370M5[t] + 1529.28339577008M6[t] + 984.223018622453M7[t] + 980.829801148078M8[t] + 147.756081412069M9[t] + 717.424338136781M10[t] + 1000.90518467358M11[t] + 5.07968162684443t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)3636.490721460871159.9356493.13510.0024220.001211
huwelijken-0.1128926824814420.086241-1.3090.1943660.097183
`geboortes-1`0.2636835006274840.1135012.32320.0227770.011388
`geboortes-2`0.2880353617240470.1033062.78820.0066560.003328
M11160.87808712201179.0148036.484800
M2804.780496030499173.4080914.6411.4e-057e-06
M31154.06440433495273.3831484.22146.5e-053.3e-05
M41093.94205740715308.8092873.54250.0006730.000336
M51625.10788116370324.6399345.00593e-062e-06
M61529.28339577008331.6429734.61121.5e-058e-06
M7984.223018622453310.6834423.16790.0021920.001096
M8980.829801148078169.0870855.800700
M9147.756081412069141.1533511.04680.2984350.149218
M10717.424338136781167.2579714.28935.1e-052.5e-05
M111000.90518467358153.9081616.503300
t5.079681626844431.5190143.34410.0012710.000635


Multiple Linear Regression - Regression Statistics
Multiple R0.884336823751576
R-squared0.782051617843026
Adjusted R-squared0.740138467428223
F-TEST (value)18.6588602885557
F-TEST (DF numerator)15
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation262.90500426931
Sum Squared Residuals5391285.21904798


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
199399796.11806397139142.881936028613
293369339.82003834253-3.82003834253265
3101959584.942243642610.057756358005
494649548.51189946857-84.5118994685719
51001010013.4389079649-3.43890796494174
6102139911.4288605364301.571139463592
795639527.038701410935.9612985890944
898909791.9604866136698.039513386343
993058995.72976268722309.270237312777
1093919440.64273868194-49.6427386819357
1199289679.11235603523248.887643964766
1286868787.7907439339-101.790743933897
1398439715.90240903993127.097590960076
1496279286.03528820429340.96471179571
15100749743.29699522328330.703004776724
1695039595.22555374235-92.2255537423501
171011910247.1628742205-128.162874220498
181000010013.6017402415-13.6017402414695
1993139633.44539823076-320.445398230761
2098669733.65963938788132.340360612121
2191728975.97795143118196.022048568825
2292419451.71367616553-210.713676165533
2396599700.8166047626-41.8166047625995
2489048723.8859526929180.114047307106
2597559800.43665483292-45.4366548329166
2690809406.8997113737-326.899711373707
2794359639.63846609964-204.638466099642
2889719368.2903601792-397.290360179194
29100639988.6392206138574.3607793861546
3097939833.28948036081-40.289480360814
3194549740.08146850483-286.081468504825
3297599752.076975139916.92302486008712
3388209035.22139707908-215.221397079078
3494039429.56195277316-26.5619527731566
3596769682.5545958479-6.5545958478981
3686428828.76134864618-186.761348646177
3794029773.2711096539-371.271109653892
3896109260.81394567647349.186054323534
3992949690.69102821114-396.691028211141
4094489590.67322959654-142.673229596544
411031910118.0513269249200.948673075056
42954810115.9625132757-567.962513275689
4398019786.1261016060314.8738983939659
4495969818.94793898736-222.947938987360
4589239150.5489048201-227.548904820103
4697469452.89072506683293.109274933167
4798299836.18893649984-7.18893649984472
4891259000.74695489778124.253045102215
49978210032.6371814359-250.637181435944
5094419495.726071993-54.7260719930035
5191629827.71450914803-665.71450914803
5299159569.61281577675345.387184223256
531044410132.8328437666311.167156233379
541020910431.2061171296-222.206117129616
55998510035.8189929045-50.8189929044843
56984210110.7978762684-268.797876268362
5794299319.99963940786109.000360592138
58101329711.3538939417420.646106058298
59984910146.2533378513-297.253337851295
6091729218.34824902134-46.3482490213431
611031310115.1339731965197.866026803507
6298199710.91320844425108.086791555751
63995510143.5476826325-188.547682632449
64100489958.2561487215789.7438512784339
651008210452.4165853727-370.416585372677
661054110422.7122701434118.287729856579
671020810042.6818157895165.318184210520
681023310343.4557969425-110.455796942469
6994399547.27191919747-108.271919197470
7099639885.5366666195577.4633333804533
711015810173.7685252058-15.7685252057688
7292259325.5388833213-100.538883321297
731047410245.7649636926228.235036307412
7497579842.11939349422-85.1193934942222
751049010236.5612466379253.438753362084
761028110061.3678626308219.632137369163
771044410751.7142609246-307.71426092463
781064010623.768472360616.2315276394003
791069510135.4561510115559.54384898846
801078610568.3406883947217.659311605283
8198329902.3336761824-70.3336761823956
82974710181.9710950787-434.971095078689
831041110291.3056437974119.694356202640
8495119379.9278674866131.072132513392
851040210430.7356441769-28.7356441768552
86970110028.6723424715-327.672342471529
871054010278.6078284056261.392171594449
881011210050.062129884261.9378701158079
891091510691.7439802118223.256019788158
901118310775.0305459520407.969454048017
911038410502.3513705420-118.351370541969
921083410686.7605982656147.239401734356
9398869878.91674919477.08325080530593
941021610285.3292516726-69.3292516726035


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.2011826338594190.4023652677188370.798817366140581
200.1047739928353360.2095479856706720.895226007164664
210.07067286281174780.1413457256234960.929327137188252
220.03407869819969740.06815739639939480.965921301800303
230.0369507619329120.0739015238658240.963049238067088
240.04639207865869590.09278415731739180.953607921341304
250.02967776033687900.05935552067375800.970322239663121
260.04523780300110350.0904756060022070.954762196998896
270.2511339678924080.5022679357848150.748866032107592
280.2532022653636200.5064045307272390.74679773463638
290.2058274693673730.4116549387347460.794172530632627
300.1615545308744490.3231090617488980.83844546912555
310.1382949374914880.2765898749829760.861705062508512
320.1032647114077280.2065294228154550.896735288592272
330.07557841358631590.1511568271726320.924421586413684
340.09413042773454070.1882608554690810.905869572265459
350.06699254251524180.1339850850304840.933007457484758
360.04819686029581690.09639372059163370.951803139704183
370.03791807845557970.07583615691115940.96208192154442
380.1433210672057050.2866421344114090.856678932794296
390.1540414809197440.3080829618394870.845958519080256
400.1688885975675510.3377771951351010.83111140243245
410.244096986301660.488193972603320.75590301369834
420.2648102883117030.5296205766234060.735189711688297
430.3299392819863940.6598785639727880.670060718013606
440.3335935057472790.6671870114945580.666406494252721
450.3061111486547390.6122222973094790.693888851345261
460.4343530356912730.8687060713825460.565646964308727
470.418365676716480.836731353432960.58163432328352
480.5142013464888360.9715973070223270.485798653511164
490.4604659292884170.9209318585768340.539534070711583
500.4078313113082520.8156626226165040.592168688691748
510.7917325306124010.4165349387751970.208267469387599
520.8432703011892280.3134593976215430.156729698810772
530.8768632734799890.2462734530400220.123136726520011
540.852611893084460.2947762138310810.147388106915541
550.8295434583703460.3409130832593070.170456541629653
560.8865763264561980.2268473470876040.113423673543802
570.8603323459541290.2793353080917420.139667654045871
580.9339982302290.1320035395419990.0660017697709995
590.9092521980903090.1814956038193820.090747801909691
600.8763314460887980.2473371078224040.123668553911202
610.8642368068302970.2715263863394050.135763193169703
620.8983913474830020.2032173050339960.101608652516998
630.8703202157295540.2593595685408930.129679784270446
640.8522413021042370.2955173957915250.147758697895763
650.8794656961025350.241068607794930.120534303897465
660.8361076023744540.3277847952510920.163892397625546
670.7998481304190270.4003037391619470.200151869580973
680.8387270874740070.3225458250519850.161272912525993
690.8481508472290670.3036983055418650.151849152770933
700.7738066747067250.4523866505865490.226193325293275
710.71243413476090.5751317304782010.287565865239101
720.5977337762263740.8045324475472510.402266223773626
730.48749744940680.97499489881360.512502550593199
740.3562878027387620.7125756054775250.643712197261238
750.2772591919422670.5545183838845340.722740808057733


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 level70.122807017543860NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/10mr591291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/10mr591291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/1ri7j1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/1ri7j1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/2ri7j1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/2ri7j1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/3ri7j1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/3ri7j1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/4jr6m1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/4jr6m1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/5jr6m1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/5jr6m1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/6jr6m1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/6jr6m1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/7c05p1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/7c05p1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/8c05p1291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/8c05p1291545234.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/9mr591291545234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545173v4igqmxxbjjuibc/9mr591291545234.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by