Home » date » 2010 » Dec » 21 »

Paper - 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: Tue, 21 Dec 2010 19:58:27 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt.htm/, Retrieved Tue, 21 Dec 2010 20:57:12 +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/2010/Dec/21/t1292961421a54q0lv1ymsb8jt.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
631923,00 -12 -10,8 654294,00 -13 -12,2 671833,00 -16 -14,1 586840,00 -10 -15,2 600969,00 -4 -15,8 625568,00 -9 -15,8 558110,00 -8 -14,9 630577,00 -9 -12,6 628654,00 -3 -9,9 603184,00 -13 -7,8 656255,00 -3 -6 600730,00 -1 -5 670326,00 -2 -4,5 678423,00 0 -3,9 641502,00 0 -2,9 625311,00 -3 -1,5 628177,00 0 -0,5 589767,00 5 0 582471,00 3 0,5 636248,00 4 0,9 599885,00 3 0,8 621694,00 1 0,1 637406,00 -1 -1 595994,00 0 -2 696308,00 -2 -3 674201,00 -1 -3,7 648861,00 2 -4,7 649605,00 0 -6,4 672392,00 -6 -7,5 598396,00 -7 -7,8 613177,00 -6 -7,7 638104,00 -4 -6,6 615632,00 -9 -4,2 634465,00 -2 -2 638686,00 -3 -0,7 604243,00 2 0,1 706669,00 3 0,9 677185,00 1 2,1 644328,00 0 3,5 644825,00 1 4,9 605707,00 1 5,7 600136,00 3 6,2 612166,00 5 6,5 599659,00 5 6,5 634210,00 4 6,3 618234,00 11 6,2 613576,00 8 6,4 627200,00 -1 6,3 668973,00 4 5,8 651479,00 4 5,1 619661,00 4 5,1 644260,00 6 5,8 579936,00 6 6,7 601752,00 6 7,1 595376,00 6 6,7 588902,00 4 5,5 634341,00 1 4,2 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
Werkloosheid[t] = + 625608.204689032 + 2019.82640144426Consumentenvertrouwen[t] -3338.05320518869Producentenvertrouwen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)625608.2046890324315.649339144.962700
Consumentenvertrouwen2019.826401444261181.2291051.70990.0911060.045553
Producentenvertrouwen-3338.05320518869820.757932-4.0670.000115.5e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.53918479258151
R-squared0.290720240551166
Adjusted R-squared0.273207160070948
F-TEST (value)16.6001772720424
F-TEST (DF numerator)2
F-TEST (DF denominator)81
p-value9.08053527703956e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation35379.160424248
Sum Squared Residuals101386484378.299


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1631923637421.262487738-5498.26248773766
2654294640074.71057355914219.2894264414
3671833640357.53245908431475.4675409156
4586840656148.349393458-69308.3493934575
5600969670270.139725236-69301.1397252363
6625568660171.007718015-34603.007718015
7558110659186.58623479-101076.586234789
8630577649489.237461411-18912.2374614112
9628654652595.452216067-23941.4522160673
10603184625387.276470728-22203.2764707284
11656255639577.04471583116677.9552841686
12600730640278.644313531-39548.6443135312
13670326636589.79130949333736.2086905074
14678423638626.61218926839796.3878107321
15641502635288.5589840796213.44101592075
16625311624555.805292482755.194707517704
17628177627277.231291626899.768708373607
18589767635707.336696253-45940.3366962534
19582471629998.65729077-47527.6572907705
20636248630683.2624101395564.73758986073
21599885628997.241329214-29112.2413292139
22621694627294.225769957-5600.22576995744
23637406626926.43149277610479.5685072235
24595994632284.31109941-36290.3110994094
25696308631582.7115017164725.2884982904
26674201635939.17514678638261.8248532141
27648861645336.7075563073524.29244369257
28649605646971.745202242633.25479776033
29672392638524.64531928233867.3546807184
30598396637506.234879394-39110.234879394
31613177639192.25596032-26015.2559603194
32638104639560.0502375-1456.05023750036
33615632621449.590537826-5817.59053782618
34634465628244.6582965216220.34170347909
35638686621885.36272833116800.6372716687
36604243629314.052171402-25071.0521714017
37706669628663.43600869578005.563991305
38677185620618.1193595856566.8806404199
39644328613925.01847087230402.9815291284
40644825611271.57038505233553.4296149483
41605707608601.127820901-2894.12782090077
42600136610971.754021195-10835.7540211950
43612166614009.990862527-1843.99086252687
44599659614009.990862527-14350.9908625269
45634210612657.7751021221552.2248978797
46618234627130.365232749-8896.36523274906
47613576620403.275387379-6827.27538737853
48627200602558.64309489924641.3569051010
49668973614326.80170471554646.1982952853
50651479616663.43894834734815.5610516532
51619661616663.4389483472997.56105165323
52644260618366.45450760325893.5454923968
53579936615362.206622933-35426.2066229334
54601752614026.985340858-12274.9853408579
55595376615362.206622933-19986.2066229334
56588902615328.217666271-26426.2176662713
57634341613608.20762868420732.7923713162
58594305627713.003482132-33408.0034821316
59606200618264.487637617-12064.4876376169
60610926622971.751081543-12045.7510815432
61633685615560.05611680418124.9438831961
62639696619599.70891969220096.2910803076
63659451622620.95128269336830.0487173067
64593248618213.504202624-24965.5042026238
65606677622552.973369369-15875.9733693691
66599434621183.763130632-21749.7631306315
67569578620148.358212413-50570.3582124128
68629873626156.8539817523716.14601824755
69613438643214.914284877-29776.9142848769
70604172647418.427624974-43246.4276249738
71658328664391.515536443-6063.51553644297
72612633673670.086597647-61037.0865976471
73707372686722.48305454520649.5169454549
74739770686003.88897851453766.1110214858
75777535688357.52070047789177.4792995226
76685030691763.55181899-6733.55181899024
77730234687791.87692942642442.1230705741
78714154682818.78607830531335.2139216950
79630872678513.305868222-47641.3058682218
80719492683973.15234484135518.847655159
81677023674275.8035714632747.19642853725
82679272663594.03331485915677.9666851411
83718317656635.10501895661681.8949810442
84645672635820.2137984699851.7862015314


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.3421288150887640.6842576301775280.657871184911236
70.5948046114229860.8103907771540280.405195388577014
80.4863402571710610.9726805143421220.513659742828939
90.4212505058370790.8425010116741570.578749494162921
100.5817176570215010.8365646859569990.418282342978499
110.5660963787782070.8678072424435870.433903621221794
120.5359013822522460.9281972354955080.464098617747754
130.5640759094050510.8718481811898970.435924090594949
140.5786592768085890.8426814463828230.421340723191411
150.4938089262928910.9876178525857830.506191073707109
160.4787536579545840.9575073159091680.521246342045416
170.4228415993382750.845683198676550.577158400661725
180.4964817057929150.992963411585830.503518294207085
190.5852727835837920.8294544328324150.414727216416208
200.5150878013854940.9698243972290120.484912198614506
210.4952354383444480.9904708766888960.504764561655552
220.4227896161387410.8455792322774830.577210383861259
230.3536043515317980.7072087030635970.646395648468202
240.3548530851995620.7097061703991240.645146914800438
250.5765332597358990.8469334805282010.423466740264101
260.6262257239305680.7475485521388640.373774276069432
270.601517812428280.796964375143440.39848218757172
280.5695577897473090.8608844205053820.430442210252691
290.582488000500250.83502399899950.41751199949975
300.6011353094082780.7977293811834450.398864690591722
310.5676808934768470.8646382130463070.432319106523153
320.5051619268170660.9896761463658670.494838073182934
330.4660839321509470.9321678643018930.533916067849054
340.4008332894814480.8016665789628960.599166710518552
350.3438335245744710.6876670491489410.65616647542553
360.3304556355431680.6609112710863360.669544364456832
370.5703867363137720.8592265273724550.429613263686228
380.6256719601525780.7486560796948440.374328039847422
390.5947347787224740.8105304425550520.405265221277526
400.5751885555547120.8496228888905760.424811444445288
410.5648722553836150.8702554892327710.435127744616385
420.5509448387822480.8981103224355040.449055161217752
430.503203848835760.993592302328480.49679615116424
440.4759748719423220.9519497438846450.524025128057678
450.4299084694768950.859816938953790.570091530523105
460.379641878483750.75928375696750.62035812151625
470.3292459477668740.6584918955337470.670754052233126
480.3171386621699370.6342773243398730.682861337830063
490.4008334308761650.801666861752330.599166569123835
500.4044026045768560.8088052091537110.595597395423144
510.3497751889631430.6995503779262860.650224811036857
520.3282408564812600.6564817129625190.67175914351874
530.3518055149293690.7036110298587380.648194485070631
540.3079190916447380.6158381832894770.692080908355262
550.2769790713992930.5539581427985860.723020928600707
560.2614066970623850.522813394124770.738593302937615
570.2392951886457290.4785903772914580.760704811354271
580.2495244660386510.4990489320773020.750475533961349
590.2055327787906010.4110655575812010.7944672212094
600.1661950718724580.3323901437449150.833804928127542
610.1473671041738330.2947342083476650.852632895826168
620.1300351679446940.2600703358893880.869964832055306
630.1613951282951000.3227902565902000.8386048717049
640.1341220523374210.2682441046748420.865877947662579
650.1023826895802290.2047653791604580.897617310419771
660.07869692683770780.1573938536754160.921303073162292
670.0797086733663260.1594173467326520.920291326633674
680.06565509709879890.1313101941975980.934344902901201
690.04857732331897150.0971546466379430.951422676681029
700.04497755010015310.08995510020030630.955022449899847
710.03138393920960030.06276787841920070.9686160607904
720.1431722911820570.2863445823641140.856827708817943
730.1311356317388140.2622712634776290.868864368261186
740.1297560901835260.2595121803670520.870243909816474
750.4447374793811900.8894749587623800.55526252061881
760.3288861869502210.6577723739004420.671113813049779
770.4076706644731180.8153413289462360.592329335526882
780.9299939692842540.1400120614314920.0700060307157458


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level30.0410958904109589OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/10japp1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/10japp1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/1vrad1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/1vrad1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/2vrad1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/2vrad1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/35iag1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/35iag1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/45iag1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/45iag1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/55iag1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/55iag1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/6ysr11292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/6ysr11292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/79jqm1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/79jqm1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/89jqm1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/89jqm1292961499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/99jqm1292961499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961421a54q0lv1ymsb8jt/99jqm1292961499.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No 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