Home » date » 2009 » Nov » 18 »

*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: Wed, 18 Nov 2009 05:00:00 -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/18/t1258545678zfc4lofmk1821mo.htm/, Retrieved Wed, 18 Nov 2009 13:01:31 +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/18/t1258545678zfc4lofmk1821mo.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 «
149657 0 142773 0 133639 0 128332 0 120297 0 118632 0 155276 0 169316 0 167395 0 157939 0 149601 0 146310 0 141579 0 136473 0 129818 0 124226 0 116428 0 116440 0 147747 0 160069 0 163129 0 151108 0 141481 0 139174 0 134066 0 130104 0 123090 0 116598 0 109627 0 105428 0 137272 0 159836 0 155283 0 141514 0 131852 0 130691 0 128461 0 123066 0 117599 0 111599 0 105395 0 102334 0 131305 0 149033 0 144954 0 132404 0 122104 0 118755 0 116222 1 110924 1 103753 1 99983 1 93302 1 91496 1 119321 1 139261 1 133739 1 123913 1 113438 1 109416 1 109406 1 105645 1 101328 1 97686 1 93093 1 91382 1 122257 1 139183 1 139887 1 131822 1 116805 1 113706 1 113012 1 110452 1 107005 1 102841 1 98173 1 98181 1 137277 1 147579 1 146571 1 138920 1 130340 1 128140 1 127059 1 122860 1 117702 1 113537 1 108366 1 111078 1 150739 1 159129 1 157928 1 147768 1 137507 1 136919 1
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 134775.187500000 -14649.1250000000X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)134775.1875000002581.72654652.203500
X-14649.12500000003651.112696-4.01220.0001216e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.382381313631161
R-squared0.146215469014292
Adjusted R-squared0.137132654854870
F-TEST (value)16.0980359663761
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value0.000120720523048345
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation17886.7261957388
Sum Squared Residuals30073887556.1250


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1149657134775.18749999914881.8125000010
2142773134775.18757997.8125
3133639134775.1875-1136.18750000002
4128332134775.1875-6443.18750000002
5120297134775.1875-14478.1875000000
6118632134775.1875-16143.1875000000
7155276134775.187520500.8125000000
8169316134775.187534540.8125
9167395134775.187532619.8125
10157939134775.187523163.8125
11149601134775.187514825.8125000000
12146310134775.187511534.8125000000
13141579134775.18756803.81249999998
14136473134775.18751697.81249999998
15129818134775.1875-4957.18750000002
16124226134775.1875-10549.1875000000
17116428134775.1875-18347.1875
18116440134775.1875-18335.1875
19147747134775.187512971.8125000000
20160069134775.187525293.8125
21163129134775.187528353.8125
22151108134775.187516332.8125000000
23141481134775.18756705.81249999998
24139174134775.18754398.81249999998
25134066134775.1875-709.18750000002
26130104134775.1875-4671.18750000002
27123090134775.1875-11685.1875000000
28116598134775.1875-18177.1875
29109627134775.1875-25148.1875
30105428134775.1875-29347.1875
31137272134775.18752496.81249999998
32159836134775.187525060.8125
33155283134775.187520507.8125
34141514134775.18756738.81249999998
35131852134775.1875-2923.18750000002
36130691134775.1875-4084.18750000002
37128461134775.1875-6314.18750000002
38123066134775.1875-11709.1875000000
39117599134775.1875-17176.1875000000
40111599134775.1875-23176.1875
41105395134775.1875-29380.1875
42102334134775.1875-32441.1875
43131305134775.1875-3470.18750000002
44149033134775.187514257.8125000000
45144954134775.187510178.8125000000
46132404134775.1875-2371.18750000002
47122104134775.1875-12671.1875000000
48118755134775.1875-16020.1875000000
49116222120126.0625-3904.0625
50110924120126.0625-9202.0625
51103753120126.0625-16373.0625
5299983120126.0625-20143.0625
5393302120126.0625-26824.0625
5491496120126.0625-28630.0625
55119321120126.0625-805.0625
56139261120126.062519134.9375
57133739120126.062513612.9375
58123913120126.06253786.9375
59113438120126.0625-6688.0625
60109416120126.0625-10710.0625
61109406120126.0625-10720.0625
62105645120126.0625-14481.0625
63101328120126.0625-18798.0625
6497686120126.0625-22440.0625
6593093120126.0625-27033.0625
6691382120126.0625-28744.0625
67122257120126.06252130.9375
68139183120126.062519056.9375
69139887120126.062519760.9375
70131822120126.062511695.9375
71116805120126.0625-3321.0625
72113706120126.0625-6420.0625
73113012120126.0625-7114.0625
74110452120126.0625-9674.0625
75107005120126.0625-13121.0625
76102841120126.0625-17285.0625
7798173120126.0625-21953.0625
7898181120126.0625-21945.0625
79137277120126.062517150.9375
80147579120126.062527452.9375
81146571120126.062526444.9375
82138920120126.062518793.9375
83130340120126.062510213.9375
84128140120126.06258013.9375
85127059120126.06256932.9375
86122860120126.06252733.9375
87117702120126.0625-2424.0625
88113537120126.0625-6589.0625
89108366120126.0625-11760.0625
90111078120126.0625-9048.0625
91150739120126.062530612.9375
92159129120126.062539002.9375
93157928120126.062537801.9375
94147768120126.062527641.9375
95137507120126.062517380.9375
96136919120126.062516792.9375


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3439372368855490.6878744737710970.656062763114452
60.3154513008272360.6309026016544720.684548699172764
70.3990784938210860.7981569876421720.600921506178914
80.6587652035634540.6824695928730910.341234796436546
90.7528616024894540.4942767950210930.247138397510546
100.7248933452867580.5502133094264830.275106654713242
110.6485892484987180.7028215030025650.351410751501282
120.5608768981182510.8782462037634970.439123101881748
130.4720042965834760.9440085931669510.527995703416524
140.3984266492221140.7968532984442290.601573350777886
150.3611887380073830.7223774760147670.638811261992617
160.3614565420455900.7229130840911790.63854345795441
170.4276510509173850.8553021018347710.572348949082615
180.4725754907400410.9451509814800820.527424509259959
190.4192322589789940.8384645179579880.580767741021006
200.4581948875460830.9163897750921660.541805112453917
210.5267328742162390.9465342515675230.473267125783761
220.4935069597499070.9870139194998150.506493040250093
230.4305883275988610.8611766551977220.569411672401139
240.3695715584945860.7391431169891730.630428441505414
250.3172456411219630.6344912822439270.682754358878037
260.2780748514171220.5561497028342450.721925148582878
270.2696983434029200.5393966868058390.73030165659708
280.2993659947428480.5987319894856960.700634005257152
290.3849725883309760.7699451766619530.615027411669024
300.5074941859461290.9850116281077420.492505814053871
310.4464218176517330.8928436353034650.553578182348267
320.5083446870465410.9833106259069180.491655312953459
330.5356773737211970.9286452525576060.464322626278803
340.4916191924904970.9832383849809930.508380807509504
350.4393288778621210.8786577557242420.560671122137879
360.3895711953165570.7791423906331140.610428804683443
370.3447529810020340.6895059620040690.655247018997966
380.3150016012025450.630003202405090.684998398797455
390.3074792318841540.6149584637683090.692520768115846
400.3338513571675810.6677027143351620.666148642832419
410.4117425905623010.8234851811246030.588257409437699
420.5285766701761640.9428466596476720.471423329823836
430.4704903003077820.9409806006155640.529509699692218
440.4547285535271780.9094571070543560.545271446472822
450.4304356935189170.8608713870378340.569564306481083
460.3812295734897090.7624591469794170.618770426510291
470.3419120738217510.6838241476435030.658087926178249
480.3112783785896440.6225567571792870.688721621410356
490.2617967775044480.5235935550088970.738203222495552
500.2221977861629150.4443955723258310.777802213837085
510.2010187900708140.4020375801416270.798981209929186
520.1916798612889960.3833597225779920.808320138711004
530.2117280123078810.4234560246157620.788271987692119
540.2458249198217790.4916498396435580.754175080178221
550.2179160384561090.4358320769122190.78208396154389
560.2637808352826390.5275616705652770.736219164717361
570.2621156385674640.5242312771349290.737884361432536
580.2233614943717000.4467229887433990.7766385056283
590.1857645322831850.371529064566370.814235467716815
600.1586083020837980.3172166041675960.841391697916202
610.1346292455454200.2692584910908410.86537075445458
620.1213456514360840.2426913028721680.878654348563916
630.122108072105150.24421614421030.87789192789485
640.1398204459123630.2796408918247270.860179554087637
650.1936303305081050.3872606610162110.806369669491895
660.2908093487988270.5816186975976530.709190651201173
670.2511287996325120.5022575992650240.748871200367488
680.2637059495960840.5274118991921690.736294050403916
690.2744845157144200.5489690314288390.72551548428558
700.2433017014719340.4866034029438680.756698298528066
710.2035245023192710.4070490046385420.796475497680729
720.1743812241747590.3487624483495170.825618775825241
730.1507374655930210.3014749311860430.849262534406979
740.1378619033609710.2757238067219420.862138096639029
750.1415024070106840.2830048140213690.858497592989316
760.1762255710718590.3524511421437170.823774428928141
770.2859585858323750.571917171664750.714041414167625
780.4814631483127830.9629262966255660.518536851687217
790.4355095556471470.8710191112942940.564490444352853
800.4543802500031570.9087605000063140.545619749996843
810.4599479220670740.9198958441341480.540052077932926
820.4070687998066030.8141375996132060.592931200193397
830.3309315608131470.6618631216262940.669068439186853
840.2595932624838180.5191865249676360.740406737516182
850.19652302619010.39304605238020.8034769738099
860.151113307593930.302226615187860.84888669240607
870.1332526119928760.2665052239857520.866747388007124
880.1543406152390400.3086812304780790.84565938476096
890.3202392973466260.6404785946932520.679760702653374
900.7931329425761270.4137341148477450.206867057423873
910.6606784463995790.6786431072008420.339321553600421


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/10iwmv1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/10iwmv1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/1ltus1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/1ltus1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/2u2fk1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/2u2fk1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/3taxq1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/3taxq1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/4kgmz1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/4kgmz1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/5ojs61258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/5ojs61258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/6z7xv1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/6z7xv1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/7t1ar1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/7t1ar1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/8dh8n1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/8dh8n1258545594.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/9n6gx1258545594.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/18/t1258545678zfc4lofmk1821mo/9n6gx1258545594.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