Home » date » 2008 » Dec » 11 »

Multiple Regression - Totale Uitvoer van Belgie (B)

*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, 11 Dec 2008 10:20:33 -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/Dec/11/t1229016173mskugognogs8k8q.htm/, Retrieved Thu, 11 Dec 2008 17:23:02 +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/Dec/11/t1229016173mskugognogs8k8q.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 «
15044.5 1 14944.2 1 16754.8 1 14254 1 15454.9 1 15644.8 1 14568.3 1 12520.2 1 14803 1 15873.2 1 14755.3 1 12875.1 1 14291.1 1 14205.3 1 15859.4 1 15258.9 1 15498.6 1 15106.5 1 15023.6 1 12083 1 15761.3 1 16943 1 15070.3 1 13659.6 1 14768.9 0 14725.1 0 15998.1 0 15370.6 0 14956.9 0 15469.7 0 15101.8 0 11703.7 0 16283.6 0 16726.5 0 14968.9 0 14861 0 14583.3 0 15305.8 0 17903.9 0 16379.4 0 15420.3 0 17870.5 0 15912.8 0 13866.5 0 17823.2 0 17872 0 17420.4 0 16704.4 0 15991.2 0 16583.6 0 19123.5 0 17838.7 0 17209.4 0 18586.5 0 16258.1 0 15141.6 0 19202.1 0 17746.5 0 19090.1 0 18040.3 0 17515.5 0 17751.8 0 21072.4 0 17170 0 19439.5 0 19795.4 0 17574.9 0 16165.4 0 19464.6 0 19932.1 0 19961.2 0 17343.4 0 18924.2 0 18574.1 0 21350.6 0 18594.6 0 19823.1 0 20844.4 0 19640.2 0 17735.4 0 19813.6 0 22160 0 20664.3 0 17877.4 0 21211.2 0 21423.1 0 21688.7 0 23243.2 0 21490.2 0 22925.8 0 23184.8 0 18562.2 0
 
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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 16804.1742511521 -3134.00987903226X[t] + 520.565718605996M1[t] + 668.453218605987M2[t] + 2698.25321860599M3[t] + 1243.00321860599M4[t] + 1390.94071860599M5[t] + 2259.77821860599M6[t] + 1137.39071860599M7[t] -1298.42178139400M8[t] + 1684.31428571429M9[t] + 2270.3M10[t] + 1509.9M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16804.1742511521788.28961321.317300
X-3134.00987903226487.729315-6.425700
M1520.5657186059961062.553150.48990.6255490.312774
M2668.4532186059871062.553150.62910.5310980.265549
M32698.253218605991062.553152.53940.0130670.006533
M41243.003218605991062.553151.16980.2455880.122794
M51390.940718605991062.553151.30910.1943110.097155
M62259.778218605991062.553152.12670.0365620.018281
M71137.390718605991062.553151.07040.2876850.143842
M8-1298.421781394001062.55315-1.2220.2253480.112674
M91684.314285714291097.2527041.5350.1287720.064386
M102270.31097.2527042.06910.0418090.020904
M111509.91097.2527041.37610.1726870.086344


Multiple Linear Regression - Regression Statistics
Multiple R0.673559567976199
R-squared0.453682491612284
Adjusted R-squared0.37069755362934
F-TEST (value)5.46704622115316
F-TEST (DF numerator)12
F-TEST (DF denominator)79
p-value1.10064691827283e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2052.77184252911
Sum Squared Residuals332895906.76095


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
115044.514190.7300907258853.769909274233
214944.214338.6175907258605.58240927418
316754.816368.4175907258386.382409274194
41425414913.1675907258-659.167590725803
515454.915061.1050907258393.794909274206
615644.815929.9425907258-285.142590725805
714568.314807.5550907258-239.25509072581
812520.212371.7425907258148.457409274193
91480315354.4786578341-551.478657834102
1015873.215940.4643721198-67.2643721198227
1114755.315180.0643721198-424.76437211982
1212875.113670.1643721198-795.06437211982
1314291.114190.7300907258100.369909274186
1414205.314338.6175907258-133.317590725806
1515859.416368.4175907258-509.017590725809
1615258.914913.1675907258345.73240927419
1715498.615061.1050907258437.494909274191
1815106.515929.9425907258-823.442590725808
1915023.614807.5550907258216.044909274193
201208312371.7425907258-288.742590725808
2115761.315354.4786578341406.821342165897
221694315940.46437211981002.53562788018
2315070.315180.0643721198-109.764372119817
2413659.613670.1643721198-10.5643721198168
2514768.917324.7399697581-2555.83996975807
2614725.117472.6274697581-2747.52746975806
2715998.119502.4274697581-3504.32746975806
2815370.618047.1774697581-2676.57746975806
2914956.918195.1149697581-3238.21496975806
3015469.719063.9524697581-3594.25246975806
3115101.817941.5649697581-2839.76496975806
3211703.715505.7524697581-3802.05246975806
3316283.618488.4885368664-2204.88853686636
3416726.519074.4742511521-2347.97425115207
3514968.918314.0742511521-3345.17425115207
361486116804.1742511521-1943.17425115207
3714583.317324.7399697581-2741.43996975807
3815305.817472.6274697581-2166.82746975806
3917903.919502.4274697581-1598.52746975806
4016379.418047.1774697581-1667.77746975807
4115420.318195.1149697581-2774.81496975807
4217870.519063.9524697581-1193.45246975806
4315912.817941.5649697581-2028.76496975806
4413866.515505.7524697581-1639.25246975806
4517823.218488.4885368664-665.288536866357
461787219074.4742511521-1202.47425115207
4717420.418314.0742511521-893.67425115207
4816704.416804.1742511521-99.774251152072
4915991.217324.7399697581-1333.53996975807
5016583.617472.6274697581-889.027469758063
5119123.519502.4274697581-378.927469758065
5217838.718047.1774697581-208.477469758065
5317209.418195.1149697581-985.714969758065
5418586.519063.9524697581-477.452469758065
5516258.117941.5649697581-1683.46496975806
5615141.615505.7524697581-364.152469758064
5719202.118488.4885368664713.61146313364
5817746.519074.4742511521-1327.97425115207
5919090.118314.0742511521776.025748847926
6018040.316804.17425115211236.12574884793
6117515.517324.7399697581190.760030241930
6217751.817472.6274697581279.172530241937
6321072.419502.42746975811569.97253024194
641717018047.1774697581-877.177469758066
6519439.518195.11496975811244.38503024193
6619795.419063.9524697581731.447530241937
6717574.917941.5649697581-366.664969758062
6816165.415505.7524697581659.647530241936
6919464.618488.4885368664976.11146313364
7019932.119074.4742511521857.625748847927
7119961.218314.07425115211647.12574884793
7217343.416804.1742511521539.225748847928
7318924.217324.73996975811599.46003024193
7418574.117472.62746975811101.47253024194
7521350.619502.42746975811848.17253024193
7618594.618047.1774697581547.422530241933
7719823.118195.11496975811627.98503024193
7820844.419063.95246975811780.44753024194
7919640.217941.56496975811698.63503024194
8017735.415505.75246975812229.64753024194
8119813.618488.48853686641325.11146313364
822216019074.47425115213085.52574884793
8320664.318314.07425115212350.22574884793
8417877.416804.17425115211073.22574884793
8521211.217324.73996975813886.46003024193
8621423.117472.62746975813950.47253024194
8721688.719502.42746975812186.27253024194
8823243.218047.17746975815196.02253024194
8921490.218195.11496975813295.08503024194
9022925.819063.95246975813861.84753024193
9123184.817941.56496975815243.23503024193
9218562.215505.75246975813056.44753024194


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.03657494056117390.07314988112234770.963425059438826
170.008924928977654520.01784985795530900.991075071022345
180.002471591347891200.004943182695782400.997528408652109
190.0006224860492249290.001244972098449860.999377513950775
200.0001503642818433760.0003007285636867510.999849635718157
216.894792383523e-050.000137895847670460.999931052076165
223.71089640482922e-057.42179280965844e-050.999962891035952
238.59958714250845e-061.71991742850169e-050.999991400412858
242.98216650446004e-065.96433300892008e-060.999997017833496
256.87256741068541e-071.37451348213708e-060.999999312743259
261.60155098673788e-073.20310197347576e-070.9999998398449
275.04465843871377e-081.00893168774275e-070.999999949553416
281.82191762578066e-083.64383525156132e-080.999999981780824
297.74640078067364e-091.54928015613473e-080.9999999922536
302.53412833394138e-095.06825666788277e-090.999999997465872
317.49536174428712e-101.49907234885742e-090.999999999250464
324.96298480228037e-109.92596960456074e-100.999999999503701
334.8670063702303e-109.7340127404606e-100.9999999995133
341.38698376470782e-102.77396752941563e-100.999999999861302
355.84787621433693e-111.16957524286739e-100.999999999941521
362.40151833271822e-104.80303666543644e-100.999999999759848
371.17446495005209e-102.34892990010417e-100.999999999882554
386.72261600901493e-111.34452320180299e-100.999999999932774
394.10783445267536e-108.21566890535072e-100.999999999589217
407.16170960578697e-101.43234192115739e-090.99999999928383
415.48783035982954e-101.09756607196591e-090.999999999451217
421.43548714190027e-082.87097428380054e-080.999999985645129
431.32000795291745e-082.64001590583490e-080.99999998679992
443.22789679012773e-086.45579358025547e-080.999999967721032
459.31150063634523e-081.86230012726905e-070.999999906884994
467.13699004592825e-081.42739800918565e-070.9999999286301
473.10062998557695e-076.2012599711539e-070.999999689937001
481.30963053764777e-062.61926107529554e-060.999998690369462
491.65759123585991e-063.31518247171982e-060.999998342408764
502.45731817003661e-064.91463634007322e-060.99999754268183
516.6209444607318e-061.32418889214636e-050.99999337905554
521.34776125874113e-052.69552251748226e-050.999986522387413
532.35102842487766e-054.70205684975531e-050.999976489715751
545.81673311023006e-050.0001163346622046010.999941832668898
550.0001375444645153000.0002750889290305990.999862455535485
560.0002937311176704330.0005874622353408660.99970626888233
570.0004607299465355340.0009214598930710680.999539270053464
580.0007007961555294090.001401592311058820.99929920384447
590.001565119505274900.003130239010549800.998434880494725
600.002448773013797920.004897546027595830.997551226986202
610.004011870586064150.008023741172128290.995988129413936
620.005618009688519510.01123601937703900.99438199031148
630.009172534292400640.01834506858480130.9908274657076
640.02023192298673750.0404638459734750.979768077013263
650.02682616511331620.05365233022663250.973173834886684
660.03595220593799690.07190441187599390.964047794062003
670.09399841241063520.1879968248212700.906001587589365
680.1109574147382570.2219148294765140.889042585261743
690.08513761539029790.1702752307805960.914862384609702
700.09143901792731550.1828780358546310.908560982072685
710.07870638830901910.1574127766180380.921293611690981
720.05096580016277540.1019316003255510.949034199837225
730.05736709928748120.1147341985749620.942632900712519
740.07180508654759640.1436101730951930.928194913452404
750.04642693011627010.09285386023254020.95357306988373
760.1860644410009880.3721288820019760.813935558999012


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level440.721311475409836NOK
5% type I error level480.78688524590164NOK
10% type I error level520.852459016393443NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/10a9h01229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/10a9h01229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/1kpdx1229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/1kpdx1229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/2tpd11229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/2tpd11229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/3a9hj1229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/3a9hj1229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/4aq6i1229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/4aq6i1229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/560401229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/560401229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/6e22b1229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/6e22b1229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/7in0m1229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/7in0m1229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/8g5xq1229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/8g5xq1229016028.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/9w6y71229016028.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016173mskugognogs8k8q/9w6y71229016028.ps (open in new window)


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