Home » date » 2009 » Nov » 19 »

*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, 19 Nov 2009 10:01:56 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf.htm/, Retrieved Thu, 19 Nov 2009 18:02:58 +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/2009/Nov/19/t12586501667agdfturgglszuf.htm/},
    year = {2009},
}
@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 = {2009},
    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:
ws7l3
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,8 6,3 100,5 6,1 110,4 6,1 96,4 6,3 101,9 6,3 106,2 6 81 6,2 94,7 6,4 101 6,8 109,4 7,5 102,3 7,5 90,7 7,6 96,2 7,6 96,1 7,4 106 7,3 103,1 7,1 102 6,9 104,7 6,8 86 7,5 92,1 7,6 106,9 7,8 112,6 8 101,7 8,1 92 8,2 97,4 8,3 97 8,2 105,4 8 102,7 7,9 98,1 7,6 104,5 7,6 87,4 8,3 89,9 8,4 109,8 8,4 111,7 8,4 98,6 8,4 96,9 8,6 95,1 8,9 97 8,8 112,7 8,3 102,9 7,5 97,4 7,2 111,4 7,4 87,4 8,8 96,8 9,3 114,1 9,3 110,3 8,7 103,9 8,2 101,6 8,3 94,6 8,5 95,9 8,6 104,7 8,5 102,8 8,2 98,1 8,1 113,9 7,9 80,9 8,6 95,7 8,7 113,2 8,7 105,9 8,5 108,8 8,4 102,3 8,5 99 8,7 100,7 8,7 115,5 8,6 100,7 8,5 109,9 8,3 114,6 8 85,4 8,2 100,5 8,1 114,8 8,1 116,5 8 112,9 7,9 102 7,9 106 8 105,3 8 118,8 7,9 106,1 8 109,3 7,7 117,2 7,2 92,5 7,5 104,2 7,3 112,5 7 122,4 7 113,3 7 100 7,2 110,7 7,3 112,8 7,1 109,8 6,8 117,3 6,4 109,1 6,1 115,9 6,5 96 7,7 99,8 7,9 116,8 7,5 115,7 6,9 99,4 6,6 94,3 6,9 91 7,7
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 97.741544080691 -0.815049795615903X[t] + 1.87018159774291M1[t] + 4.29996328167822M2[t] + 13.7930268025441M3[t] + 7.1032140785195M4[t] + 6.04071323204974M5[t] + 13.6699054875868M6[t] -9.8692386652739M7[t] -0.254348328168483M8[t] + 14.0461607844849M9[t] + 15.7957292849124M10[t] + 7.6397334180042M11[t] + 0.114302764901383t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)97.7415440806914.79056720.402900
X-0.8150497956159030.576386-1.41410.1610810.080541
M11.870181597742912.0492730.91260.3640920.182046
M24.299963281678222.1127142.03530.0450140.022507
M313.79302680254412.1144856.523100
M47.10321407851952.1227933.34620.0012330.000616
M56.040713232049742.1387282.82440.0059290.002965
M613.66990548758682.1484766.362600
M7-9.86923866527392.108615-4.68041.1e-056e-06
M8-0.2543483281684832.108411-0.12060.9042720.452136
M914.04616078448492.1078666.663700
M1015.79572928491242.1073587.495500
M117.63973341800422.1085953.62315e-040.00025
t0.1143027649013830.0154367.404700


Multiple Linear Regression - Regression Statistics
Multiple R0.897678632759792
R-squared0.80582692771349
Adjusted R-squared0.77541427783729
F-TEST (value)26.4964391788857
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.21420383050917
Sum Squared Residuals1474.03965578149


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
198.894.5912147309544.20878526904587
2100.597.2983091389153.20169086108504
3110.4106.9056754246823.49432457531785
496.4100.167155506436-3.76715550643581
5101.999.21895742486742.68104257513259
6106.2107.206967383991-1.00696738399063
78183.6191160369082-2.61911603690818
894.793.18529917979181.51470082020822
9101107.274091139100-6.27409113910019
10109.4108.5674275474980.83257245250211
11102.3100.5257344454911.77426555450891
1290.792.9187988128267-2.21879881282667
1396.294.9032831754711.29671682452899
1496.197.6103775834309-1.51037758343087
15106107.299248848760-1.29924884875968
16103.1100.8867488487602.21325115124032
17102100.1015607263141.89843927368552
18104.7107.926560726314-3.22656072631448
198683.93118448142412.06881551857592
2092.193.5788726038693-1.47887260386929
21106.9107.830674522301-0.930674522300902
22112.6109.5315358285073.06846417149346
23101.7101.4083377469380.291662253061851
249293.8014021142738-1.80140211427375
2597.495.70438149735651.69561850264354
269798.3299709257547-1.32997092575474
27105.4108.100347170645-2.70034717064514
28102.7101.6063421910841.09365780891645
2998.1100.9026590482-2.80265904819995
30104.5108.646154068638-4.14615406863835
3187.484.6507778237482.74922217625205
3289.994.2984659461931-4.39846594619314
33109.8108.7132778237481.08672217625204
34111.7110.5771490890771.12285091092324
3598.6102.53545598707-3.93545598706998
3696.994.8470153748442.05298462515603
3795.196.5869847988035-1.48698479880352
389799.2125742272018-2.21257422720179
39112.7109.2274654107773.47253458922304
40102.9103.303995288147-0.403995288146497
4197.4102.600312145263-5.20031214526289
42111.4110.1807972065781.21920279342188
4387.485.61488610475661.78511389524341
4496.894.93655430895541.86344569104457
45114.1109.3513661865104.74863381348976
46110.3111.704267329209-1.40426732920859
47103.9104.070099125010-0.170099125009744
48101.696.46316349234535.13683650765465
4994.698.2846378958665-3.68463789586648
5095.9100.747217365142-4.84721736514156
51104.7110.436088630470-5.73608863047037
52102.8104.105093610032-1.30509361003197
5398.1103.238400508025-5.13840050802518
54113.9111.1449054875872.75509451241324
5580.987.1495292426964-6.24952924269637
5695.796.7972173651416-1.09721736514157
57113.2111.2120292426961.98797075730363
58105.9113.238910467148-7.33891046714835
59108.8105.2787223447033.52127765529684
60102.397.67178671203884.62821328796124
619999.49326111556-0.493261115559886
62100.7102.037345564397-1.33734556439657
63115.5111.7262168297253.77378317027462
64100.7105.232211850164-4.53221185016378
65109.9104.4470237277195.45297627228142
66114.6112.4350336868422.16496631315823
6785.488.8471823397593-3.44718233975931
68100.598.65788042132771.84211957867230
69114.8113.0726922988831.72730770111749
70116.5115.0180685437731.48193145622709
71112.9107.0578804213285.8421195786723
7210299.53244976822492.46755023177511
73106101.4354291513084.56457084869239
74105.3103.9795136001441.32048639985570
75118.8113.6683848654735.13161513452689
76106.1107.011369926788-0.911369926788338
77109.3106.3076867839052.99231321609527
78117.2114.4587067021512.74129329784892
7992.590.7893503755071.71064962449295
80104.2100.6815534366373.51844656336298
81112.5115.340880252877-2.84088025287660
82122.4117.2047515182055.19524848179461
83113.3109.1630584161994.13694158380138
84100101.474617803973-1.47461780397262
85110.7103.3775971870557.32240281294466
86112.8106.0846915950156.7153084049848
87109.8115.936572819467-6.1365728194672
88117.3109.6870827785907.61291722140962
89109.1108.9833996357070.116600364293227
90115.9116.400874737899-0.500874737898805
919691.99797359520054.00202640479954
9299.8101.564156738084-1.76415673808407
93116.8116.3049885338850.495011466114762
94115.7118.657889676584-2.95788967658358
9599.4110.860711513262-11.4607115132616
9694.3103.090765921474-8.79076592147399
9791104.423210447626-13.4232104476256


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2231052379312040.4462104758624080.776894762068796
180.133113955705910.266227911411820.86688604429409
190.2408011316246930.4816022632493860.759198868375307
200.1490622275097210.2981244550194430.850937772490279
210.1544531976724340.3089063953448690.845546802327566
220.09440372591901610.1888074518380320.905596274080984
230.06420783444500430.1284156688900090.935792165554996
240.03593396055523400.07186792111046790.964066039444766
250.02021945043805430.04043890087610850.979780549561946
260.01115055546886260.02230111093772510.988849444531137
270.008301570507776170.01660314101555230.991698429492224
280.004986671488964230.009973342977928460.995013328511036
290.00617682308484280.01235364616968560.993823176915157
300.003581864687757650.00716372937551530.996418135312242
310.003591439286416040.007182878572832070.996408560713584
320.002913386075236760.005826772150473520.997086613924763
330.003601067195796750.00720213439159350.996398932804203
340.00201032213411310.00402064426822620.997989677865887
350.002128766969282050.004257533938564090.997871233030718
360.002102878130966750.004205756261933510.997897121869033
370.001424509980585530.002849019961171060.998575490019414
380.000793599667904190.001587199335808380.999206400332096
390.0007974860676211480.001594972135242300.999202513932379
400.0004183134730880730.0008366269461761460.999581686526912
410.0006646288469085690.001329257693817140.999335371153091
420.0007170333061842430.001434066612368490.999282966693816
430.0004227948513644160.0008455897027288310.999577205148636
440.0003476237774417910.0006952475548835830.999652376222558
450.0007316769010233860.001463353802046770.999268323098977
460.0004620910144927310.0009241820289854610.999537908985507
470.0002523053231570750.000504610646314150.999747694676843
480.0003589960468491220.0007179920936982450.999641003953151
490.0004001372099744440.0008002744199488890.999599862790026
500.0004672040678565670.0009344081357131340.999532795932143
510.000782945706796550.00156589141359310.999217054293204
520.0004834319410269120.0009668638820538250.999516568058973
530.0007541609580050820.001508321916010160.999245839041995
540.0008116563643158240.001623312728631650.999188343635684
550.002102000500892990.004204001001785990.997897999499107
560.001632732860297160.003265465720594320.998367267139703
570.001164405926906780.002328811853813570.998835594073093
580.004840548353227730.009681096706455460.995159451646772
590.004578955943727980.009157911887455960.995421044056272
600.004302919466874280.008605838933748560.995697080533126
610.003003080861434750.00600616172286950.996996919138565
620.003000356697648040.006000713395296070.996999643302352
630.002605607805779540.005211215611559090.99739439219422
640.004884457902056070.009768915804112150.995115542097944
650.005965358460279480.01193071692055900.99403464153972
660.004125440073891140.008250880147782270.99587455992611
670.01163868870598270.02327737741196530.988361311294017
680.01084887572091460.02169775144182930.989151124279085
690.007288904415810260.01457780883162050.99271109558419
700.006364395359784180.01272879071956840.993635604640216
710.005167241992709970.01033448398541990.99483275800729
720.002833757038170470.005667514076340950.99716624296183
730.001586674382718470.003173348765436940.998413325617282
740.001960059913432600.003920119826865210.998039940086567
750.002566970183178460.005133940366356930.997433029816821
760.006071746642306030.01214349328461210.993928253357694
770.003981118399752990.007962236799505980.996018881600247
780.003834896277034240.007669792554068480.996165103722966
790.0080902139129160.0161804278258320.991909786087084
800.003157637613473640.006315275226947290.996842362386526


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level440.6875NOK
5% type I error level560.875NOK
10% type I error level570.890625NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/10xjyr1258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/10xjyr1258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/1wlhb1258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/1wlhb1258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/2ech51258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/2ech51258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/33gyn1258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/33gyn1258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/4a7be1258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/4a7be1258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/5vzcd1258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/5vzcd1258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/6zwr31258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/6zwr31258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/74cg01258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/74cg01258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/8ka771258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/8ka771258650109.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/93vhk1258650109.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586501667agdfturgglszuf/93vhk1258650109.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