Home » date » 2009 » Dec » 28 »

paper multiple regressie 6 vertragingen

*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:46:00 -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/t1262015221hg6snwy7swl7w5e.htm/, Retrieved Mon, 28 Dec 2009 16:47:14 +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/t1262015221hg6snwy7swl7w5e.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 «
102.3 0 106.3 97.7 98.3 91.6 104.6 111.6 106.6 0 102.3 106.3 97.7 98.3 91.6 104.6 108.1 0 106.6 102.3 106.3 97.7 98.3 91.6 93.8 0 108.1 106.6 102.3 106.3 97.7 98.3 88.2 0 93.8 108.1 106.6 102.3 106.3 97.7 108.9 0 88.2 93.8 108.1 106.6 102.3 106.3 114.2 0 108.9 88.2 93.8 108.1 106.6 102.3 102.5 0 114.2 108.9 88.2 93.8 108.1 106.6 94.2 0 102.5 114.2 108.9 88.2 93.8 108.1 97.4 0 94.2 102.5 114.2 108.9 88.2 93.8 98.5 0 97.4 94.2 102.5 114.2 108.9 88.2 106.5 0 98.5 97.4 94.2 102.5 114.2 108.9 102.9 0 106.5 98.5 97.4 94.2 102.5 114.2 97.1 0 102.9 106.5 98.5 97.4 94.2 102.5 103.7 0 97.1 102.9 106.5 98.5 97.4 94.2 93.4 0 103.7 97.1 102.9 106.5 98.5 97.4 85.8 0 93.4 103.7 97.1 102.9 106.5 98.5 108.6 0 85.8 93.4 103.7 97.1 102.9 106.5 110.2 0 108.6 85.8 93.4 103.7 97.1 102.9 101.2 0 110.2 108.6 85.8 93.4 103.7 97.1 101.2 0 101.2 110.2 108.6 85.8 93.4 103.7 96.9 0 101.2 101.2 110.2 108.6 85.8 93.4 99.4 0 96.9 101.2 101.2 110.2 108.6 85.8 118.7 0 99.4 96.9 101.2 101.2 110.2 108.6 108.0 0 118.7 99. 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] = + 52.3800554350695 -9.6439095460792x[t] + 0.0711536770663767y1[t] + 0.449810910302228y2[t] + 0.544648532701033y3[t] -0.231596665797572y4[t] -0.212333328723183y5[t] + 0.00655193229113578y6[t] -12.9994185439502M1[t] -21.2202134716252M2[t] -14.1415161121140M3[t] -27.6143828048953M4[t] -31.0826462179462M5[t] -6.92901969997911M6[t] + 7.17864636904514M7[t] -12.6041688241142M8[t] -35.952591159114M9[t] -27.1388648742082M10[t] -14.0107696337175M11[t] + 0.164878704585040t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)52.38005543506959.97285.25232e-061e-06
x-9.64390954607922.424779-3.97720.0001688.4e-05
y10.07115367706637670.1188310.59880.5512530.275627
y20.4498109103022280.1137693.95370.0001829.1e-05
y30.5446485327010330.1254134.34284.7e-052.3e-05
y4-0.2315966657975720.122404-1.89210.0626180.031309
y5-0.2123333287231830.11596-1.83110.0713430.035671
y60.006551932291135780.1215170.05390.9571540.478577
M1-12.99941854395023.066487-4.23926.7e-053.4e-05
M2-21.22021347162523.611616-5.875500
M3-14.14151611211404.073434-3.47160.0008910.000445
M4-27.61438280489533.511255-7.864500
M5-31.08264621794623.445539-9.021100
M6-6.929019699979113.628507-1.90960.0602830.030141
M77.178646369045142.9032722.47260.0158450.007923
M8-12.60416882411423.968128-3.17640.0022190.00111
M9-35.9525911591144.900745-7.336100
M10-27.13886487420825.821845-4.66161.5e-057e-06
M11-14.01076963371754.392658-3.18960.0021320.001066
t0.1648787045850400.0464753.54770.0006990.000349


Multiple Linear Regression - Regression Statistics
Multiple R0.960027176829339
R-squared0.92165218025091
Adjusted R-squared0.900386343461872
F-TEST (value)43.3395680308228
F-TEST (DF numerator)19
F-TEST (DF denominator)70
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.14323284430112
Sum Squared Residuals1201.64648814669


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1102.3101.9015030410870.398496958912756
2106.698.26532890523038.33467109476973
3108.1107.3307490979800.769250902019542
493.892.06465102660451.73534897339546
588.289.8568626689535-1.65686266895346
6108.9108.0713983513310.828601648669408
7114.2112.2227730835261.977226916474
8102.5102.2645107802060.235489219793728
994.296.2498274072727-2.04982740727272
1097.498.5630294769689-1.16302947696887
1198.596.3184237464192.18157625358093
12106.5109.211092567068-2.71109256706838
13102.9103.624726963534-0.724726963534064
1497.1100.454857861438-3.35485786143805
15103.7109.035007560762-5.33500756076164
1693.489.56162203908233.83837796091768
1785.884.47743346776751.32256653223246
18108.6109.376874787688-0.776874787687585
19110.2115.922688949375-5.72268894937509
20101.2103.481002731323-2.28100273132333
21101.296.7851707084104.4148292915899
2296.998.8527595730154-1.95275957301541
2399.4101.676386666819-2.27638666681912
24118.7115.9897530059472.71024699405304
25108105.2325007692782.76749923072157
26101.2107.395110374473-6.19511037447317
27119.9120.18762302443-0.287623024429944
2894.894.29493302686570.505066973134304
2995.392.30987593472282.99012406527717
30118119.531907946712-1.53190794671208
31115.9119.016771783471-3.11677178347118
32111.4111.530334428084-0.130334428084397
33108.2104.7818073834473.41819261655295
34108.8104.8369451128193.96305488718069
35109.5109.951960356317-0.451960356317327
36124.8124.3412413595210.458758640479116
37115.3114.9198597880990.380140211901409
38109.5113.962369490518-4.46236949051842
39124.2124.542689283461-0.342689283460508
4092.9100.809464850293-7.9094648502928
4198.497.68828368964210.711716310357883
42120.9119.7860579228551.11394207714463
43111.7118.850840326182-7.15084032618242
44116.1115.7842769201980.315723079802093
45109.4106.4987060116972.90129398830340
46111.7105.3851491001886.31485089981242
47114.3115.613722004043-1.31372200404292
48133.7128.4416495986115.25835040138923
49114.3119.966844323715-5.6668443237147
50126.5121.5917540836154.90824591638514
51131130.408838948970.591161051029852
52104107.312581551976-3.3125815519761
53108.9111.147652521231-2.24765252123077
54128.5127.541729321350.958270678649865
55132.4126.9476901500535.45230984994653
56128124.4698682254293.53013177457123
57116.4118.030282115469-1.63028211546881
58120.9120.5718355909570.328164409042778
59118.6121.537885208083-2.93788520808295
60133.1131.5754494265561.52455057344398
61121.1124.835331713682-3.73533171368206
62127.6122.5871910549845.01280894501562
63135.4132.2941087580533.10589124194674
64114.9113.0888066728351.81119332716459
65114.3115.060769426238-0.760769426238018
66128.9135.501341971638-6.60134197163821
67138.9136.1123051464492.78769485355130
68129.4126.5804748440322.81952515596814
69115119.713845272119-4.71384527211852
70128125.4528930556142.54710694438622
71127122.5994622168324.40053778316833
72128.8134.881053090398-6.08105309039756
73137.9134.2228878178303.67711218217032
74128.4127.0640810833661.33591891663361
75135.9136.082259425348-0.182259425348046
76122.2123.87165646493-1.67165646493011
77113.1115.296605564511-2.19660556451101
78136.2127.5258858156178.67411418438279
79138132.2269305609435.77306943905685
80115.2119.689532070727-4.48953207072747
81111113.340361101586-2.34036110158619
8299.2109.237388090438-10.0373880904378
83102.4102.0021598014870.397840198513061
84112.7113.859760951899-1.15976095189939
85105.5102.5963455827752.90365441722477
8698.3103.879307146374-5.57930714637448
87116.4114.7187239009961.68127609900401
8897.492.3962843674135.00371563258696
8993.391.46251672693431.83748327306574
90117.4120.064803882809-2.66480388280881


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
230.6918508350214170.6162983299571670.308149164978583
240.7734348095178130.4531303809643740.226565190482187
250.6647483155322390.6705033689355220.335251684467761
260.565149991880230.869700016239540.43485000811977
270.5063582084427410.9872835831145170.493641791557259
280.5018989609350020.9962020781299970.498101039064998
290.5653575496515130.8692849006969740.434642450348487
300.4719743956682920.9439487913365840.528025604331708
310.3982070220183860.7964140440367730.601792977981614
320.3145115329388670.6290230658777340.685488467061133
330.2518799820415640.5037599640831280.748120017958436
340.2436781822584850.487356364516970.756321817741515
350.1773117620145180.3546235240290370.822688237985482
360.12439183301510.24878366603020.8756081669849
370.08874360763797440.1774872152759490.911256392362026
380.08821951445405850.1764390289081170.911780485545941
390.05895976518115430.1179195303623090.941040234818846
400.1757576104056290.3515152208112570.824242389594371
410.1279983580064660.2559967160129320.872001641993534
420.0915582937506450.183116587501290.908441706249355
430.1590118889291640.3180237778583280.840988111070836
440.1244793030103620.2489586060207250.875520696989638
450.0997201367540310.1994402735080620.900279863245969
460.1578350138665460.3156700277330930.842164986133454
470.1241309612836490.2482619225672980.875869038716351
480.1415391288982130.2830782577964250.858460871101787
490.1544546440794630.3089092881589260.845545355920537
500.1560228084284160.3120456168568320.843977191571584
510.1198790195816020.2397580391632050.880120980418398
520.1150541551087060.2301083102174130.884945844891294
530.09450635475847770.1890127095169550.905493645241522
540.06413865172616030.1282773034523210.93586134827384
550.07657207245666090.1531441449133220.92342792754334
560.06038329132889860.1207665826577970.939616708671101
570.04301840943144450.0860368188628890.956981590568555
580.02818478568404120.05636957136808240.97181521431596
590.0283803592778730.0567607185557460.971619640722127
600.01928855050553930.03857710101107850.98071144949446
610.03853624027303930.07707248054607870.96146375972696
620.05388867864211150.1077773572842230.946111321357888
630.03942646862070150.0788529372414030.960573531379298
640.02554849460056490.05109698920112970.974451505399435
650.02354158674608510.04708317349217030.976458413253915
660.08938838623988690.1787767724797740.910611613760113
670.1256291940960060.2512583881920110.874370805903995


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0444444444444444OK
10% type I error level80.177777777777778NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/10tf9o1262015152.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/10tf9o1262015152.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/40mg21262015152.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/40mg21262015152.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/59z9h1262015152.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/59z9h1262015152.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/6kosw1262015152.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/6kosw1262015152.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/7qcqq1262015152.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/7qcqq1262015152.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/87k8d1262015152.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262015221hg6snwy7swl7w5e/87k8d1262015152.ps (open in new window)


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