Home » date » 2008 » Dec » 20 »

voeding

*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, 20 Dec 2008 01:12:25 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88.htm/, Retrieved Sat, 20 Dec 2008 09:17: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/2008/Dec/20/t12297610243n1iiovmo948e88.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
99,2 11554,5 93,6 13182,1 104,2 14800,1 95,3 12150,7 102,7 14478,2 103,1 13253,9 100 12036,8 107,2 12653,2 107 14035,4 119 14571,4 110,4 15400,9 101,7 14283,2 102,4 14485,3 98,8 14196,3 105,6 15559,1 104,4 13767,4 106,3 14634 107,2 14381,1 108,5 12509,9 106,9 12122,3 114,2 13122,3 125,9 13908,7 110,6 13456,5 110,5 12441,6 106,7 12953 104,7 13057,2 107,4 14350,1 109,8 13830,2 103,4 13755,5 114,8 13574,4 114,3 12802,6 109,6 11737,3 118,3 13850,2 127,3 15081,8 112,3 13653,3 114,9 14019,1 108,2 13962 105,4 13768,7 122,1 14747,1 113,5 13858,1 110 13188 125,3 13693,1 114,3 12970 115,6 11392,8 127,1 13985,2 123 14994,7 122,2 13584,7 126,4 14257,8 112,7 13553,4 105,8 14007,3 120,9 16535,8 116,3 14721,4 115,7 13664,6 127,9 16405,9 108,3 13829,4 121,1 13735,6 128,6 15870,5 123,1 15962,4 127,7 15744,1 126,6 16083,7 118,4 14863,9 110 15533,1 129,6 17473,1 115,8 15925,5 125,9 15573,7 128,4 17495 114 14155,8 125,6 14913,9 128,5 17250,4 136,6 15879,8 133,1 17647,8 124,6 17749,9
 
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
Voeding[t] = + 53.3282006913322 + 0.00426477832917221Invoer[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)53.32820069133229.1429475.832700
Invoer0.004264778329172210.0006376.698100


Multiple Linear Regression - Regression Statistics
Multiple R0.624968656363812
R-squared0.390585821437189
Adjusted R-squared0.381879904600578
F-TEST (value)44.8644098912859
F-TEST (DF numerator)1
F-TEST (DF denominator)70
p-value4.41529390826645e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.81540198444406
Sum Squared Residuals4275.63557249165


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
199.2102.605581895752-3.40558189575215
293.6109.546935104313-15.9469351043131
3104.2116.447346440914-12.2473464409138
495.3105.148242735605-9.84824273560491
5102.7115.074514296753-12.3745142967532
6103.1109.853146188348-6.7531461883477
7100104.662484483912-4.66248448391219
8107.2107.291293846014-0.091293846013945
9107113.186070452596-6.18607045259577
10119115.4719916370323.52800836296792
11110.4119.009625261080-8.60962526108042
12101.7114.242882522565-12.5428825225646
13102.4115.104794222890-12.7047942228903
1498.8113.872273285760-15.0722732857596
15105.6119.684313192755-14.0843131927555
16104.4112.043109860378-7.64310986037762
17106.3115.738966760438-9.43896676043826
18107.2114.660404320991-7.46040432099061
19108.5106.6801511114441.81984888855643
20106.9105.0271230310561.87287696894359
21114.2109.2919013602294.90809863977138
22125.9112.64572303829013.2542769617103
23110.6110.717190277838-0.117190277837988
24110.5106.3888667515614.11113324843889
25106.7108.569874389100-1.86987438909977
26104.7109.014264291000-4.31426429099952
27107.4114.528196192786-7.12819619278627
28109.8112.310937939450-2.51093793944964
29103.4111.992358998260-8.59235899826047
30114.8111.2200076428473.57999235715261
31114.3107.9284517283926.37154827160772
32109.6103.3851833743256.21481662567488
33118.3112.3962335060335.90376649396691
34127.3117.6487344962429.65126550375842
35112.3111.5564986530190.743501346980927
36114.9113.1165545658301.78344543416974
37108.2112.873035723235-4.67303572323453
38105.4112.048654072206-6.64865407220554
39122.1116.2213131894685.87868681053235
40113.5112.4299252548341.07007474516646
41110109.5720972964550.427902703544757
42125.3111.7262368305213.5737631694799
43114.3108.6423756206965.6576243793043
44115.6101.91596723992513.6840327600747
45127.1112.97197858047114.1280214195287
46123117.2772723037715.72272769622932
47122.2111.26393485963810.9360651403621
48126.4114.13455715300412.2654428469963
49112.7111.1304472979351.56955270206524
50105.8113.066230181546-7.26623018154604
51120.9123.849722186858-2.94972218685796
52116.3116.1117083864080.188291613592086
53115.7111.6046906481394.09530935186128
54127.9123.2957274818994.6042725181015
55108.3112.307526116786-4.0075261167863
56121.1111.907489909519.19251009049005
57128.6121.0123651644607.5876348355403
58123.1121.4042982929111.69570170708937
59127.7120.4732971836527.22670281634767
60126.6121.9216159042394.67838409576077
61118.4116.7194392983151.68056070168505
62110119.573428956197-9.573428956197
63129.6127.8470989147911.75290108520892
64115.8121.246927972564-5.44692797256417
65125.9119.7465789563616.15342104363861
66128.4127.94049756020.459502439800046
67114113.6995497634280.300450236571893
68125.6116.9326782147748.66732178522643
69128.5126.8973327808841.60266721911556
70136.6121.05202760292115.547972397079
71133.1128.5921556888974.50784431110252
72124.6129.027589556306-4.42758955630597


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1728000707738510.3456001415477030.827199929226149
60.1142900906273520.2285801812547040.885709909372648
70.06186319114775840.1237263822955170.938136808852242
80.1107523162754190.2215046325508380.889247683724581
90.0861547358872690.1723094717745380.913845264112731
100.3082085746807420.6164171493614830.691791425319258
110.2299560151300570.4599120302601140.770043984869943
120.2171780686513240.4343561373026490.782821931348676
130.2052435630330360.4104871260660720.794756436966964
140.2566615080455410.5133230160910820.743338491954459
150.2596664353151760.5193328706303520.740333564684824
160.2213097681900630.4426195363801270.778690231809937
170.1992409099641330.3984818199282660.800759090035867
180.1784063871555060.3568127743110130.821593612844494
190.2102900065770580.4205800131541160.789709993422942
200.2050451976414120.4100903952828240.794954802358588
210.3042338130596560.6084676261193110.695766186940344
220.7835704226117280.4328591547765430.216429577388272
230.7536652711530050.4926694576939910.246334728846995
240.7287736921520620.5424526156958770.271226307847938
250.6832909035062890.6334181929874220.316709096493711
260.6550395235715320.6899209528569370.344960476428468
270.6541205152462670.6917589695074670.345879484753733
280.6242219832466420.7515560335067150.375778016753357
290.6790271556736670.6419456886526660.320972844326333
300.6823532328848360.6352935342303290.317646767115164
310.6854059389346220.6291881221307550.314594061065378
320.6408848299290570.7182303401418860.359115170070943
330.6744227502126020.6511544995747970.325577249787398
340.826913690840530.346172618318940.17308630915947
350.7962383949358520.4075232101282960.203761605064148
360.7670141299260620.4659717401478760.232985870073938
370.7683849789953240.4632300420093520.231615021004676
380.8143648583516540.3712702832966930.185635141648346
390.8247673984710840.3504652030578320.175232601528916
400.7981052511364830.4037894977270330.201894748863517
410.7774578428431870.4450843143136260.222542157156813
420.8637099233316050.2725801533367910.136290076668395
430.8355397144271420.3289205711457170.164460285572858
440.8430100957312230.3139798085375540.156989904268777
450.9189285596196770.1621428807606450.0810714403803225
460.9097950430292080.1804099139415850.0902049569707923
470.9255601689988850.1488796620022300.0744398310011151
480.9576303502018970.0847392995962060.042369649798103
490.937375751702230.1252484965955410.0626242482977705
500.9545098568088480.09098028638230480.0454901431911524
510.9442377499914390.1115245000171230.0557622500085615
520.92299103469010.1540179306197990.0770089653098997
530.8913135724547490.2173728550905030.108686427545252
540.864655735305350.2706885293892990.135344264694649
550.879216703799670.241566592400660.12078329620033
560.8570012293947960.2859975412104080.142998770605204
570.8407786596394570.3184426807210860.159221340360543
580.7801136286680770.4397727426638450.219886371331923
590.7460817782436960.5078364435126090.253918221756304
600.67680491433780.64639017132440.3231950856622
610.5807151998365020.8385696003269950.419284800163498
620.7547097140703120.4905805718593760.245290285929688
630.6545021725669760.6909956548660480.345497827433024
640.7271408569977120.5457182860045760.272859143002288
650.6090708311739560.7818583376520880.390929168826044
660.4678454470554180.9356908941108360.532154552944582
670.6337935163092850.732412967381430.366206483690715


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 level20.0317460317460317OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/10nldy1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/10nldy1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/1axb21229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/1axb21229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/2xrdd1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/2xrdd1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/35vzv1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/35vzv1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/4kkxn1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/4kkxn1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/5ynnz1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/5ynnz1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/6kbf21229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/6kbf21229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/7zmvh1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/7zmvh1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/8njnk1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/8njnk1229760739.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/9ajvj1229760739.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t12297610243n1iiovmo948e88/9ajvj1229760739.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