Home » date » 2009 » Dec » 15 »

Multiple Regression

*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: Mon, 14 Dec 2009 16:44:49 -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/15/t1260834383xmcnqtgusbit4kr.htm/, Retrieved Tue, 15 Dec 2009 00:46:35 +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/15/t1260834383xmcnqtgusbit4kr.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 «
107.1 0 96.3 87.0 96.8 115.2 0 107.1 96.3 87.0 106.1 0 115.2 107.1 96.3 89.5 0 106.1 115.2 107.1 91.3 0 89.5 106.1 115.2 97.6 0 91.3 89.5 106.1 100.7 0 97.6 91.3 89.5 104.6 0 100.7 97.6 91.3 94.7 0 104.6 100.7 97.6 101.8 0 94.7 104.6 100.7 102.5 0 101.8 94.7 104.6 105.3 0 102.5 101.8 94.7 110.3 0 105.3 102.5 101.8 109.8 0 110.3 105.3 102.5 117.3 0 109.8 110.3 105.3 118.8 0 117.3 109.8 110.3 131.3 0 118.8 117.3 109.8 125.9 0 131.3 118.8 117.3 133.1 0 125.9 131.3 118.8 147.0 0 133.1 125.9 131.3 145.8 0 147.0 133.1 125.9 164.4 0 145.8 147.0 133.1 149.8 0 164.4 145.8 147.0 137.7 0 149.8 164.4 145.8 151.7 0 137.7 149.8 164.4 156.8 0 151.7 137.7 149.8 180.0 0 156.8 151.7 137.7 180.4 0 180.0 156.8 151.7 170.4 0 180.4 180.0 156.8 191.6 0 170.4 180.4 180.0 199.5 0 191.6 170.4 180.4 218.2 0 199.5 191.6 170.4 217.5 0 218.2 199.5 191.6 205.0 0 217.5 218.2 199.5 194.0 0 205.0 217.5 218.2 199.3 0 194.0 205.0 217.5 219.3 0 199.3 194.0 205.0 211.1 0 219.3 199.3 194.0 215.2 0 211.1 219.3 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 12.0629978135911 + 4.10249057534315D[t] + 1.26715012400874Y1[t] -0.0818377397940402Y2[t] -0.306104094987486Y3[t] + 8.12828354888152M1[t] + 1.82765873193793M2[t] + 8.39071715010505M3[t] + 3.13299489510839M4[t] + 6.63553113116698M5[t] + 8.96123770976727M6[t] -0.419420596737340M7[t] -5.56120073377028M8[t] -10.1703238068274M9[t] -3.70759284651021M10[t] + 1.00728573412857M11[t] + 0.248197689412285t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)12.06299781359119.9980031.20650.232050.116025
D4.102490575343157.9059340.51890.6056110.302806
Y11.267150124008740.12014610.546800
Y2-0.08183773979404020.201534-0.40610.6860430.343021
Y3-0.3061040949874860.124114-2.46630.016340.00817
M18.1282835488815210.6370380.76410.4475870.223793
M21.8276587319379310.7192730.17050.8651530.432577
M38.3907171501050510.8237290.77520.4410680.220534
M43.1329948951083910.865590.28830.7740180.387009
M56.6355311311669810.9720580.60480.5474730.273736
M68.9612377097672710.9335320.81960.415480.20774
M7-0.41942059673734011.029918-0.0380.9697860.484893
M8-5.5612007337702811.000799-0.50550.6149250.307463
M9-10.170323806827410.810949-0.94070.3503740.175187
M10-3.7075928465102111.080287-0.33460.7390120.369506
M111.0072857341285711.0275440.09130.9275060.463753
t0.2481976894122850.1823911.36080.1783510.089175


Multiple Linear Regression - Regression Statistics
Multiple R0.980859105002279
R-squared0.962084583865872
Adjusted R-squared0.95260572983234
F-TEST (value)101.497984931769
F-TEST (DF numerator)16
F-TEST (DF denominator)64
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.0574718264531
Sum Squared Residuals23243.9828746274


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1107.1105.7152762370561.38472376294368
2115.2115.586799599612-0.38679959961207
3106.1128.931356038502-22.8313560385025
489.5108.421955426242-18.9219554262423
591.389.40327755589531.89672244410471
697.698.4021057920908-0.802105792090774
7100.7102.186711001416-1.48671100141647
8104.6100.1547288065434.44527119345701
994.798.5535361147495-3.85353611474951
10101.891.451588657134510.3484113428655
11102.5105.027818461157-2.52781846115744
12105.3107.605118091086-2.30511809108570
13110.3117.298994184337-6.99899418433698
14109.8117.138899138935-7.3388991389348
15117.3122.050300019575-4.75030001957469
16118.8125.054799779015-6.25479977901542
17131.3130.2455278895381.05447211046218
18125.9146.240271385562-20.3402713855624
19133.1128.7830722089164.31692779108381
20147129.62859326170317.3714067382973
21145.8143.9447849881951.85521501180541
22164.4145.79363942206718.6063605779335
23149.8170.169066366107-20.3690663661069
24137.7149.754729464679-12.0547294646789
25151.7138.29998903669313.4000109633073
26156.8155.4470200836091.35297991639111
27180171.2788730158658.72112698413508
28180.4190.964401524509-10.5644015245088
29170.4191.762229051925-21.3622290519252
30191.6174.53028198022317.0697180197768
31199.5192.9573397520616.54266024793854
32218.2199.40032415035118.7996758496490
33217.5211.5991811275625.90081887243807
34205213.474516605936-8.47451660593562
35194196.931356167467-2.93135616746732
36199.3183.47086137257215.8291386274283
37219.3203.2897545931916.0102454068102
38211.1225.513734969787-14.4137349697872
39215.2218.675253561180-3.47525356118045
40240.2213.41003207059326.7899679294067
41242.2251.014037942024-8.81403794202438
42240.7252.821272173755-12.1212721737547
43255.4233.97180851637421.4281914836260
44253247.2158813113985.78411868860205
45218.2239.069936997641-20.869936997641
46203.7197.3807217110566.31927828894391
47205.6187.55272435578318.0472756442170
48215.6201.04029127926114.5597087207386
49188.5226.371291429352-37.8712914293525
50202.9184.57912076276818.3208792372322
51214208.7941004546175.20589954538335
52230.3224.9668997866565.33310021334409
53230244.055882853936-14.0558828539356
54241241.517931471742-0.51793147174156
55259.6245.46166736773114.1383326322694
56247.8263.328693317434-15.5286933174343
57270.3239.12606946545531.1739305345452
58289.7269.62002506818320.0799749318167
59322.7300.9364929194921.7635070805097
60315333.518364677839-18.5183646778394
61320.2323.498725105305-3.29872510530546
62329.5314.56419408444714.9358059155534
63360.6335.09139162978225.5086083702181
64382.2367.1374036468515.0625963531502
65435.4392.86665845993142.5333415400689
66464451.56541679154612.4345832084537
67468.8467.7078335123311.09216648766877
68403450.271274448509-47.2712744485087
69351.6353.384472637436-1.78447263743551
70252298.879508535624-46.8795085356239
71188201.982541729995-13.9825417299951
72146.5144.0106351145632.48936488543716
73152.9135.52596941406617.3740305859338
74148.1160.570231360843-12.4702313608426
75165.1173.478725280479-8.37872528047889
76177188.444507766135-11.4445077661345
77206.1207.352386246751-1.25238624675061
78244.9240.6227204050814.27727959491894
79228.6274.63156764117-46.03156764117
80253.4237.00050470406216.3994952959376
81241.1253.522018668963-12.4220186689626


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.1255494227882420.2510988455764840.874450577211758
210.049629789601540.099259579203080.95037021039846
220.02166905655898110.04333811311796210.97833094344102
230.02053025163428580.04106050326857150.979469748365714
240.008521633708660070.01704326741732010.99147836629134
250.003234566053661820.006469132107323640.996765433946338
260.001835594449859150.003671188899718310.99816440555014
270.003201580244713570.006403160489427140.996798419755286
280.001535532208820110.003071064417640230.99846446779118
290.001544243897195050.003088487794390090.998455756102805
300.003348589714861370.006697179429722740.996651410285139
310.001512818555075270.003025637110150540.998487181444925
320.001018165351389390.002036330702778790.99898183464861
330.0004442311219418180.0008884622438836360.999555768878058
340.000672152665228710.001344305330457420.999327847334771
350.0003348096237142040.0006696192474284080.999665190376286
360.0001450170227992820.0002900340455985640.9998549829772
376.73814050148104e-050.0001347628100296210.999932618594985
386.8115814751985e-050.000136231629503970.999931884185248
393.69029308455588e-057.38058616911175e-050.999963097069154
406.17858702644598e-050.0001235717405289200.999938214129735
413.79029761361041e-057.58059522722082e-050.999962097023864
423.50038478885096e-057.00076957770192e-050.999964996152112
432.19425160535088e-054.38850321070175e-050.999978057483947
442.46594667591877e-054.93189335183755e-050.99997534053324
450.0001268840001353880.0002537680002707760.999873115999865
460.0001750714199064360.0003501428398128710.999824928580094
470.0001141319149201650.000228263829840330.99988586808508
489.97179702781939e-050.0001994359405563880.999900282029722
490.001603178495145610.003206356990291220.998396821504854
500.001249825457504920.002499650915009830.998750174542495
510.0008355854113762880.001671170822752580.999164414588624
520.0006045634754481130.001209126950896230.999395436524552
530.0003221877223377810.0006443754446755610.999677812277662
540.0001396249015013380.0002792498030026750.999860375098499
555.5328327126079e-050.0001106566542521580.999944671672874
560.0002593171990877980.0005186343981755960.999740682800912
570.001943269827312450.003886539654624910.998056730172687
580.000959126371355290.001918252742710580.999040873628645
590.0009734354880219130.001946870976043830.999026564511978
600.0004983527728853650.000996705545770730.999501647227115
610.01086304372447470.02172608744894930.989136956275525


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level360.857142857142857NOK
5% type I error level400.952380952380952NOK
10% type I error level410.976190476190476NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/102kwe1260834281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/102kwe1260834281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/1ij9i1260834280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/1ij9i1260834280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/2vm5f1260834280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/2vm5f1260834280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/3wfjo1260834280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/3wfjo1260834280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/4vg9b1260834280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/4vg9b1260834280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/5nvyf1260834280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/5nvyf1260834280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/6rpwm1260834280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/6rpwm1260834280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/7363e1260834281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/7363e1260834281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/8mnh01260834281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/8mnh01260834281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/9egev1260834281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260834383xmcnqtgusbit4kr/9egev1260834281.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by