Home » date » 2009 » Nov » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 19 Nov 2009 09:42:15 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav.htm/, Retrieved Thu, 19 Nov 2009 17:45:49 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav.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:
ws7l2
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,8 6,3 100,5 6,1 110,4 6,1 96,4 6,3 101,9 6,3 106,2 6 81 6,2 94,7 6,4 101 6,8 109,4 7,5 102,3 7,5 90,7 7,6 96,2 7,6 96,1 7,4 106 7,3 103,1 7,1 102 6,9 104,7 6,8 86 7,5 92,1 7,6 106,9 7,8 112,6 8 101,7 8,1 92 8,2 97,4 8,3 97 8,2 105,4 8 102,7 7,9 98,1 7,6 104,5 7,6 87,4 8,3 89,9 8,4 109,8 8,4 111,7 8,4 98,6 8,4 96,9 8,6 95,1 8,9 97 8,8 112,7 8,3 102,9 7,5 97,4 7,2 111,4 7,4 87,4 8,8 96,8 9,3 114,1 9,3 110,3 8,7 103,9 8,2 101,6 8,3 94,6 8,5 95,9 8,6 104,7 8,5 102,8 8,2 98,1 8,1 113,9 7,9 80,9 8,6 95,7 8,7 113,2 8,7 105,9 8,5 108,8 8,4 102,3 8,5 99 8,7 100,7 8,7 115,5 8,6 100,7 8,5 109,9 8,3 114,6 8 85,4 8,2 100,5 8,1 114,8 8,1 116,5 8 112,9 7,9 102 7,9 106 8 105,3 8 118,8 7,9 106,1 8 109,3 7,7 117,2 7,2 92,5 7,5 104,2 7,3 112,5 7 122,4 7 113,3 7 100 7,2 110,7 7,3 112,8 7,1 109,8 6,8 117,3 6,4 109,1 6,1 115,9 6,5 96 7,7 99,8 7,9 116,8 7,5 115,7 6,9 99,4 6,6 94,3 6,9 91 7,7
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 100.808693644493 -0.421986537277549X[t] + 1.28993303416181M1[t] + 3.17167550485208M2[t] + 12.8478278608285M3[t] + 6.35093055337301M4[t] + 5.48625841420152M5[t] + 13.2690597604738M6[t] -10.4210993268639M7[t] -0.736125841420165M8[t] + 13.6835993268639M9[t] + 15.5769503365680M10[t] + 7.57947685112434M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)100.8086936444936.1134916.489500
X-0.4219865372775490.735183-0.5740.5675090.283755
M11.289933034161812.6230950.49180.6241720.312086
M23.171675504852082.6992311.1750.2433030.121652
M312.84782786082852.7036074.75218e-064e-06
M46.350930553373012.7160732.33830.021750.010875
M55.486258414201522.7379222.00380.0483140.024157
M613.26905976047382.7512154.8236e-063e-06
M7-10.42109932686392.69934-3.86060.0002210.000111
M8-0.7361258414201652.699481-0.27270.785760.39288
M913.68359932686392.699345.06922e-061e-06
M1015.57695033656802.6991535.771100
M117.579476851124342.7009822.80620.0062290.003115


Multiple Linear Regression - Regression Statistics
Multiple R0.823138113126992
R-squared0.677556353282265
Adjusted R-squared0.631492975179731
F-TEST (value)14.7092198009029
F-TEST (DF numerator)12
F-TEST (DF denominator)84
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.3981798736166
Sum Squared Residuals2447.78905962523


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
198.899.440111493805-0.64011149380493
2100.5101.406251271952-0.906251271951684
3110.4111.082403627928-0.682403627928092
496.4104.501109013017-8.1011090130171
5101.9103.636436873846-1.73643687384559
6106.2111.545834181301-5.34583418130114
78187.771277786508-6.77127778650797
894.797.3718539644962-2.67185396449618
9101111.622784517869-10.6227845178692
10109.4113.220744951479-3.82074495147908
11102.3105.223271466035-2.92327146603534
1290.797.6015959611832-6.90159596118324
1396.298.891528995345-2.6915289953451
1496.1100.857668773491-4.75766877349087
15106110.576019783195-4.57601978319505
16103.1104.163519783195-1.06351978319505
17102103.383244951479-1.38324495147908
18104.7111.208244951479-6.50824495147908
198687.2226952880471-1.22269528804714
2092.196.8654701197631-4.76547011976311
21106.9111.200797980592-4.30079798059163
22112.6113.009751682840-0.409751682840315
23101.7104.970079543669-3.27007954366883
249297.3484040388167-5.34840403881674
2597.498.5961384192508-1.19613841925080
2697100.520079543669-3.52007954366882
27105.4110.280629207101-4.88062920710076
28102.7103.825930553373-1.12593055337301
2998.1103.087854375385-4.9878543753848
30104.5110.870655721657-6.37065572165704
3187.486.88510605822510.514893941774906
3289.996.527880889941-6.62788088994106
33109.8110.947606058225-1.14760605822511
34111.7112.840957067929-1.14095706792928
3598.6104.843483582486-6.24348358248557
3696.997.1796094239057-0.279609423905713
3795.198.3429464968843-3.24294649688429
3897100.266887621302-3.26688762130230
39112.7110.1540332459182.5459667540825
40102.9103.994725168284-1.09472516828402
4197.4103.256648990296-5.85664899029581
42111.4110.9550530291130.444946970887453
4387.486.67411278958630.725887210413681
4496.896.14809300639130.651906993608724
45114.1110.5678181746753.53218182532468
46110.3112.714361106746-2.41436110674603
47103.9104.927880889941-1.02788088994107
48101.697.3062053850894.29379461491101
4994.698.5117411117953-3.9117411117953
5095.9100.351284928758-4.45128492875780
51104.7110.069635938462-5.36963593846199
52102.8103.699334592190-0.899334592189746
5398.1102.876861106746-4.77686110674603
54113.9110.7440597604743.15594023952623
5580.986.7585100970418-5.85851009704183
5695.796.4012849287578-0.701284928757804
57113.2110.8210100970422.37898990295816
58105.9112.798758414202-6.89875841420153
59108.8104.8434835824863.95651641751443
60102.397.22180807763355.07819192236652
619998.42734380433980.572656195660208
62100.7100.309086275030.390913724969953
63115.5110.0274372847345.47256271526576
64100.7103.572738631006-2.87273863100648
65109.9102.7924637992917.10753620070949
66114.6110.7018611067463.89813889325398
6785.486.9273047119529-1.52730471195285
68100.596.65447685112433.84552314887567
69114.8111.0742020194083.72579798059163
70116.5113.0097516828403.49024831715969
71112.9105.0544768511247.84552314887566
7210297.4754.52499999999999
7310698.7227343804347.27726561956593
74105.3100.6044768511244.69552314887566
75118.8110.3228278608298.47717213917147
76106.1103.7837318996452.31626810035474
77109.3103.0456557216576.25434427834296
78117.2111.0394503365686.16054966343194
7992.587.22269528804715.27730471195286
80104.296.99206608094647.20793391905363
81112.5111.5383872104140.961612789586324
82122.4113.4317382201188.96826177988215
83113.3105.4342647346747.86573526532586
8410097.77039057609432.22960942390571
85110.799.018124956528411.6818750434716
86112.8100.98426473467411.8157352653259
87109.8110.787013051834-0.987013051833833
88117.3104.45891035928912.8410896407107
89109.1103.7208341813015.37916581869887
90115.9111.3348409126624.56515908733766
919687.13829798059168.86170201940837
9299.896.73887415857983.06112584142015
93116.8111.3273939417755.4726060582251
94115.7113.4739368738462.22606312615439
9599.4105.603059349585-6.20305934958515
9694.397.8969865372776-3.59698653727756
979198.8493303416173-7.84933034161734


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2937304445079710.5874608890159420.706269555492029
170.1582499673393310.3164999346786620.841750032660669
180.08393580068370080.1678716013674020.916064199316299
190.1017454779945500.2034909559891000.89825452200545
200.06153883421854570.1230776684370910.938461165781454
210.07696749787794920.1539349957558980.92303250212205
220.05109505491352130.1021901098270430.948904945086479
230.02798428887534460.05596857775068920.972015711124655
240.01622219383170370.03244438766340730.983777806168296
250.00806792496144460.01613584992288920.991932075038555
260.004391781421473150.00878356284294630.995608218578527
270.002995156638864910.005990313277729830.997004843361135
280.002113884861999710.004227769723999410.997886115138
290.001862743832352010.003725487664704020.998137256167648
300.001221032737228990.002442065474457980.998778967262771
310.001113641435688970.002227282871377930.99888635856431
320.001112554222524780.002225108445049560.998887445777475
330.001885790549567290.003771581099134580.998114209450433
340.0009651816322625130.001930363264525030.999034818367738
350.0008657965112211190.001731593022442240.99913420348878
360.001094464100954470.002188928201908950.998905535899046
370.0007030532610314950.001406106522062990.999296946738969
380.0004044311148243050.000808862229648610.999595568885176
390.0005287020320058320.001057404064011660.999471297967994
400.0003446190509863960.0006892381019727910.999655380949014
410.0004569547415426520.0009139094830853040.999543045258457
420.0007762261343155930.001552452268631190.999223773865684
430.0004649760444776270.0009299520889552540.999535023955522
440.0003504551476750010.0007009102953500010.999649544852325
450.000710843511050.00142168702210.99928915648895
460.0004087469316390500.0008174938632781010.999591253068361
470.0002732768379682170.0005465536759364340.999726723162032
480.000742924306343120.001485848612686240.999257075693657
490.0005966886307459760.001193377261491950.999403311369254
500.0006175428047682370.001235085609536470.999382457195232
510.0008683825696834740.001736765139366950.999131617430317
520.0005423918561415810.001084783712283160.999457608143858
530.00071455800350430.00142911600700860.999285441996496
540.0009133667237597690.001826733447519540.99908663327624
550.001592573236569350.003185146473138690.99840742676343
560.001110996979775350.00222199395955070.998889003020225
570.0009293384778440180.001858676955688040.999070661522156
580.002340157853242820.004680315706485640.997659842146757
590.002805093029443860.005610186058887730.997194906970556
600.003862022671035950.007724045342071890.996137977328964
610.002474895669496740.004949791338993490.997525104330503
620.002379944715724150.00475988943144830.997620055284276
630.002605901311822050.005211802623644110.997394098688178
640.003928251255220850.00785650251044170.99607174874478
650.005889591226098230.01177918245219650.994110408773902
660.004704734886817660.009409469773635320.995295265113182
670.005688551342451270.01137710268490250.994311448657549
680.005111686190902990.01022337238180600.994888313809097
690.004012056615888960.008024113231777930.995987943384111
700.003648506835255390.007297013670510780.996351493164745
710.006864810052359640.01372962010471930.99313518994764
720.006504941742122360.01300988348424470.993495058257878
730.008765394512577720.01753078902515540.991234605487422
740.009074205494805980.01814841098961200.990925794505194
750.01894440082396030.03788880164792070.98105559917604
760.02191448174526740.04382896349053480.978085518254733
770.01517772855150920.03035545710301850.98482227144849
780.01010269454273560.02020538908547110.989897305457264
790.006922909573707390.01384581914741480.993077090426293
800.005455546727401670.01091109345480330.994544453272598
810.002364116988803780.004728233977607550.997635883011196


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level430.651515151515151NOK
5% type I error level580.878787878787879NOK
10% type I error level590.893939393939394NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/10b7sv1258648930.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/10b7sv1258648930.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/222y81258648930.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/222y81258648930.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/37q9q1258648930.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/37q9q1258648930.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/6988r1258648930.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/6988r1258648930.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/7phvj1258648930.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t12586491378iybqaft9mcpgav/7phvj1258648930.ps (open in new window)


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


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