Home » date » 2009 » Nov » 20 »

3de model

*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: Fri, 20 Nov 2009 08:37:22 -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/Nov/20/t1258731534eozeykxx7p8s5eq.htm/, Retrieved Fri, 20 Nov 2009 16:39:06 +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/Nov/20/t1258731534eozeykxx7p8s5eq.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 «
105.7 0 105.7 0 111.1 0 82.4 0 60 0 107.3 0 99.3 0 113.5 0 108.9 0 100.2 0 103.9 0 138.7 0 120.2 0 100.2 0 143.2 0 70.9 0 85.2 0 133 0 136.6 0 117.9 0 106.3 0 122.3 0 125.5 0 148.4 0 126.3 0 99.6 0 140.4 0 80.3 0 92.6 0 138.5 0 110.9 0 119.6 0 105 0 109 0 129.4 0 148.6 0 101.4 0 134.8 0 143.7 0 81.6 0 90.3 0 141.5 0 140.7 0 140.2 0 100.2 0 125.7 0 119.6 0 134.7 0 109 0 116.3 0 146.9 0 97.4 0 89.4 0 132.1 0 139.8 0 129 0 112.5 0 121.9 0 121.7 0 123.1 0 131.6 0 119.3 0 132.5 0 98.3 0 85.1 0 131.7 0 129.3 0 90.7 1 78.6 1 68.9 1 79.1 1 83.5 1 74.1 1 59.7 1 93.3 1 61.3 1 56.6 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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 126.383760683761 -49.8978632478632X[t] -19.5698836657170M1[t] -24.5135158051825M2[t] + 0.285709198209129M3[t] -48.4007800841134M4[t] -50.5301265092932M5[t] -5.49975579975582M6[t] -10.3552927011260M7[t] -9.92785239451906M8[t] -26.7667226292227M9[t] -20.9555928639262M10[t] -16.0277964319631M11[t] + 0.272203568036901t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)126.3837606837614.92435825.66500
X-49.89786324786324.442725-11.231400
M1-19.56988366571705.841073-3.35040.0013670.000684
M2-24.51351580518255.838375-4.19878.6e-054.3e-05
M30.2857091982091295.8364320.0490.9611120.480556
M4-48.40078008411345.835244-8.294600
M5-50.53012650929325.834812-8.660100
M6-5.499755799755826.084279-0.90390.3694770.184738
M7-10.35529270112606.085009-1.70180.0937290.046864
M8-9.927852394519066.060242-1.63820.1063670.053183
M9-26.76672262922276.057693-4.41864e-052e-05
M10-20.95559286392626.055871-3.46040.0009740.000487
M11-16.02779643196316.054778-2.64710.0102420.005121
t0.2722035680369010.0664344.09730.0001226.1e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.917996846433517
R-squared0.842718210061882
Adjusted R-squared0.81026323753497
F-TEST (value)25.9657656269178
F-TEST (DF numerator)13
F-TEST (DF denominator)63
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.4865511345852
Sum Squared Residuals6927.96854599104


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1105.7107.086080586081-1.38608058608068
2105.7102.4146520146523.28534798534793
3111.1127.486080586081-16.3860805860806
482.479.07179487179493.32820512820513
56077.2146520146519-17.2146520146519
6107.3122.517226292226-15.2172262922263
799.3117.933892958893-18.6338929588929
8113.5118.633536833537-5.13353683353683
9108.9102.0668701668706.83312983312984
10100.2108.150203500204-7.95020350020353
11103.9113.350203500203-9.45020350020345
12138.7129.6502035002049.04979649979646
13120.2110.3525234025239.84747659747661
14100.2105.681094831095-5.48109483109483
15143.2130.75252340252312.4474765974766
1670.982.3382376882377-11.4382376882377
1785.280.48109483109494.71890516890516
18133125.7836691086697.2163308913309
19136.6121.20033577533615.3996642246642
20117.9121.899979649980-3.99997964997965
21106.3105.3333129833130.966687016687016
22122.3111.41664631664610.8833536833537
23125.5116.6166463166468.88335368335368
24148.4132.91664631664615.4833536833537
25126.3113.61896621896612.6810337810338
2699.6108.947537647538-9.34753764753764
27140.4134.0189662189666.3810337810338
2880.385.6046805046805-5.30468050468051
2992.683.74753764753778.85246235246234
30138.5129.0501119251129.44988807488808
31110.9124.466778591779-13.5667785917786
32119.6125.166422466422-5.56642246642248
33105108.599755799756-3.5997557997558
34109114.683089133089-5.68308913308913
35129.4119.8830891330899.51691086691087
36148.6136.18308913308912.4169108669108
37101.4116.885409035409-15.485409035409
38134.8112.21398046398022.5860195360196
39143.7137.2854090354096.41459096459096
4081.688.8711233211233-7.27112332112333
4190.387.01398046398053.28601953601952
42141.5132.3165547415559.18344525844527
43140.7127.73322140822112.9667785917786
44140.2128.43286528286511.7671347171347
45100.2111.866198616199-11.6661986161986
46125.7117.9495319495327.75046805046806
47119.6123.149531949532-3.54953194953197
48134.7139.449531949532-4.74953194953197
49109120.151851851852-11.1518518518518
50116.3115.4804232804230.81957671957673
51146.9140.5518518518526.34814814814816
5297.492.13756613756615.26243386243387
5389.490.2804232804233-0.880423280423285
54132.1135.582997557998-3.48299755799756
55139.8130.9996642246648.80033577533578
56129131.699308099308-2.6993080993081
57112.5115.132641432641-2.63264143264143
58121.9121.2159747659750.684025234025239
59121.7126.415974765975-4.71597476597477
60123.1142.715974765975-19.6159747659748
61131.6123.4182946682958.18170533170535
62119.3118.7468660968660.553133903133916
63132.5143.818294668295-11.3182946682947
6498.395.4040089540092.89599104599105
6585.193.5468660968661-8.44686609686611
66131.7138.849440374440-7.14944037444039
67129.3134.266107041107-4.96610704110704
6890.785.06788766788775.63211233211233
6978.668.50122100122110.098778998779
7068.974.5845543345543-5.68455433455433
7179.179.7845543345543-0.684554334554351
7283.596.0845543345543-12.5845543345543
7374.176.7868742368742-2.68687423687422
7459.772.1154456654457-12.4154456654457
7593.397.1868742368742-3.88687423687423
7661.348.772588522588512.5274114774115
7756.646.91544566544579.68455433455432


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.9362055660265840.1275888679468320.063794433973416
180.9092769357316820.1814461285366360.090723064268318
190.9298978833589470.1402042332821060.0701021166410528
200.9081727390034290.1836545219931430.0918272609965713
210.8984991467235340.2030017065529310.101500853276466
220.8571724750967070.2856550498065860.142827524903293
230.8016935699860580.3966128600278840.198306430013942
240.7687374052932720.4625251894134550.231262594706728
250.7394636881464750.5210726237070510.260536311853525
260.8316568950426870.3366862099146270.168343104957313
270.7705449373446070.4589101253107870.229455062655393
280.7637950913897550.472409817220490.236204908610245
290.7009594854603330.5980810290793340.299040514539667
300.6300148750159230.7399702499681540.369985124984077
310.8015869153527530.3968261692944940.198413084647247
320.8046716225566930.3906567548866140.195328377443307
330.801714638095240.3965707238095220.198285361904761
340.8132391544030940.3735216911938120.186760845596906
350.7631689665683060.4736620668633870.236831033431694
360.7908434892283780.4183130215432440.209156510771622
370.9318286703541260.1363426592917480.0681713296458738
380.9757167761798140.04856644764037190.0242832238201859
390.9633190418891110.07336191622177750.0366809581108887
400.9829873311209440.03402533775811170.0170126688790559
410.973670785533150.05265842893370130.0263292144668507
420.9623979883083420.07520402338331550.0376020116916578
430.9515659249918170.09686815001636550.0484340750081828
440.942403297153190.1151934056936220.0575967028468108
450.9756128640347390.04877427193052280.0243871359652614
460.965940263999740.06811947200052170.0340597360002608
470.9529764431415580.09404711371688320.0470235568584416
480.958101155487020.08379768902595920.0418988445129796
490.982325513346490.03534897330701880.0176744866535094
500.9692446736243920.06151065275121660.0307553263756083
510.9672778443783970.06544431124320550.0327221556216028
520.9493106734390720.1013786531218560.0506893265609278
530.9270951797393130.1458096405213730.0729048202606866
540.898748505749420.202502988501160.10125149425058
550.8378819167652280.3242361664695440.162118083234772
560.7636100189738270.4727799620523460.236389981026173
570.7116458943910590.5767082112178830.288354105608941
580.6342500220103070.7314999559793860.365749977989693
590.489833818568050.97966763713610.51016618143195
600.39634268192360.79268536384720.6036573180764


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.090909090909091NOK
10% type I error level130.295454545454545NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/10bl081258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/10bl081258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/1b32o1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/1b32o1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/2fjcb1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/2fjcb1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/3hjpd1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/3hjpd1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/4006s1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/4006s1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/5d0zx1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/5d0zx1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/6qvdx1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/6qvdx1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/77p2i1258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/77p2i1258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/8x7901258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/8x7901258731436.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/9tr541258731436.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258731534eozeykxx7p8s5eq/9tr541258731436.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