Home » date » 2009 » Nov » 20 »

*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: Fri, 20 Nov 2009 07:12:55 -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/20/t1258726546tm5ozhp193wsv3m.htm/, Retrieved Fri, 20 Nov 2009 15:15:58 +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/20/t1258726546tm5ozhp193wsv3m.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:
Rob_WS7_4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,2 123297 116476 109375 106370 103,7 114813 123297 116476 109375 106,2 117925 114813 123297 116476 107,7 126466 117925 114813 123297 109,9 131235 126466 117925 114813 111,7 120546 131235 126466 117925 114,9 123791 120546 131235 126466 116 129813 123791 120546 131235 118,3 133463 129813 123791 120546 120,4 122987 133463 129813 123791 126 125418 122987 133463 129813 128,1 130199 125418 122987 133463 130,1 133016 130199 125418 122987 130,8 121454 133016 130199 125418 133,6 122044 121454 133016 130199 134,2 128313 122044 121454 133016 135,5 131556 128313 122044 121454 136,2 120027 131556 128313 122044 139,1 123001 120027 131556 128313 139 130111 123001 120027 131556 139,6 132524 130111 123001 120027 138,7 123742 132524 130111 123001 140,9 124931 123742 132524 130111 141,3 133646 124931 123742 132524 141,8 136557 133646 124931 123742 142 127509 136557 133646 124931 144,5 128945 127509 136557 133646 144,6 137191 128945 127509 136557 145,5 139716 137191 128945 127509 146,8 129083 1397 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
HFCE[t] = + 71477.0285422472 -421.673162748552RPI[t] -0.104860415997025`HFCE-1`[t] + 0.870028900662522`HFCE-2`[t] + 0.0742366888686009`HFCE-3`[t] + 2800.16997442852Q1[t] -13222.0530399475Q2[t] -14003.3472016326Q3[t] + 695.827997756174t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)71477.028542247211082.7560066.449400
RPI-421.67316274855279.354233-5.31381e-060
`HFCE-1`-0.1048604159970250.158377-0.66210.5098620.254931
`HFCE-2`0.8700289006625220.1555985.591500
`HFCE-3`0.07423668886860090.1617870.45890.6476150.323807
Q12800.169974428522548.7883471.09860.275310.137655
Q2-13222.05303994752824.834412-4.68061.2e-056e-06
Q3-14003.34720163262380.838002-5.881700
t695.827997756174124.3455165.595900


Multiple Linear Regression - Regression Statistics
Multiple R0.998029220778848
R-squared0.996062325528435
Adjusted R-squared0.995658461480069
F-TEST (value)2466.33076046058
F-TEST (DF numerator)8
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2004.35192048201
Sum Squared Residuals313359276.448913


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1123297122298.601910029998.398089971375
2114813112447.2738881732365.72611182688
3117925118658.882445767-733.882445766559
4126466125524.265548002941.73445199829
5131235129274.6756196101960.32438039044
6120546120351.131002470194.868997529791
7123791124820.387091224-1029.38709122434
8129813129769.74561171243.2543882879276
9133463133694.153699774-231.153699774423
10122987122579.716618162407.283381838195
11125418124854.057288611563.942711389308
12130199129569.344325969629.65567403141
13133016133057.995028698-41.9950286975279
14121454121481.114570997-27.1145709971728
15122044124233.156703777-2189.15670377696
16128313128767.310963161-454.310963161168
17131556130712.756330580843.243669420483
18120027120249.138595643-222.138595643181
19123001123436.649523139-435.649523138921
20130111128076.323547892034.67645210992
21132524132305.351229291218.648770708957
22123742123512.119271750229.880728250156
23124931126047.058918214-1116.05891821434
24133646132991.425142505654.574857495075
25136557135745.245769145811.75423085505
26127509127699.836741347-190.836741346731
27128945130688.591587806-1743.59158780591
28137191137539.101421650-348.101421650137
29139716140368.582497518-652.582497517941
30129083131510.102019011-2427.10201901097
31131604134210.077829541-2606.07782954062
32139413139412.660993750.339006249869755
33143125143409.453490695-284.453490694735
34133948134337.684457606-389.684457606482
35137116138222.604904694-1106.60490469414
36144864144754.39172508109.608274919903
37149277149133.406811198143.593188802141
38138796139940.922684978-1144.92268497841
39143258144525.775619595-1267.77561959477
40150034149333.387498815700.612501184725
41154708154674.67039935533.3296006446181
42144888144873.88115361214.1188463878694
43148762149122.667671999-360.667671998551
44156500155008.0755177061491.92448229352
45161088160038.9800534591049.01994654085
46152772151546.5332281731225.46677182748
47158011156140.2106854321870.78931456771
48163318163353.292439757-35.2924397574393
49169969169727.517494887241.482505112679
50162269158414.6940263463854.3059736541
51165765164010.0025872061754.99741279439
52170600172010.609506008-1410.60950600789
53174681177005.765420252-2324.76542025151
54166364165801.890877485562.109122514546
55170240169612.557485915627.44251408479
56176150176930.055957087-780.055957087267
57182056182645.468980927-589.46898092703
58172218172087.213240124130.786759875881
59177856177724.979725528131.020274471795
60182253183459.045561617-1206.04556161673
61188090189994.177621111-1904.17762111082
62176863177878.102721622-1015.10272162209
63183273183489.168220442-216.168220442115
64187969187970.856657104-1.85665710360944
65194650195254.019584062-604.019584061857
66183036183409.059174851-373.059174851137
67189516189648.537551693-132.537551693487
68193805193595.836442435209.163557565243
69200499200658.678769234-159.678769234043
70188142188632.119245366-490.119245365938
71193732195057.106903458-1325.10690345774
72197126198620.934433299-1494.93443329882
73205140205243.314464920-103.314464920399
74191751192233.592672750-482.592672750217
75196700199342.78479719-2642.78479718981
76199784201752.277294759-1968.27729475926
77207360207351.1901043548.80989564570689
78196101193606.2620185972494.73798140276
79200824200130.182741199693.817258801417
80205743204763.525427944979.474572056214
81212489209878.5130922762610.48690772446
82200810197926.8466416522883.15335834799
83203683203529.403229022153.596770977609
84207286207381.53398375-95.533983749771
85210910212933.481628626-2023.48162862647
86194915202514.765149283-7599.76514928332
87217920206810.15648854911109.8435114512


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
120.07251928017995150.1450385603599030.927480719820049
130.02269881081895510.04539762163791030.977301189181045
140.00653361734723540.01306723469447080.993466382652765
150.001825252925568230.003650505851136470.998174747074432
160.001994634322611790.003989268645223580.998005365677388
170.0008689200705758870.001737840141151770.999131079929424
180.0002744540769322420.0005489081538644850.999725545923068
190.0002722542024374090.0005445084048748170.999727745797563
200.0001873613001020170.0003747226002040340.999812638699898
219.98074989927117e-050.0001996149979854230.999900192501007
227.55750785327577e-050.0001511501570655150.999924424921467
237.06770424835579e-050.0001413540849671160.999929322957516
244.74754385948592e-059.49508771897184e-050.999952524561405
252.00542256163889e-054.01084512327779e-050.999979945774384
267.39743552483052e-061.47948710496610e-050.999992602564475
273.30913344421007e-066.61826688842014e-060.999996690866556
281.17629370834936e-062.35258741669871e-060.999998823706292
295.21892190929217e-071.04378438185843e-060.999999478107809
304.83192267974532e-079.66384535949063e-070.999999516807732
311.64789645768043e-073.29579291536086e-070.999999835210354
327.31198413336719e-081.46239682667344e-070.999999926880159
332.49329138049039e-084.98658276098079e-080.999999975067086
341.42147205388678e-082.84294410777356e-080.99999998578528
351.21874322154418e-082.43748644308837e-080.999999987812568
364.60648940167522e-099.21297880335043e-090.99999999539351
372.35840265154597e-094.71680530309194e-090.999999997641597
388.17807810211445e-101.63561562042289e-090.999999999182192
391.65029606767771e-093.30059213535542e-090.999999998349704
406.13997130505105e-101.22799426101021e-090.999999999386003
413.05871321283437e-106.11742642566875e-100.999999999694129
421.49757838197939e-102.99515676395879e-100.999999999850242
433.19187402645567e-106.38374805291133e-100.999999999680813
441.93428854482545e-103.86857708965091e-100.999999999806571
459.24310412399491e-111.84862082479898e-100.999999999907569
468.4732741324961e-111.69465482649922e-100.999999999915267
473.79350052273352e-107.58700104546703e-100.99999999962065
481.00883063706315e-092.01766127412629e-090.99999999899117
493.86411488055981e-107.72822976111961e-100.999999999613588
502.15927901678716e-094.31855803357431e-090.99999999784072
519.8325007440201e-101.96650014880402e-090.99999999901675
527.59156197428184e-091.51831239485637e-080.999999992408438
539.88689326604604e-091.97737865320921e-080.999999990113107
544.10450668708562e-098.20901337417125e-090.999999995895493
551.92029747844126e-093.84059495688253e-090.999999998079703
561.55614008162405e-093.11228016324810e-090.99999999844386
576.76502635558374e-101.35300527111675e-090.999999999323497
583.48630748263141e-106.97261496526281e-100.99999999965137
592.71947115924948e-105.43894231849897e-100.999999999728053
607.3166130241806e-101.46332260483612e-090.999999999268339
613.64189904698123e-107.28379809396245e-100.99999999963581
622.27966179177347e-104.55932358354695e-100.999999999772034
635.65477209248383e-101.13095441849677e-090.999999999434523
644.10413636503102e-108.20827273006203e-100.999999999589586
652.52059574222443e-105.04119148444887e-100.99999999974794
661.25652003577676e-102.51304007155352e-100.999999999874348
677.55006972673888e-101.51001394534778e-090.999999999244993
681.78135085682623e-093.56270171365247e-090.99999999821865
691.62514006563992e-093.25028013127983e-090.99999999837486
705.97661316806998e-101.19532263361400e-090.999999999402339
714.68921464210029e-109.37842928420059e-100.999999999531079
723.00771788256793e-106.01543576513586e-100.999999999699228
732.16630243737373e-104.33260487474747e-100.99999999978337
741.97753013229126e-103.95506026458252e-100.999999999802247
751.12866245505971e-102.25732491011942e-100.999999999887134


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/1yij11258726369.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/1yij11258726369.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/2kl4a1258726369.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/2kl4a1258726369.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/3by4t1258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/3by4t1258726370.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/4lduo1258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/4lduo1258726370.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/5y4ti1258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/5y4ti1258726370.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/612671258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/612671258726370.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/7u6re1258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/7u6re1258726370.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/8dpfb1258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/8dpfb1258726370.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/962yq1258726370.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726546tm5ozhp193wsv3m/962yq1258726370.ps (open in new window)


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