Home » date » 2009 » Dec » 17 »

*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, 17 Dec 2009 03:36:26 -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/Dec/17/t1261046248o8bru9axf8rn2xa.htm/, Retrieved Thu, 17 Dec 2009 11:37:40 +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/Dec/17/t1261046248o8bru9axf8rn2xa.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1322,4 0 1,0622 1089,2 0 1,0773 1147,3 0 1,0807 1196,4 0 1,0848 1190,2 0 1,1582 1146 0 1,1663 1139,8 0 1,1372 1045,6 0 1,1139 1050,9 0 1,1222 1117,3 0 1,1692 1120 0 1,1702 1052,1 0 1,2286 1065,8 0 1,2613 1092,5 0 1,2646 1422 0 1,2262 1367,5 0 1,1985 1136,3 0 1,2007 1293,7 0 1,2138 1154,8 0 1,2266 1206,7 0 1,2176 1199 0 1,2218 1265 0 1,249 1247,1 0 1,2991 1116,5 0 1,3408 1153,9 0 1,3119 1077,4 0 1,3014 1132,5 0 1,3201 1058,8 0 1,2938 1195,1 0 1,2694 1263,4 0 1,2165 1023,1 0 1,2037 1141 0 1,2292 1116,3 0 1,2256 1135,6 0 1,2015 1210,5 0 1,1786 1230 0 1,1856 1136,5 0 1,2103 1068,7 0 1,1938 1372,5 0 1,202 1049,9 0 1,2271 1302,2 0 1,277 1305,9 0 1,265 1173,5 0 1,2684 1277,4 0 1,2811 1238,6 0 1,2727 1508,6 0 1,2611 1423,4 0 1,2881 1375,1 0 1,3213 1344,1 0 1,2999 1287,5 0 1,3074 1446,9 0 1,3242 1451 0 1,3516 1604,4 0 1,3511 1501,5 0 1,3419 1522,8 0 1,3716 1328 0 1,3622 1420,5 0 1,3896 1648 0 1,4227 1631,1 0 1,4684 1396,6 0 1,457 1663,4 0 1,4718 1283 0 1,474 etc...
 
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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Import_Uit_USA[t] = -490.773338089126 + 165.712720727400Dummy_Crisis[t] + 1402.66628529179`Wisselkoers_EUR/DOLLAR`[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-490.773338089126198.758094-2.46920.0157270.007864
Dummy_Crisis165.71272072740051.9088443.19240.0020350.001017
`Wisselkoers_EUR/DOLLAR`1402.66628529179153.9671989.110200


Multiple Linear Regression - Regression Statistics
Multiple R0.764136460746423
R-squared0.58390453064207
Adjusted R-squared0.573235416043149
F-TEST (value)54.7284899068481
F-TEST (DF numerator)2
F-TEST (DF denominator)78
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation162.524460615078
Sum Squared Residuals2060307.62326133


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11322.4999.138790147819323.261209852181
21089.21020.3190510557268.8809489442824
31147.31025.08811642571122.21188357429
41196.41030.83904819541165.560951804594
51190.21133.7947535358256.4052464641771
611461145.156350446690.843649553313565
71139.81104.3387615447035.4612384553044
81045.61071.65663709740-26.0566370973968
91050.91083.29876726532-32.3987672653188
101117.31149.22408267403-31.9240826740328
1111201150.62674895932-30.6267489593244
121052.11232.54246002036-180.442460020365
131065.81278.40964754941-212.609647549407
141092.51283.03844629087-190.538446290869
1514221229.17606093566192.823939064335
161367.51190.32220483308177.177795166918
171136.31193.40807066072-57.1080706607243
181293.71211.7829989980581.9170010019536
191154.81229.73712744978-74.9371274497813
201206.71217.11313088216-10.4131308821553
2111991223.00432928038-24.0043292803808
2212651261.156852240323.84314775968244
231247.11331.43043313344-84.330433133436
241116.51389.92161723010-273.421617230103
251153.91349.38456158517-195.484561585171
261077.41334.65656558961-257.256565589607
271132.51360.88642512456-228.386425124564
281058.81323.99630182139-265.196301821390
291195.11289.77124446027-94.671244460270
301263.41215.5701979683347.8298020316659
311023.11197.6160695166-174.516069516599
3211411233.38405979154-92.3840597915401
331116.31228.33446116449-112.034461164490
341135.61194.53020368896-58.9302036889576
351210.51162.4091457557848.0908542442243
3612301172.2278097528257.7721902471819
371136.51206.87366699953-70.3736669995251
381068.71183.72967329221-115.029673292211
391372.51195.23153683160177.268463168397
401049.91230.43846059243-180.538460592427
411302.21300.431508228491.76849177151272
421305.91283.5995128049922.3004871950142
431173.51288.36857817498-114.868578174978
441277.41306.18243999818-28.7824399981835
451238.61294.40004320173-55.8000432017328
461508.61278.12911429235230.470885707652
471423.41316.00110399523107.398896004774
481375.11362.5696246669112.5303753330864
491344.11332.5525661616711.5474338383305
501287.51343.07256330136-55.5725633013576
511446.91366.6373568942680.2626431057402
5214511405.0704131112545.9295868887454
531604.41404.36907996861200.030920031391
541501.51391.46455014392110.035449856075
551522.81433.1237388170989.6762611829095
5613281419.93867573535-91.9386757353478
571420.51458.37173195234-37.8717319523426
5816481504.7999859955143.200014004499
591631.11568.9018352333462.1981647666645
601396.61552.91143958101-156.311439581009
611663.41573.6709006033389.7290993966726
6212831577.87889945920-294.878899459203
631582.41687.14660308343-104.746603083433
641785.21718.4260612454466.77393875456
651853.61691.35460193931162.245398060691
661994.11690.79353542519303.306464574808
672042.81721.23139381602321.568606183976
681586.11609.71942413533-23.6194241353267
691942.41524.71784724664417.682152753356
701763.61543.57140790399220.028592096005
711819.91460.81409707178359.085902928221
7218361561.3852697272274.6147302728
731449.91531.92927773607-82.0292777360726
741513.31468.2482283838345.0517716161746
751677.71505.41888494406172.281115055942
761494.41525.05621293814-30.6562129381426
771375.31589.57886206156-214.278862061565
781577.71640.91644810324-63.2164481032443
791537.71651.01564535735-113.315645357345
801356.61676.26363849260-319.663638492598
811469.61717.50202728018-247.902027280176


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.2268884104751680.4537768209503370.773111589524832
70.1112930832588990.2225861665177970.888706916741101
80.1069428751045550.2138857502091100.893057124895445
90.07974729527597980.1594945905519600.92025270472402
100.03914716686060390.07829433372120770.960852833139396
110.01807550660765290.03615101321530570.981924493392347
120.00842236450686640.01684472901373280.991577635493134
130.003900758381906800.007801516763813590.996099241618093
140.001876398803243740.003752797606487480.998123601196756
150.07168355678144060.1433671135628810.928316443218559
160.1297437194743070.2594874389486130.870256280525693
170.08781391788601860.1756278357720370.912186082113981
180.08167384118512290.1633476823702460.918326158814877
190.05368766608730820.1073753321746160.946312333912692
200.03495581063464970.06991162126929950.96504418936535
210.02177858826560160.04355717653120330.978221411734398
220.01549983468134300.03099966936268590.984500165318657
230.009782183797535860.01956436759507170.990217816202464
240.009113306298753170.01822661259750630.990886693701247
250.006295677713024930.01259135542604990.993704322286975
260.006349546137418740.01269909227483750.993650453862581
270.004969911564511860.009939823129023720.995030088435488
280.005715747357359570.01143149471471910.99428425264264
290.003641910155919690.007283820311839390.99635808984408
300.002760765201532230.005521530403064460.997239234798468
310.003395335493747700.006790670987495390.996604664506252
320.002119330697902730.004238661395805450.997880669302097
330.001422498135383620.002844996270767230.998577501864616
340.000843262817745180.001686525635490360.999156737182255
350.0004900008568268630.0009800017136537270.999509999143173
360.0003003242233529140.0006006484467058280.999699675776647
370.0001729690559187050.0003459381118374090.999827030944081
380.0001475145517150050.0002950291034300100.999852485448285
390.0003505914993632370.0007011829987264740.999649408500637
400.0004229860147698090.0008459720295396180.99957701398523
410.0004060028942450150.000812005788490030.999593997105755
420.0003682878522167760.0007365757044335510.999631712147783
430.0002768562607693250.000553712521538650.99972314373923
440.0002238643675701000.0004477287351402010.99977613563243
450.0001690917078632880.0003381834157265760.999830908292137
460.001166100873769140.002332201747538270.998833899126231
470.001680616922185670.003361233844371330.998319383077814
480.001569228633215510.003138457266431010.998430771366784
490.001270045025853500.002540090051707010.998729954974147
500.001046633525437400.002093267050874790.998953366474563
510.001201843672331740.002403687344663470.998798156327668
520.001212139620795850.002424279241591690.998787860379204
530.002743250559215590.005486501118431180.997256749440784
540.002603624431631690.005207248863263380.997396375568368
550.00225707589809270.00451415179618540.997742924101907
560.002373286168286970.004746572336573950.997626713831713
570.002419472735281280.004838945470562560.997580527264719
580.002574955325064650.00514991065012930.997425044674935
590.001961558616048620.003923117232097250.998038441383951
600.004069469110342850.00813893822068570.995930530889657
610.003444339058789810.006888678117579630.99655566094121
620.0806899306803390.1613798613606780.919310069319661
630.1117996045869740.2235992091739490.888200395413026
640.09358433764687630.1871686752937530.906415662353124
650.08255378674151230.1651075734830250.917446213258488
660.1164998993471430.2329997986942870.883500100652856
670.3395910708812840.6791821417625690.660408929118716
680.3682367988023400.7364735976046810.63176320119766
690.3649228512641160.7298457025282320.635077148735884
700.3667104629694720.7334209259389440.633289537030528
710.4063256409192470.8126512818384940.593674359080753
720.7931435349878270.4137129300243470.206856465012173
730.7416846107900430.5166307784199150.258315389209957
740.6340251692366770.7319496615266470.365974830763324
750.6453105039120820.7093789921758370.354689496087918


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level360.514285714285714NOK
5% type I error level450.642857142857143NOK
10% type I error level470.671428571428571NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/10xmqf1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/10xmqf1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/18u4s1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/18u4s1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/2q1v01261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/2q1v01261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/3ne8h1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/3ne8h1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/4pavg1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/4pavg1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/505uv1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/505uv1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/6jb8a1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/6jb8a1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/717061261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/717061261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/88ror1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/88ror1261046180.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/9nqxi1261046180.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261046248o8bru9axf8rn2xa/9nqxi1261046180.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