Home » date » 2009 » Dec » 26 »

paper 2 multiple regressie

*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: Sat, 26 Dec 2009 11:49:42 -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/26/t12618534761mjam9tjwkpbab7.htm/, Retrieved Sat, 26 Dec 2009 19:51:28 +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/26/t12618534761mjam9tjwkpbab7.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 «
111.6 0 104.6 0 91.6 0 98.3 0 97.7 0 106.3 0 102.3 0 106.6 0 108.1 0 93.8 0 88.2 0 108.9 0 114.2 0 102.5 0 94.2 0 97.4 0 98.5 0 106.5 0 102.9 0 97.1 0 103.7 0 93.4 0 85.8 0 108.6 0 110.2 0 101.2 0 101.2 0 96.9 0 99.4 0 118.7 0 108.0 0 101.2 0 119.9 0 94.8 0 95.3 0 118.0 0 115.9 0 111.4 0 108.2 0 108.8 0 109.5 0 124.8 0 115.3 0 109.5 0 124.2 0 92.9 0 98.4 0 120.9 0 111.7 0 116.1 0 109.4 0 111.7 0 114.3 0 133.7 0 114.3 0 126.5 0 131.0 0 104.0 0 108.9 0 128.5 0 132.4 0 128.0 0 116.4 0 120.9 0 118.6 0 133.1 0 121.1 0 127.6 0 135.4 0 114.9 0 114.3 0 128.9 0 138.9 0 129.4 0 115.0 0 128.0 1 127.0 1 128.8 1 137.9 1 128.4 1 135.9 1 122.2 1 113.1 1 136.2 1 138.0 1 115.2 1 111.0 1 99.2 1 102.4 1 112.7 1 105.5 1 98.3 1 116.4 1 97.4 1 93.3 1 117.4 1
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
Yt[t] = + 103.814355265646 -10.6915674040462Xt_dummy[t] + 3.38103374929093M1[t] -5.04782803932688M2[t] -13.0891898279448M3[t] -10.3441056910569M4[t] -9.9354674796748M5[t] + 1.84817073170732M6[t] -5.68069105691055M7[t] -7.55955284552844M8[t] + 1.99908536585367M9[t] -18.5172764227642M10[t] -20.8961382113821M11[t] + 0.366361788617887t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)103.8143552656463.42985830.267800
Xt_dummy-10.69156740404622.89231-3.69650.0003940.000197
M13.381033749290934.0706780.83060.4086210.204311
M2-5.047828039326884.068623-1.24070.2182650.109132
M3-13.08918982794484.067024-3.21840.0018470.000924
M4-10.34410569105694.071745-2.54050.0129570.006478
M5-9.93546747967484.06832-2.44220.016750.008375
M61.848170731707324.065350.45460.6505870.325294
M7-5.680691056910554.062834-1.39820.1658210.08291
M8-7.559552845528444.060775-1.86160.0662420.033121
M91.999085365853674.0591730.49250.6236920.311846
M10-18.51727642276424.058028-4.56311.7e-059e-06
M11-20.89613821138214.057341-5.15022e-061e-06
t0.3663617886178870.0431128.497900


Multiple Linear Regression - Regression Statistics
Multiple R0.817912848421904
R-squared0.668981427613633
Adjusted R-squared0.616502873454818
F-TEST (value)12.7477107236818
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value9.43689570931383e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.1142235003832
Sum Squared Residuals5398.93108716203


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1111.6107.5617508035554.03824919644507
2104.699.49925080355455.10074919644548
391.691.8242508035545-0.224250803554514
498.394.93569672906033.36430327093967
597.795.71069672906031.98930327093968
6106.3107.860696729060-1.56069672906033
7102.3100.6981967290601.60180327093973
8106.699.18569672906037.41430327093971
9108.1109.110696729060-1.01069672906031
1093.888.96069672906034.83930327093968
1188.286.94819672906031.25180327093970
12108.9108.2106967290600.689303270939719
13114.2111.9580922669692.24190773303092
14102.5103.895592266969-1.39559226696918
1594.296.2205922669692-2.02059226696917
1697.499.332038192475-1.93203819247493
1798.5100.107038192475-1.60703819247493
18106.5112.257038192475-5.75703819247493
19102.9105.094538192475-2.19453819247494
2097.1103.582038192475-6.48203819247494
21103.7113.507038192475-9.80703819247493
2293.493.3570381924750.0429618075250712
2385.891.344538192475-5.54453819247494
24108.6112.607038192475-4.00703819247494
25110.2116.354433730384-6.15443373038376
26101.2108.291933730384-7.0919337303838
27101.2100.6169337303840.583066269616191
2896.9103.728379655890-6.82837965588957
2999.4104.503379655890-5.10337965588957
30118.7116.6533796558902.04662034411043
31108109.490879655890-1.49087965588958
32101.2107.978379655890-6.77837965588957
33119.9117.9033796558901.99662034411043
3494.897.7533796558896-2.95337965588958
3595.395.7408796558896-0.440879655889577
36118117.0033796558900.99662034411042
37115.9120.750775193798-4.85077519379839
38111.4112.688275193798-1.28827519379844
39108.2105.0132751937983.18672480620155
40108.8108.1247211193040.675278880695782
41109.5108.8997211193040.600278880695786
42124.8121.0497211193043.75027888069579
43115.3113.8872211193041.41277888069578
44109.5112.374721119304-2.87472111930422
45124.2122.2997211193041.90027888069578
4692.9102.149721119304-9.24972111930421
4798.4100.137221119304-1.73722111930421
48120.9121.399721119304-0.499721119304216
49111.7125.147116657213-13.4471166572130
50116.1117.084616657213-0.984616657213097
51109.4109.409616657213-0.00961665721308802
52111.7112.521062582719-0.821062582718852
53114.3113.2960625827191.00393741728114
54133.7125.4460625827198.25393741728114
55114.3118.283562582719-3.98356258271886
56126.5116.7710625827199.72893741728114
57131126.6960625827194.30393741728113
58104106.546062582719-2.54606258271886
59108.9104.5335625827194.36643741728115
60128.5125.7960625827192.70393741728114
61132.4129.5434581206282.85654187937232
62128121.4809581206286.51904187937227
63116.4113.8059581206282.59404187937227
64120.9116.9174040461333.98259595386651
65118.6117.6924040461330.9075959538665
66133.1129.8424040461333.25759595386650
67121.1122.679904046134-1.57990404613351
68127.6121.1674040461336.4325959538665
69135.4131.0924040461344.3075959538665
70114.9110.9424040461333.95759595386651
71114.3108.9299040461345.3700959538665
72128.9130.192404046134-1.2924040461335
73138.9133.9397995840424.96020041595768
74129.4125.8772995840423.52270041595763
75115118.202299584042-3.20229958404237
76128110.62217810550217.3778218944980
77127111.39717810550215.6028218944980
78128.8123.5471781055025.25282189449803
79137.9116.38467810550221.515321894498
80128.4114.87217810550213.5278218944980
81135.9124.79717810550211.1028218944980
82122.2104.64717810550217.5528218944980
83113.1102.63467810550210.465321894498
84136.2123.89717810550212.302821894498
85138127.64457364341110.3554263565892
86115.2119.582073643411-4.38207364341086
87111111.907073643411-0.907073643410865
8899.2115.018519568917-15.8185195689166
89102.4115.793519568917-13.3935195689166
90112.7127.943519568917-15.2435195689166
91105.5120.781019568917-15.2810195689166
9298.3119.268519568917-20.9685195689166
93116.4129.193519568917-12.7935195689166
9497.4109.043519568917-11.6435195689166
9593.3107.031019568917-13.7310195689166
96117.4128.293519568917-10.8935195689166


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.009588258177795220.01917651635559040.990411741822205
180.001512951300371550.00302590260074310.998487048699628
190.0002110355203797560.0004220710407595120.99978896447962
200.00468620179157290.00937240358314580.995313798208427
210.002018180167076440.004036360334152880.997981819832924
220.0005829844064370640.001165968812874130.999417015593563
230.0001693182278389880.0003386364556779760.99983068177216
244.50921391838976e-059.01842783677952e-050.999954907860816
251.19242550379534e-052.38485100759068e-050.999988075744962
263.01272000662773e-066.02544001325546e-060.999996987279993
274.02382399537543e-058.04764799075087e-050.999959761760046
281.32931689006513e-052.65863378013026e-050.9999867068311
294.61625019143791e-069.23250038287582e-060.999995383749809
307.26256187722001e-050.0001452512375444000.999927374381228
313.92193297369082e-057.84386594738164e-050.999960780670263
321.7539687621392e-053.5079375242784e-050.999982460312379
330.0001019435784440700.0002038871568881390.999898056421556
344.37601635753008e-058.75203271506017e-050.999956239836425
353.17577386308187e-056.35154772616374e-050.99996824226137
362.46862913784352e-054.93725827568704e-050.999975313708622
371.15587860567240e-052.31175721134479e-050.999988441213943
387.06308652081117e-061.41261730416223e-050.99999293691348
397.76459352460209e-061.55291870492042e-050.999992235406475
405.61517115662545e-061.12303423132509e-050.999994384828843
413.53962307994491e-067.07924615988981e-060.99999646037692
423.70598624524423e-067.41197249048846e-060.999996294013755
431.95460446103235e-063.90920892206470e-060.99999804539554
449.83385089960234e-071.96677017992047e-060.99999901661491
457.83529387547875e-071.56705877509575e-060.999999216470612
461.81683930665354e-063.63367861330709e-060.999998183160693
471.12914920837435e-062.25829841674869e-060.999998870850792
486.95580323733278e-071.39116064746656e-060.999999304419676
491.46366329276573e-052.92732658553146e-050.999985363367072
501.77152318480656e-053.54304636961313e-050.999982284768152
511.90743644987284e-053.81487289974567e-050.999980925635501
521.83889201701135e-053.67778403402271e-050.99998161107983
531.79221244334448e-053.58442488668895e-050.999982077875567
543.08605686653066e-056.17211373306133e-050.999969139431335
556.1493113790906e-050.0001229862275818120.99993850688621
560.0001797416680815280.0003594833361630560.999820258331918
570.0002354223553569910.0004708447107139830.999764577644643
580.001162713244688390.002325426489376770.998837286755312
590.002783979211950350.005567958423900690.99721602078805
600.01109757255090690.02219514510181390.988902427449093
610.1029322416630000.2058644833260010.897067758337
620.1909115427190380.3818230854380770.809088457280962
630.4645295027794940.9290590055589880.535470497220506
640.4077844171310280.8155688342620570.592215582868972
650.3838581299754450.767716259950890.616141870024555
660.3183776423786130.6367552847572270.681622357621386
670.4464692082143030.8929384164286060.553530791785697
680.4004639488490240.8009278976980480.599536051150976
690.3320570657579360.6641141315158710.667942934242064
700.342873626496830.685747252993660.65712637350317
710.2767330092589080.5534660185178170.723266990741092
720.5959214946947620.8081570106104760.404078505305238
730.6100914607116720.7798170785766560.389908539288328
740.6307601833790630.7384796332418740.369239816620937
750.53245111497990.93509777004020.4675488850201
760.4820054788787090.9640109577574180.517994521121291
770.3593000103406250.7186000206812490.640699989659375
780.417454696282680.834909392565360.58254530371732
790.5611872347278160.8776255305443690.438812765272184


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level420.666666666666667NOK
5% type I error level440.698412698412698NOK
10% type I error level440.698412698412698NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/101stp1261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/101stp1261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/1r6vk1261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/1r6vk1261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/2510y1261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/2510y1261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/3t2601261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/3t2601261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/46s081261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/46s081261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/54s2l1261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/54s2l1261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/6rb041261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/6rb041261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/76h691261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/76h691261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/8c8lu1261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/8c8lu1261853375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/9gyex1261853375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/26/t12618534761mjam9tjwkpbab7/9gyex1261853375.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