Home » date » 2008 » Nov » 24 »

11.1 the seatbelt law q3

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 24 Nov 2008 00:34:59 -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/24/t12275123110cdo8s4ns3fuq1k.htm/, Retrieved Mon, 24 Nov 2008 07:38:31 +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/24/t12275123110cdo8s4ns3fuq1k.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:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90,7 0 94,3 0 104,6 0 111,1 0 110,8 0 107,2 0 99 0 99 0 91 0 96,2 0 96,9 0 96,2 0 100,1 0 99 0 115,4 0 106,9 0 107,1 0 99,3 0 99,2 0 108,3 0 105,6 0 99,5 0 107,4 0 93,1 0 88,1 0 110,7 0 113,1 0 99,6 0 93,6 0 98,6 0 99,6 0 114,3 0 107,8 0 101,2 0 112,5 0 100,5 0 93,9 0 116,2 0 112 0 106,4 0 95,7 0 96 0 95,8 0 103 0 102,2 0 98,4 0 111,4 1 86,6 1 91,3 1 107,9 1 101,8 1 104,4 1 93,4 1 100,1 1 98,5 1 112,9 1 101,4 1 107,1 1 110,8 1 90,3 1 95,5 1 111,4 1 113 1 107,5 1 95,9 1 106,3 1 105,2 1 117,2 1 106,9 1 108,2 1 113 1 97,2 1 99,9 1 108,1 1 118,1 1 109,1 1 93,3 1 112,1 1 111,8 1 112,5 1 116,3 1 110,3 1 117,1 1 103,4 1 96,2 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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Prodintergoed[t] = + 102.110869565217 + 3.10451505016723invest[t] + e[t]


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


Multiple Linear Regression - Regression Statistics
Multiple R0.199254124190547
R-squared0.0397022060069419
Adjusted R-squared0.0281323530672665
F-TEST (value)3.43152209573856
F-TEST (DF numerator)1
F-TEST (DF denominator)83
p-value0.0675178440910564
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.69931567483898
Sum Squared Residuals4920.19533444816


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
190.7102.110869565218-11.4108695652175
294.3102.110869565217-7.81086956521739
3104.6102.1108695652172.48913043478261
4111.1102.1108695652178.9891304347826
5110.8102.1108695652178.68913043478261
6107.2102.1108695652175.08913043478262
799102.110869565217-3.11086956521739
899102.110869565217-3.11086956521739
991102.110869565217-11.1108695652174
1096.2102.110869565217-5.91086956521738
1196.9102.110869565217-5.21086956521738
1296.2102.110869565217-5.91086956521738
13100.1102.110869565217-2.01086956521739
1499102.110869565217-3.11086956521739
15115.4102.11086956521713.2891304347826
16106.9102.1108695652174.78913043478262
17107.1102.1108695652174.98913043478261
1899.3102.110869565217-2.81086956521739
1999.2102.110869565217-2.91086956521738
20108.3102.1108695652176.18913043478261
21105.6102.1108695652173.48913043478261
2299.5102.110869565217-2.61086956521739
23107.4102.1108695652175.28913043478262
2493.1102.110869565217-9.0108695652174
2588.1102.110869565217-14.0108695652174
26110.7102.1108695652178.58913043478262
27113.1102.11086956521710.9891304347826
2899.6102.110869565217-2.51086956521739
2993.6102.110869565217-8.5108695652174
3098.6102.110869565217-3.51086956521739
3199.6102.110869565217-2.51086956521739
32114.3102.11086956521712.1891304347826
33107.8102.1108695652175.68913043478261
34101.2102.110869565217-0.910869565217384
35112.5102.11086956521710.3891304347826
36100.5102.110869565217-1.61086956521739
3793.9102.110869565217-8.21086956521738
38116.2102.11086956521714.0891304347826
39112102.1108695652179.88913043478261
40106.4102.1108695652174.28913043478262
4195.7102.110869565217-6.41086956521738
4296102.110869565217-6.11086956521739
4395.8102.110869565217-6.31086956521739
44103102.1108695652170.889130434782613
45102.2102.1108695652170.0891304347826157
4698.4102.110869565217-3.71086956521738
47111.4105.2153846153856.18461538461539
4886.6105.215384615385-18.6153846153846
4991.3105.215384615385-13.9153846153846
50107.9105.2153846153852.68461538461539
51101.8105.215384615385-3.41538461538462
52104.4105.215384615385-0.81538461538461
5393.4105.215384615385-11.8153846153846
54100.1105.215384615385-5.11538461538462
5598.5105.215384615385-6.71538461538462
56112.9105.2153846153857.68461538461539
57101.4105.215384615385-3.81538461538461
58107.1105.2153846153851.88461538461538
59110.8105.2153846153855.58461538461538
6090.3105.215384615385-14.9153846153846
6195.5105.215384615385-9.71538461538462
62111.4105.2153846153856.18461538461539
63113105.2153846153857.78461538461538
64107.5105.2153846153852.28461538461538
6595.9105.215384615385-9.31538461538461
66106.3105.2153846153851.08461538461538
67105.2105.215384615385-0.0153846153846133
68117.2105.21538461538511.9846153846154
69106.9105.2153846153851.68461538461539
70108.2105.2153846153852.98461538461539
71113105.2153846153857.78461538461538
7297.2105.215384615385-8.01538461538461
7399.9105.215384615385-5.31538461538461
74108.1105.2153846153852.88461538461538
75118.1105.21538461538512.8846153846154
76109.1105.2153846153853.88461538461538
7793.3105.215384615385-11.9153846153846
78112.1105.2153846153856.88461538461538
79111.8105.2153846153856.58461538461538
80112.5105.2153846153857.28461538461538
81116.3105.21538461538511.0846153846154
82110.3105.2153846153855.08461538461538
83117.1105.21538461538511.8846153846154
84103.4105.215384615385-1.81538461538461
8596.2105.215384615385-9.01538461538461


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.8810323564509580.2379352870980840.118967643549042
60.8129681089728970.3740637820542060.187031891027103
70.727910373055370.544179253889260.27208962694463
80.6313385707539460.7373228584921080.368661429246054
90.6986840017130360.6026319965739280.301315998286964
100.6306045305488580.7387909389022830.369395469451142
110.5499598032187410.9000803935625170.450040196781258
120.4774771801567620.9549543603135240.522522819843238
130.3833463190524370.7666926381048730.616653680947563
140.3001102547974140.6002205095948280.699889745202586
150.5380538501266440.9238922997467120.461946149873356
160.4971700115877420.9943400231754830.502829988412258
170.4561826827186260.9123653654372510.543817317281375
180.3832783896278380.7665567792556750.616721610372162
190.3158891779860080.6317783559720170.684110822013992
200.2997151690749430.5994303381498850.700284830925057
210.2508083090782110.5016166181564210.74919169092179
220.1992099217174080.3984198434348160.800790078282592
230.1756118111221910.3512236222443830.824388188877809
240.1946594418509270.3893188837018540.805340558149073
250.3237023184118590.6474046368237170.676297681588141
260.3478929198179690.6957858396359390.65210708018203
270.4193391334063830.8386782668127670.580660866593616
280.3598159008040110.7196318016080230.640184099195989
290.3714957176570450.742991435314090.628504282342955
300.3220456077654880.6440912155309770.677954392234512
310.2709277926285120.5418555852570240.729072207371488
320.3590290903895970.7180581807791950.640970909610403
330.3304724735372130.6609449470744270.669527526462787
340.2743070530750560.5486141061501120.725692946924944
350.3183439203185820.6366878406371650.681656079681418
360.2650386239710810.5300772479421630.734961376028919
370.2721793591555970.5443587183111940.727820640844403
380.4043403600618940.8086807201237870.595659639938106
390.4542642584585540.9085285169171080.545735741541446
400.4244561858154740.8489123716309480.575543814184526
410.393156779267710.786313558535420.60684322073229
420.3599992700467560.7199985400935130.640000729953244
430.3322736219095550.6645472438191110.667726378090445
440.2790687928275410.5581375856550810.72093120717246
450.2309793359411680.4619586718823350.769020664058833
460.19066548930670.38133097861340.8093345106933
470.1620302220891250.3240604441782490.837969777910875
480.3862119439874720.7724238879749430.613788056012528
490.4642112332797190.9284224665594380.535788766720281
500.4474193632185450.894838726437090.552580636781455
510.3969693817549530.7939387635099060.603030618245047
520.3446602752366030.6893205504732060.655339724763397
530.4037883333892340.8075766667784670.596211666610766
540.3684953155596860.7369906311193710.631504684440314
550.3525966299048030.7051932598096070.647403370095197
560.3777440091499820.7554880182999650.622255990850018
570.3351929812739270.6703859625478540.664807018726073
580.2876211497699650.575242299539930.712378850230035
590.2662462377566900.5324924755133790.73375376224331
600.4530451681503940.9060903363007880.546954831849606
610.5264202399533170.9471595200933660.473579760046683
620.5005584262064280.9988831475871450.499441573793572
630.493561236315820.987122472631640.50643876368418
640.427639172244120.855278344488240.57236082775588
650.5053992507238880.9892014985522250.494600749276112
660.4365015786745330.8730031573490660.563498421325467
670.3719182943597150.743836588719430.628081705640285
680.4334414953235820.8668829906471630.566558504676418
690.3579560617624980.7159121235249970.642043938237502
700.2873655046560170.5747310093120350.712634495343983
710.2579789125368750.5159578250737510.742021087463125
720.3012477987826060.6024955975652130.698752201217394
730.3051303646150010.6102607292300010.694869635385
740.2296700966575960.4593401933151920.770329903342404
750.2733109800788050.5466219601576090.726689019921196
760.1951971285634250.390394257126850.804802871436575
770.4512779688683530.9025559377367060.548722031131647
780.3442522035654240.6885044071308490.655747796434575
790.2389380035422110.4778760070844220.761061996457789
800.1528999667815760.3057999335631510.847100033218424


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/103s9d1227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/103s9d1227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/1bnas1227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/1bnas1227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/2j7ni1227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/2j7ni1227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/349811227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/349811227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/4ryh31227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/4ryh31227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/51lrf1227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/51lrf1227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/6yto11227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/6yto11227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/7t18c1227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/7t18c1227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/8mxdr1227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/8mxdr1227512086.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/90pw31227512086.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t12275123110cdo8s4ns3fuq1k/90pw31227512086.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