Home » date » 2008 » Nov » 27 »

The SeatBelt Law Q3

*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: Thu, 27 Nov 2008 08:35:16 -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/Nov/27/t12278002063s2ghssv2jjev6f.htm/, Retrieved Thu, 27 Nov 2008 15:37:04 +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/Nov/27/t12278002063s2ghssv2jjev6f.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:
k_vanderheggen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,5 0 5,3 0 5,2 0 5,3 0 5,3 0 5 0 4,8 0 4,9 0 5,3 0 6 0 6,2 0 6,4 0 6,4 0 6,4 0 6,2 0 6,1 0 6 0 5,9 0 6,2 0 6,2 0 6,4 0 6,8 0 6,9 0 7 0 7 1 6,9 1 6,7 1 6,6 1 6,5 1 6,4 1 6,5 1 6,5 1 6,6 1 6,7 1 6,8 1 7,2 1 7,6 1 7,6 1 7,3 1 6,4 1 6,1 1 6,3 1 7,1 1 7,5 1 7,4 1 7,1 1 6,8 1 6,9 1 7,2 1 7,4 1 7,3 1 6,9 1 6,9 1 6,8 1 7,1 1 7,2 1 7,1 1 7 1 6,9 1 7 1 7,4 1 7,5 1 7,5 1 7,4 1 7,3 1 7 1 6,7 1 6,5 1 6,5 1 6,5 1 6,6 1 6,8 1 6,9 1 6,9 1 6,8 1 6,8 1 6,5 1 6,1 1 6 1 5,9 1 5,8 1 5,9 1 5,9 1 6,2 1 6,3 1 6,2 1 6 1 5,8 1 5,5 1 5,5 1 5,7 1 5,8 1
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
VAR1[t] = + 6.36969461697723 + 1.27868357487923D1[t] -0.0956863210259885M1[t] -0.0978253680699337M2[t] -0.237464415113870M3[t] -0.439603462157809M4[t] -0.579242509201749M5[t] -0.706381556245686M6[t] -0.558520603289625M7[t] -0.498159650333563M8[t] -0.373940001725327M9[t] -0.235007620197837M10[t] -0.210360952956061M11[t] -0.0103609529560616t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.369694616977230.22514128.29200
D11.278683574879230.1951036.553900
M1-0.09568632102598850.275426-0.34740.7292170.364609
M2-0.09782536806993370.275192-0.35550.723190.361595
M3-0.2374644151138700.274997-0.86350.3905010.195251
M4-0.4396034621578090.274839-1.59950.1137540.056877
M5-0.5792425092017490.27472-2.10850.0381990.0191
M6-0.7063815562456860.274638-2.5720.0120090.006005
M7-0.5585206032896250.274595-2.0340.0453530.022677
M8-0.4981596503335630.274589-1.81420.0734920.036746
M9-0.3739400017253270.28372-1.3180.1913640.095682
M10-0.2350076201978370.283627-0.82860.4098710.204936
M11-0.2103609529560610.283572-0.74180.4604210.230211
t-0.01036095295606160.003233-3.20480.0019590.00098


Multiple Linear Regression - Regression Statistics
Multiple R0.678282044564129
R-squared0.460066531978095
Adjusted R-squared0.370077620641111
F-TEST (value)5.11248025054188
F-TEST (DF numerator)13
F-TEST (DF denominator)78
p-value1.82579393293025e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.530480415439539
Sum Squared Residuals21.9499387508626


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
15.56.26364734299513-0.763647342995134
25.36.25114734299518-0.951147342995182
35.26.10114734299517-0.901147342995172
45.35.88864734299517-0.588647342995171
55.35.73864734299517-0.438647342995173
655.60114734299517-0.60114734299517
74.85.73864734299517-0.938647342995168
84.95.78864734299517-0.888647342995171
95.35.90250603864734-0.602506038647343
1066.03107746721877-0.0310774672187722
116.26.045363181504490.154636818495514
126.46.245363181504490.154636818495514
136.46.139315907522430.260684092477565
146.46.126815907522430.273184092477571
156.25.976815907522430.22318409247757
166.15.764315907522430.335684092477570
1765.614315907522430.38568409247757
185.95.476815907522430.42318409247757
196.25.614315907522430.58568409247757
206.25.664315907522430.53568409247757
216.45.77817460317460.621825396825397
226.85.906746031746030.893253968253967
236.95.921031746031750.978968253968253
2476.121031746031750.878968253968253
2577.29366804692892-0.293668046928921
266.97.28116804692891-0.381168046928914
276.77.13116804692892-0.431168046928916
286.66.91866804692892-0.318668046928916
296.56.76866804692892-0.268668046928916
306.46.63116804692892-0.231168046928916
316.56.76866804692892-0.268668046928916
326.56.81866804692892-0.318668046928916
336.66.93252674258109-0.332526742581090
346.77.06109817115252-0.361098171152518
356.87.07538388543823-0.275383885438233
367.27.27538388543823-0.0753838854382321
377.67.169336611456180.430663388543819
387.67.156836611456170.443163388543825
397.37.006836611456180.293163388543823
406.46.79433661145618-0.394336611456176
416.16.64433661145618-0.544336611456176
426.36.50683661145618-0.206836611456176
437.16.644336611456180.455663388543824
447.56.694336611456180.805663388543824
457.46.808195307108350.59180469289165
467.16.936766735679780.163233264320221
476.86.95105244996549-0.151052449965493
486.97.15105244996549-0.251052449965492
497.27.045005175983440.154994824016559
507.47.032505175983430.367494824016565
517.36.882505175983440.417494824016563
526.96.670005175983440.229994824016564
536.96.520005175983440.379994824016564
546.86.382505175983440.417494824016563
557.16.520005175983440.579994824016563
567.26.570005175983440.629994824016564
577.16.683863871635610.416136128364389
5876.812435300207040.187564699792961
596.96.826721014492750.073278985507247
6077.02672101449275-0.0267210144927528
617.46.92067374051070.479326259489299
627.56.90817374051070.591826259489305
637.56.75817374051070.741826259489303
647.46.54567374051070.854326259489304
657.36.39567374051070.904326259489303
6676.25817374051070.741826259489303
676.76.39567374051070.304326259489303
686.56.44567374051070.0543262594893032
696.56.55953243616287-0.0595324361628709
706.56.6881038647343-0.188103864734299
716.66.70238957902001-0.102389579020014
726.86.90238957902001-0.102389579020013
736.96.796342305037960.103657694962038
746.96.783842305037960.116157694962045
756.86.633842305037960.166157694962043
766.86.421342305037960.378657694962043
776.56.271342305037960.228657694962043
786.16.13384230503796-0.0338423050379574
7966.27134230503796-0.271342305037957
805.96.32134230503796-0.421342305037957
815.86.43520100069013-0.635201000690131
825.96.56377242926156-0.66377242926156
835.96.57805814354727-0.678058143547273
846.26.77805814354727-0.578058143547273
856.36.67201086956522-0.372010869565222
866.26.65951086956522-0.459510869565216
8766.50951086956522-0.509510869565218
885.86.29701086956522-0.497010869565218
895.56.14701086956522-0.647010869565217
905.56.00951086956522-0.509510869565218
915.76.14701086956522-0.447010869565217
925.86.19701086956522-0.397010869565218


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.03233280619972570.06466561239945140.967667193800274
180.007718303407224630.01543660681444930.992281696592775
190.02373104830839440.04746209661678880.976268951691606
200.01688853045055320.03377706090110650.983111469549447
210.00667401130889660.01334802261779320.993325988691103
220.003266418678666450.006532837357332910.996733581321334
230.002107062966421950.00421412593284390.997892937033578
240.001811058910824840.003622117821649690.998188941089175
250.0007464897681507850.001492979536301570.99925351023185
260.000331474330588080.000662948661176160.999668525669412
270.0001629839873889270.0003259679747778530.999837016012611
288.2153257824214e-050.0001643065156484280.999917846742176
294.26651774795559e-058.53303549591119e-050.99995733482252
301.82894447367149e-053.65788894734298e-050.999981710555263
318.94583100390837e-061.78916620078167e-050.999991054168996
325.18584796590606e-061.03716959318121e-050.999994814152034
335.27277789277074e-061.05455557855415e-050.999994727222107
340.0001443095235921330.0002886190471842670.999855690476408
350.0008800971524366730.001760194304873350.999119902847563
360.0007723758276159710.001544751655231940.999227624172384
370.000442853372792020.000885706745584040.999557146627208
380.0002185351197743710.0004370702395487410.999781464880226
390.0001416928715585420.0002833857431170840.999858307128441
400.01801337695188170.03602675390376340.981986623048118
410.3841345653272930.7682691306545870.615865434672707
420.7036874875245420.5926250249509160.296312512475458
430.6687384832428280.6625230335143430.331261516757171
440.6577949780766530.6844100438466940.342205021923347
450.595030928926760.809938142146480.40496907107324
460.6243488630472080.7513022739055850.375651136952792
470.8093510522055170.3812978955889660.190648947794483
480.9389632511022240.1220734977955510.0610367488977756
490.9731032497915790.05379350041684150.0268967502084207
500.9764925531601320.04701489367973570.0235074468398678
510.9794483607434420.04110327851311670.0205516392565584
520.9963096132763680.007380773447263960.00369038672363198
530.9990544765977790.001891046804442420.00094552340222121
540.9997616783945530.0004766432108931960.000238321605446598
550.9996756945225960.000648610954807190.000324305477403595
560.9993787958699290.001242408260143000.000621204130071502
570.9989314654095690.002137069180862830.00106853459043141
580.9987263286568580.002547342686284750.00127367134314237
590.9990257579148740.001948484170252390.000974242085126197
600.9997211836758450.0005576326483104230.000278816324155212
610.999566999710190.0008660005796204180.000433000289810209
620.9990679068773350.001864186245328970.000932093122664486
630.998079121899910.003841756200179580.00192087810008979
640.9962454788361950.007509042327609250.00375452116380463
650.9963488101976330.007302379604734690.00365118980236735
660.9956089921740390.008782015651922350.00439100782596117
670.9921837209456530.01563255810869420.00781627905434711
680.9929350118026560.01412997639468750.00706498819734377
690.9885054163339530.02298916733209500.0114945836660475
700.981292352153650.03741529569269870.0187076478463493
710.9663813989550380.06723720208992310.0336186010449615
720.9375291571664060.1249416856671880.0624708428335938
730.8829171542707220.2341656914585550.117082845729278
740.7898948728660960.4202102542678080.210105127133904
750.658162471937590.6836750561248210.341837528062411


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level330.559322033898305NOK
5% type I error level440.745762711864407NOK
10% type I error level470.796610169491525NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/10d1ax1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/10d1ax1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/11d3l1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/11d3l1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/2nqpq1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/2nqpq1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/3rcku1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/3rcku1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/4c8ui1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/4c8ui1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/5udwk1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/5udwk1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/6dw1e1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/6dw1e1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/76ij41227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/76ij41227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/84cgn1227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/84cgn1227800111.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/9omp21227800111.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278002063s2ghssv2jjev6f/9omp21227800111.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