Home » date » 2008 » Dec » 11 »

Multiple Regression - Totale Uitvoer van Belgie (C)

*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:25:54 -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/t1229016392jud56fsnr176pxz.htm/, Retrieved Thu, 11 Dec 2008 17:26:43 +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/t1229016392jud56fsnr176pxz.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] = + 10563.7854727398 + 1566.02977053141X[t] + 1198.58264284277M1[t] + 1244.43846977800M2[t] + 3172.20679671325M3[t] + 1614.92512364849M4[t] + 1660.83095058374M5[t] + 2427.63677751898M6[t] + 1203.21760445422M7[t] -1334.62656861053M8[t] + 1990.40930490856M9[t] + 2474.36334612951M10[t] + 1611.93167306476M11[t] + 102.031673064757t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)10563.7854727398439.5236224.034600
X1566.02977053141302.0551245.18462e-061e-06
M11198.58264284277426.4101882.81090.0062450.003122
M21244.43846977800426.048992.92090.0045630.002281
M33172.20679671325425.7463347.450900
M41614.92512364849425.5023443.79530.000290.000145
M51660.83095058374425.3171233.90490.0001991e-04
M62427.63677751898425.1907465.709500
M71203.21760445422425.1232672.83030.0059120.002956
M8-1334.62656861053425.114712-3.13950.002390.001195
M91990.40930490856439.2504884.53142.1e-051e-05
M102474.36334612951439.1078775.63500
M111611.93167306476439.0222883.67160.0004390.00022
t102.0316730647575.00527320.384800


Multiple Linear Regression - Regression Statistics
Multiple R0.955855226880187
R-squared0.913659214754173
Adjusted R-squared0.899269083879869
F-TEST (value)63.4920712490278
F-TEST (DF numerator)13
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation821.282112099488
Sum Squared Residuals52611335.9970585


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
115044.513430.42955917871614.07044082129
214944.213578.31705917871365.88294082125
316754.815608.11705917871146.68294082125
41425414152.8670591787101.132940821263
515454.914300.80455917871154.09544082127
615644.815169.6420591787475.157940821257
714568.314047.2545591787521.045440821251
812520.211611.4420591787908.757940821255
91480315038.5096057626-235.509605762597
1015873.215624.4953200483248.704679951683
1114755.314864.0953200483-108.795320048315
1212875.113354.1953200483-479.095320048315
1314291.114654.8096359558-363.709635955839
1414205.314802.6971359558-597.397135955826
1515859.416832.4971359558-973.097135955834
1615258.915377.2471359558-118.347135955836
1715498.615525.1846359558-26.5846359558347
1815106.516394.0221359558-1287.52213595583
1915023.615271.6346359558-248.034635955833
201208312835.8221359558-752.822135955834
2115761.316262.8896825397-501.589682539684
221694316848.875396825494.1246031746026
2315070.316088.4753968254-1018.17539682540
2413659.614578.5753968254-918.9753968254
2514768.914313.1599422015455.740057798475
2614725.114461.0474422015264.052557798482
2715998.116490.8474422015-492.747442201518
2815370.615035.5974422015335.002557798481
2914956.915183.5349422015-226.634942201520
3015469.716052.3724422015-582.672442201518
3115101.814929.9849422015171.815057798481
3211703.712494.1724422015-790.472442201519
3316283.615921.2399887854362.360011214632
3416726.516507.2257030711219.274296928919
3514968.915746.8257030711-777.925703071082
361486114236.9257030711624.074296928917
3714583.315537.5400189786-954.240018978612
3815305.815685.4275189786-379.627518978607
3917903.917715.2275189786188.672481021396
4016379.416259.9775189786119.422481021393
4115420.316407.9150189786-987.615018978608
4217870.517276.7525189786593.747481021394
4315912.816154.3650189786-241.565018978606
4413866.513718.5525189786147.947481021394
4517823.217145.6200655625677.579934437545
461787217731.6057798482140.394220151831
4717420.416971.2057798482449.194220151832
4816704.415461.30577984821243.09422015183
4915991.216761.9200957557-770.720095755698
5016583.616909.8075957557-326.207595755695
5119123.518939.6075957557183.892404244307
5217838.717484.3575957557354.342404244306
5317209.417632.2950957557-422.895095755694
5418586.518501.132595755785.3674042443063
5516258.117378.7450957557-1120.64509575569
5615141.614942.9325957557198.667404244307
5719202.118370.0001423395832.099857660456
5817746.518955.9858566253-1209.48585662526
5919090.118195.5858566253894.514143374741
6018040.316685.68585662531354.61414337474
6117515.517986.3001725328-470.800172532786
6217751.818134.1876725328-382.387672532781
6321072.420163.9876725328908.412327467222
641717018708.7376725328-1538.73767253278
6519439.518856.6751725328582.824827467218
6619795.419725.512672532869.8873274672203
6717574.918603.1251725328-1028.22517253278
6816165.416167.3126725328-1.91267253278096
6919464.619594.3802191166-129.780219116632
7019932.120180.3659334023-248.265933402346
7119961.219419.9659334023541.234066597656
7217343.417910.0659334023-566.665933402345
7318924.219210.6802493099-286.480249309872
7418574.119358.5677493099-784.46774930987
7521350.621388.3677493099-37.7677493098687
7618594.619933.1177493099-1338.51774930987
7719823.120081.0552493099-257.955249309872
7820844.420949.8927493099-105.492749309867
7919640.219827.5052493099-187.305249309867
8017735.417391.6927493099343.707250690133
8119813.620818.7602958937-1005.16029589372
822216021404.7460101794755.253989820568
8320664.320644.346010179419.9539898205674
8417877.419134.4460101794-1257.04601017943
8521211.220435.0603260870776.139673913039
8621423.120582.9478260870840.152173913043
8721688.722612.7478260870-924.047826086955
8823243.221157.49782608702085.70217391305
8921490.221305.4353260870184.764673913044
9022925.822174.2728260870751.527173913042
9123184.821051.88532608702132.91467391304
9218562.218616.0728260870-53.8728260869546


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4389552270594440.8779104541188870.561044772940556
180.2843555186908310.5687110373816610.71564448130917
190.2235032723720440.4470065447440890.776496727627956
200.1333353993963720.2666707987927440.866664600603628
210.1599877092842720.3199754185685440.840012290715728
220.1868679900365650.3737359800731300.813132009963435
230.1232689607867080.2465379215734160.876731039213292
240.096945087499190.193890174998380.90305491250081
250.06279303200979030.1255860640195810.93720696799021
260.03804620196083890.07609240392167770.96195379803916
270.02417411825703580.04834823651407160.975825881742964
280.01816768871217820.03633537742435650.981832311287822
290.01366422632472290.02732845264944590.986335773675277
300.007798432287228130.01559686457445630.992201567712772
310.004498866227415410.008997732454830820.995501133772585
320.003707004386243470.007414008772486940.996292995613757
330.004847673400062210.009695346800124430.995152326599938
340.002789162234059660.005578324468119320.99721083776594
350.001757328154917310.003514656309834610.998242671845083
360.005617462379735740.01123492475947150.994382537620264
370.003692590923607610.007385181847215220.996307409076392
380.002389993440984940.004779986881969870.997610006559015
390.005620856963256380.01124171392651280.994379143036744
400.006017552724211310.01203510544842260.993982447275789
410.004406841251623490.008813682503246990.995593158748377
420.01899500761488830.03799001522977660.981004992385112
430.01259536098458530.02519072196917060.987404639015415
440.01277474127784540.02554948255569080.987225258722155
450.02030981408412800.04061962816825590.979690185915872
460.01494683444174640.02989366888349270.985053165558254
470.02228209839581240.04456419679162480.977717901604188
480.06027515539945120.1205503107989020.93972484460055
490.0436420916079590.0872841832159180.956357908392041
500.03000903968711240.06001807937422470.969990960312888
510.02601230210496700.05202460420993410.973987697895033
520.02464624869553130.04929249739106250.975353751304469
530.01611182355068210.03222364710136410.983888176449318
540.01228445546635420.02456891093270850.987715544533646
550.01110368795627180.02220737591254360.988896312043728
560.00858396534233330.01716793068466660.991416034657667
570.01399552331394160.02799104662788330.986004476686058
580.01440570221547420.02881140443094850.985594297784526
590.02039450845862820.04078901691725650.979605491541372
600.09119511558935560.1823902311787110.908804884410644
610.06348640575425920.1269728115085180.93651359424574
620.04274722802898470.08549445605796940.957252771971015
630.09674571621246230.1934914324249250.903254283787538
640.1135692053907810.2271384107815610.88643079460922
650.1384843788125750.2769687576251490.861515621187425
660.1100907641515180.2201815283030360.889909235848482
670.1054845545539170.2109691091078340.894515445446083
680.08035559688488580.1607111937697720.919644403115114
690.08670572439857560.1734114487971510.913294275601424
700.05479071193127480.1095814238625500.945209288068725
710.05500069587332980.1100013917466600.94499930412667
720.06849745243614950.1369949048722990.93150254756385
730.03744562184208210.07489124368416420.962554378157918
740.02081540051926240.04163080103852480.979184599480738
750.0394303798051590.0788607596103180.960569620194841


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.135593220338983NOK
5% type I error level300.508474576271186NOK
10% type I error level370.627118644067797NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016392jud56fsnr176pxz/10rqzi1229016348.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016392jud56fsnr176pxz/10rqzi1229016348.ps (open in new window)


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


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


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


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


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


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016392jud56fsnr176pxz/9rlhf1229016348.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016392jud56fsnr176pxz/9rlhf1229016348.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