Home » date » 2008 » Nov » 27 »

Seatbelt Q3: eigen tijdreeks

*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 07:44:31 -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/t1227797122fxta2ovv8ffo22o.htm/, Retrieved Thu, 27 Nov 2008 14:45:36 +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/t1227797122fxta2ovv8ffo22o.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101,02 0 100,67 0 100,47 0 100,38 0 100,33 0 100,34 0 100,37 0 100,39 0 100,21 0 100,21 0 100,22 0 100,28 0 100,25 0 100,25 0 100,21 0 100,16 0 100,18 0 100,1 1 99,96 1 99,88 1 99,88 1 99,86 1 99,84 1 99,8 1 99,82 1 99,81 1 99,92 1 100,03 1 99,99 1 100,02 1 100,01 1 100,13 1 100,33 1 100,13 1 99,96 1 100,05 1 99,83 1 99,8 1 100,01 1 100,1 1 100,13 1 100,16 1 100,41 1 101,34 1 101,65 1 101,85 1 102,07 1 102,12 1 102,14 1 102,21 1 102,28 1 102,19 1 102,33 1 102,54 1 102,44 1 102,78 1 102,9 1 103,08 1 102,77 1 102,65 1 102,71 1 103,29 1 102,86 1 103,45 1 103,72 1 103,65 1 103,83 1 104,45 1 105,14 1 105,07 1 105,31 1 105,19 1 105,3 1 105,02 1 105,17 1 105,28 1 105,45 1 105,38 1 105,8 1 105,96 1 105,08 1 105,11 1 105,61 1 105,5 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
Suiker[t] = + 100.349411764706 + 1.92864793678665Cotonou[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)100.3494117647060.467365214.713200
Cotonou1.928647936786650.5233093.68550.0004080.000204


Multiple Linear Regression - Regression Statistics
Multiple R0.376968236042663
R-squared0.142105050985117
Adjusted R-squared0.131642917460545
F-TEST (value)13.5827984465466
F-TEST (DF numerator)1
F-TEST (DF denominator)82
p-value0.000408476657244750
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.92699482285318
Sum Squared Residuals304.491341878841


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1101.02100.3494117647060.670588235294208
2100.67100.3494117647060.320588235294116
3100.47100.3494117647060.120588235294112
4100.38100.3494117647060.0305882352941085
5100.33100.349411764706-0.0194117647058887
6100.34100.349411764706-0.00941176470588355
7100.37100.3494117647060.0205882352941176
8100.39100.3494117647060.0405882352941136
9100.21100.349411764706-0.139411764705893
10100.21100.349411764706-0.139411764705893
11100.22100.349411764706-0.129411764705888
12100.28100.349411764706-0.0694117647058858
13100.25100.349411764706-0.099411764705887
14100.25100.349411764706-0.099411764705887
15100.21100.349411764706-0.139411764705893
16100.16100.349411764706-0.189411764705890
17100.18100.349411764706-0.16941176470588
18100.1102.278059701493-2.17805970149254
1999.96102.278059701493-2.31805970149254
2099.88102.278059701493-2.39805970149254
2199.88102.278059701493-2.39805970149254
2299.86102.278059701493-2.41805970149254
2399.84102.278059701493-2.43805970149253
2499.8102.278059701493-2.47805970149254
2599.82102.278059701493-2.45805970149254
2699.81102.278059701493-2.46805970149253
2799.92102.278059701493-2.35805970149253
28100.03102.278059701493-2.24805970149254
2999.99102.278059701493-2.28805970149254
30100.02102.278059701493-2.25805970149254
31100.01102.278059701493-2.26805970149253
32100.13102.278059701493-2.14805970149254
33100.33102.278059701493-1.94805970149254
34100.13102.278059701493-2.14805970149254
3599.96102.278059701493-2.31805970149254
36100.05102.278059701493-2.22805970149254
3799.83102.278059701493-2.44805970149254
3899.8102.278059701493-2.47805970149254
39100.01102.278059701493-2.26805970149253
40100.1102.278059701493-2.17805970149254
41100.13102.278059701493-2.14805970149254
42100.16102.278059701493-2.11805970149254
43100.41102.278059701493-1.86805970149254
44101.34102.278059701493-0.938059701492533
45101.65102.278059701493-0.62805970149253
46101.85102.278059701493-0.428059701492542
47102.07102.278059701493-0.208059701492543
48102.12102.278059701493-0.158059701492531
49102.14102.278059701493-0.138059701492535
50102.21102.278059701493-0.0680597014925422
51102.28102.2780597014930.00194029850746515
52102.19102.278059701493-0.0880597014925383
53102.33102.2780597014930.0519402985074623
54102.54102.2780597014930.261940298507470
55102.44102.2780597014930.161940298507462
56102.78102.2780597014930.501940298507465
57102.9102.2780597014930.62194029850747
58103.08102.2780597014930.801940298507462
59102.77102.2780597014930.49194029850746
60102.65102.2780597014930.37194029850747
61102.71102.2780597014930.431940298507458
62103.29102.2780597014931.01194029850747
63102.86102.2780597014930.581940298507463
64103.45102.2780597014931.17194029850747
65103.72102.2780597014931.44194029850746
66103.65102.2780597014931.37194029850747
67103.83102.2780597014931.55194029850746
68104.45102.2780597014932.17194029850747
69105.14102.2780597014932.86194029850746
70105.07102.2780597014932.79194029850746
71105.31102.2780597014933.03194029850747
72105.19102.2780597014932.91194029850746
73105.3102.2780597014933.02194029850746
74105.02102.2780597014932.74194029850746
75105.17102.2780597014932.89194029850747
76105.28102.2780597014933.00194029850746
77105.45102.2780597014933.17194029850747
78105.38102.2780597014933.10194029850746
79105.8102.2780597014933.52194029850746
80105.96102.2780597014933.68194029850746
81105.08102.2780597014932.80194029850746
82105.11102.2780597014932.83194029850746
83105.61102.2780597014933.33194029850746
84105.5102.2780597014933.22194029850746


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.00594006657040520.01188013314081040.994059933429595
60.001017827668261650.002035655336523300.998982172331738
70.0001501724580162670.0003003449160325330.999849827541984
81.97626063681139e-053.95252127362279e-050.999980237393632
93.96522215154569e-067.93044430309137e-060.999996034777848
107.16035966539098e-071.43207193307820e-060.999999283964033
111.15489003962649e-072.30978007925298e-070.999999884510996
121.49726377121867e-082.99452754243733e-080.999999985027362
131.97820688799911e-093.95641377599823e-090.999999998021793
142.48680714049294e-104.97361428098587e-100.99999999975132
153.34272498666322e-116.68544997332644e-110.999999999966573
165.10498478378584e-121.02099695675717e-110.999999999994895
176.86017002298311e-131.37203400459662e-120.999999999999314
187.50457285853327e-141.50091457170665e-130.999999999999925
199.21106102713646e-151.84221220542729e-140.99999999999999
201.22088197496684e-152.44176394993369e-150.999999999999999
211.49736145456893e-162.99472290913786e-161
221.85609796365598e-173.71219592731196e-171
232.35942993920493e-184.71885987840985e-181
243.29442970707436e-196.58885941414872e-191
254.31731096590950e-208.63462193181901e-201
265.85156560794638e-211.17031312158928e-201
277.39902452353312e-221.47980490470662e-211
281.22829205155309e-222.45658410310618e-221
291.81503829954691e-233.63007659909382e-231
302.99020552204966e-245.98041104409931e-241
314.95118706222304e-259.90237412444608e-251
321.42735216773018e-252.85470433546037e-251
332.07325334747668e-254.14650669495336e-251
345.64749496223981e-261.12949899244796e-251
351.25536805384387e-262.51073610768774e-261
363.27042227751821e-276.54084455503642e-271
371.44799862388066e-272.89599724776132e-271
389.19338887941163e-281.83867777588233e-271
394.27544339972204e-288.55088679944408e-281
403.12046393508372e-286.24092787016744e-281
413.47589238353969e-286.95178476707939e-281
426.51746308035426e-281.30349261607085e-271
431.26466599587788e-262.52933199175576e-261
448.21566507053968e-201.64313301410794e-191
454.55478756733364e-159.10957513466728e-150.999999999999995
468.48904452403411e-121.69780890480682e-110.99999999999151
472.58727554677797e-095.17455109355593e-090.999999997412724
481.35570124694977e-072.71140249389953e-070.999999864429875
492.49100124339276e-064.98200248678551e-060.999997508998757
502.58509916033928e-055.17019832067857e-050.999974149008397
510.0001770746345221460.0003541492690442920.999822925365478
520.0008253400281377810.001650680056275560.999174659971862
530.003273636057513290.006547272115026580.996726363942487
540.01095742554619470.02191485109238940.989042574453805
550.03009934114999330.06019868229998660.969900658850007
560.07019848169322840.1403969633864570.929801518306772
570.1372544655521370.2745089311042740.862745534447863
580.2295157853752440.4590315707504870.770484214624756
590.3612591666781490.7225183333562970.638740833321851
600.5467284508217270.9065430983565450.453271549178273
610.749068304914080.5018633901718390.250931695085920
620.8607271398993260.2785457202013480.139272860100674
630.9662138105520470.06757237889590540.0337861894479527
640.9912818391290480.01743632174190330.00871816087095164
650.9979316455211430.004136708957714150.00206835447885708
660.9998480358812230.0003039282375532160.000151964118776608
670.9999980163195663.96736086776315e-061.98368043388157e-06
680.9999998675054572.64989085617677e-071.32494542808838e-07
690.9999997753896784.49220644404499e-072.24610322202250e-07
700.9999996250531727.49893656919947e-073.74946828459973e-07
710.9999989157159072.16856818678781e-061.08428409339391e-06
720.9999969336160786.13276784407334e-063.06638392203667e-06
730.9999892751087452.14497825090934e-051.07248912545467e-05
740.9999788093193794.23813612417772e-052.11906806208886e-05
750.999934989736640.0001300205267170006.50102633585002e-05
760.9997456069327470.0005087861345059670.000254393067252983
770.9988262511724730.002347497655054360.00117374882752718
780.9948628334063480.01027433318730340.00513716659365169
790.9826201033540640.03475979329187130.0173798966459357


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level610.813333333333333NOK
5% type I error level660.88NOK
10% type I error level680.906666666666667NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/10l28u1227797066.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/10l28u1227797066.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/13wxp1227797066.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/13wxp1227797066.ps (open in new window)


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


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


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/7u5nz1227797066.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/7u5nz1227797066.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/8xfz31227797066.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/8xfz31227797066.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/9696y1227797066.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227797122fxta2ovv8ffo22o/9696y1227797066.ps (open in new window)


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