Home » date » 2009 » Dec » 28 »

paper multiple regressie 1 vertraging

*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, 28 Dec 2009 08:31:59 -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/28/t126201436533a7p5seutmdxys.htm/, Retrieved Mon, 28 Dec 2009 16:32:57 +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/28/t126201436533a7p5seutmdxys.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 «
104.6 0 111.6 91.6 0 104.6 98.3 0 91.6 97.7 0 98.3 106.3 0 97.7 102.3 0 106.3 106.6 0 102.3 108.1 0 106.6 93.8 0 108.1 88.2 0 93.8 108.9 0 88.2 114.2 0 108.9 102.5 0 114.2 94.2 0 102.5 97.4 0 94.2 98.5 0 97.4 106.5 0 98.5 102.9 0 106.5 97.1 0 102.9 103.7 0 97.1 93.4 0 103.7 85.8 0 93.4 108.6 0 85.8 110.2 0 108.6 101.2 0 110.2 101.2 0 101.2 96.9 0 101.2 99.4 0 96.9 118.7 0 99.4 108.0 0 118.7 101.2 0 108.0 119.9 0 101.2 94.8 0 119.9 95.3 0 94.8 118.0 0 95.3 115.9 0 118.0 111.4 0 115.9 108.2 0 111.4 108.8 0 108.2 109.5 0 108.8 124.8 0 109.5 115.3 0 124.8 109.5 0 115.3 124.2 0 109.5 92.9 0 124.2 98.4 0 92.9 120.9 0 98.4 111.7 0 120.9 116.1 0 111.7 109.4 0 116.1 111.7 0 109.4 114.3 0 111.7 133.7 0 114.3 114.3 0 133.7 126.5 0 114.3 131.0 0 126.5 104.0 0 131.0 108.9 0 104.0 128.5 0 108.9 132.4 0 128.5 128.0 0 132.4 116.4 0 128.0 120.9 0 116.4 118.6 0 120.9 133.1 0 118.6 121.1 0 133.1 127.6 0 121.1 135.4 0 127.6 114.9 0 135.4 114.3 0 114.9 128.9 0 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
y[t] = + 63.9736688660687 -14.0674255209321dummy[t] + 0.403238814946053y1[t] -8.55634213725512M1[t] -13.2326064261404M2[t] -8.61512575581727M3[t] -8.80825188673433M4[t] + 2.77686079729466M5[t] -9.53736803868769M6[t] -8.4140472610244M7[t] + 1.86847421219370M8[t] -22.5360482605337M9[t] -16.6756633737586M10[t] + 6.90440569704908M11[t] + 0.252377234387815t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)63.973668866068710.2325926.25200
dummy-14.06742552093212.782781-5.05523e-061e-06
y10.4032388149460530.0955954.21826.4e-053.2e-05
M1-8.556342137255122.740486-3.12220.0024990.001249
M2-13.23260642614042.805171-4.71721e-055e-06
M3-8.615125755817273.07202-2.80440.0063250.003163
M4-8.808251886734333.014562-2.92190.0045210.00226
M52.776860797294663.0000810.92560.357440.17872
M6-9.537368038687692.735128-3.4870.0007960.000398
M7-8.41404726102442.85943-2.94260.0042580.002129
M81.868474212193702.9194540.640.5239960.261998
M9-22.53604826053372.736693-8.234800
M10-16.67566337375863.437597-4.8516e-063e-06
M116.904405697049083.4316452.0120.0475880.023794
t0.2523772343878150.0468075.39191e-060


Multiple Linear Regression - Regression Statistics
Multiple R0.929128009262835
R-squared0.863278857596718
Adjusted R-squared0.839352657676144
F-TEST (value)36.0809012907385
F-TEST (DF numerator)14
F-TEST (DF denominator)80
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.27952370992904
Sum Squared Residuals2229.86964829623


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1104.6100.6711557111813.9288442888192
291.693.424596952061-1.82459695206105
398.393.05235026247345.24764973752663
497.795.81330142608271.88669857391732
5106.3107.408848055532-1.10884805553186
6102.398.81485026247343.48514973752663
7106.698.57759301474028.02240698525974
8108.1110.846418626614-2.74641862661418
993.887.29913161069376.5008683893063
1088.287.6455786781280.554421321871909
11108.9109.219887619626-0.319887619625647
12114.2110.9149026263483.28509737365229
13102.5104.748103442694-2.24810344269445
1494.295.6063222533282-1.40632225332818
1597.497.1292979939870.270702006013113
1698.598.4789133052850.0210866947149881
17106.5110.759965920142-4.25996592014248
18102.9101.9240248381160.975975161883644
1997.1101.848063116362-4.74806311636168
20103.7110.044176697280-6.34417669728047
2193.488.55340763758494.84659236241516
2285.890.5128099648035-4.71280996480347
23108.6111.280641276409-2.68064127640892
24110.2113.822457794518-3.62245779451765
25101.2106.163674995564-4.96367499556402
26101.298.11063860655213.08936139344791
2796.9102.980496511263-6.08049651126304
2899.4101.305820710466-1.90582071046576
29118.7114.1514076662484.54859233375229
30108109.872065193112-1.87206519311199
31101.2106.933107885240-5.73310788524032
32119.9114.7259826512135.17401734878693
3394.898.1144032523647-3.31440325236468
3495.394.10587111838171.19412888161827
35118118.139936831050-0.139936831050195
36115.9120.641429467664-4.74142946766433
37111.4111.490663053410-0.0906630534103092
38108.2105.2522013316562.94779866834439
39108.8108.831695028539-0.0316950285391993
40109.5109.1328894209780.367110579022422
41124.8121.2526465098573.54735349014337
42115.3115.360348776937-0.0603487769366968
43109.5112.905278047000-3.40527804700029
44124.2121.1013916279193.0986083720809
4592.9102.876856969287-9.9768569692865
4698.496.3682441826382.03175581736200
47120.9122.418503970037-1.51850397003673
48111.7124.839348843662-13.1393488436617
49116.1112.8255868432913.27441315670932
50109.4110.175950574556-0.77595057455584
51111.7112.344108419128-0.644108419128242
52114.3113.3308087969750.96919120302508
53133.7126.2167196342517.48328036574852
54114.3121.977701042610-7.67770104261034
55126.5115.53056604470810.9694339552920
56131130.9849782946560.0150217053442220
57104108.647407723573-4.64740772357345
58108.9103.8727218411935.02727815880703
59128.5129.681038339624-1.18103833962408
60132.4130.9324906499051.46750935009455
61128124.2011571253283.79884287467225
62116.4118.003019285068-1.60301928506765
63120.9118.1953069364042.70469306359561
64118.6120.069132707132-1.46913270713240
65133.1130.9791733511732.12082664882673
66121.1124.764284566296-3.6642845662965
67127.6121.3011167989956.29888320100503
68135.4134.4570678037500.94293219624979
69114.9113.4501853219901.44981467801015
70114.3111.2965517367593.00344826324126
71128.9134.887054752987-5.98705475298655
72138.9134.1223129885384.77768701146235
73129.4129.850736235131-0.450736235130868
74115121.596080438646-6.59608043864591
75128120.6592994081347.3407005918663
76127125.9606551059031.03934489409686
77128.8137.394906209374-8.5949062093739
78137.9126.05888447468211.8411155253177
79128.4131.104055702742-2.70405570274243
80135.9137.808185668361-1.90818566836084
81122.2116.6803315421175.51966845788334
82113.1117.268721898519-4.16872189851871
83136.2123.36426946677312.8357305332270
84138126.02705762936611.9729423706345
85115.2118.448922593401-3.24892259340111
86111104.8311905581346.16880944186635
8799.2108.007445440071-8.80744544007117
88102.4103.308478527179-0.90847852717851
89112.7116.436332653423-3.73633265342269
90105.5108.527840845772-3.02784084577249
9198.3107.000219390212-8.70021939021202
92116.4114.6317986302061.76820136979365
9397.497.7782759423903-0.378275942390318
9493.396.2295005795783-2.92950057957829
95117.4118.408667743495-1.00866774349490


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.0006873944894223480.001374788978844700.999312605510578
190.1362934646177800.2725869292355610.86370653538222
200.1007306288757670.2014612577515340.899269371124233
210.05361732490670260.1072346498134050.946382675093297
220.02524207676716980.05048415353433960.97475792323283
230.01137672206979150.02275344413958310.988623277930208
240.005776267619748710.01155253523949740.994223732380251
250.002387295937828350.004774591875656690.997612704062172
260.02482463620648220.04964927241296450.975175363793518
270.01366527881915950.02733055763831910.98633472118084
280.007492311678192760.01498462335638550.992507688321807
290.05490836455708060.1098167291141610.94509163544292
300.03601813062136440.07203626124272870.963981869378636
310.02567748235338050.05135496470676090.97432251764662
320.09079204547674740.1815840909534950.909207954523253
330.06301012995237720.1260202599047540.936989870047623
340.05672975176689630.1134595035337930.943270248233104
350.05078465220973890.1015693044194780.949215347790261
360.03581790344061970.07163580688123930.96418209655938
370.02760518619528730.05521037239057470.972394813804713
380.02958020622167840.05916041244335690.970419793778322
390.02221160660622880.04442321321245760.977788393393771
400.01567691422708300.03135382845416600.984323085772917
410.01544305166236350.03088610332472690.984556948337637
420.009714016345339960.01942803269067990.99028598365466
430.006211976194616530.01242395238923310.993788023805383
440.00559499147193760.01118998294387520.994405008528062
450.01409385805743730.02818771611487450.985906141942563
460.009668358424290170.01933671684858030.99033164157571
470.006195329903783330.01239065980756670.993804670096217
480.03889163236245440.07778326472490870.961108367637546
490.02937369289622220.05874738579244430.970626307103778
500.0199783740669010.0399567481338020.9800216259331
510.01389650229978940.02779300459957890.98610349770021
520.009651756951684940.01930351390336990.990348243048315
530.01764064625311990.03528129250623970.98235935374688
540.02353413914280810.04706827828561620.976465860857192
550.07340514187147750.1468102837429550.926594858128522
560.05751278375908790.1150255675181760.942487216240912
570.05946544570263060.1189308914052610.94053455429737
580.05356176294493510.1071235258898700.946438237055065
590.04211298515839390.08422597031678770.957887014841606
600.05316101931756560.1063220386351310.946838980682434
610.04368836632549360.08737673265098720.956311633674506
620.03117620284443020.06235240568886040.96882379715557
630.02130337387955220.04260674775910450.978696626120448
640.01487620566515470.02975241133030940.985123794334845
650.01085990705351880.02171981410703750.989140092946481
660.01627457071553530.03254914143107070.983725429284465
670.02057533451218730.04115066902437470.979424665487813
680.01292749790617890.02585499581235780.98707250209382
690.009478137034258770.01895627406851750.990521862965741
700.005766844355245680.01153368871049140.994233155644754
710.03242757424382750.0648551484876550.967572425756173
720.06411832348577360.1282366469715470.935881676514226
730.04804733061525630.09609466123051260.951952669384744
740.5585447278362360.8829105443275280.441455272163764
750.4389231349050560.8778462698101120.561076865094944
760.3120490425133160.6240980850266320.687950957486684
770.4090148390024390.8180296780048770.590985160997561


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0333333333333333NOK
5% type I error level290.483333333333333NOK
10% type I error level420.7NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/10pffi1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/10pffi1262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/1ta311262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/1ta311262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/2t6mp1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/2t6mp1262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/3byn31262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/3byn31262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/42yib1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/42yib1262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/595sy1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/595sy1262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/61j141262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/61j141262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/790dz1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/790dz1262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/8vhwj1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/8vhwj1262014312.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/92bqt1262014312.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t126201436533a7p5seutmdxys/92bqt1262014312.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