Home » date » 2008 » Nov » 27 »

W6Q3 (2)

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 27 Nov 2008 06:15:57 -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/Nov/27/t1227792212c47e5hs3x3dtkt9.htm/, Retrieved Thu, 27 Nov 2008 13:23:43 +0000
 
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/Nov/27/t1227792212c47e5hs3x3dtkt9.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
115.6 0 120.3 0 121.9 0 121.7 0 118.9 0 113.4 0 114 0 117.5 0 120.9 0 125.1 0 124.7 0 128.2 0 149.7 0 163.6 0 173.9 0 164.5 0 154.2 0 147.9 0 159.3 0 170.3 0 170 0 174.2 0 190.8 0 179.9 0 240.8 0 241.9 0 241.1 0 239.6 0 220.8 0 209.3 0 209.9 0 228.3 0 242.1 0 226.4 0 231.5 0 229.7 0 257.6 0 260 0 264.4 0 268.8 0 271.4 0 273.8 0 277.4 0 268.2 0 264.6 0 266.6 0 266 0 267.4 0 289.8 0 294 0 310.3 0 311.7 0 302.1 0 298.2 0 299.2 0 296.2 0 299 0 300 0 299.4 0 300.2 0 470.2 0 472.1 0 484.8 0 513.4 1 547.2 1 548.1 1 544.7 1 521.1 1 459 1 413.2 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 63.837894736842 + 133.843609022556D[t] + 54.7091812865496M1[t] + 55.0413450292399M2[t] + 58.0901754385965M3[t] + 35.2984043441938M4[t] + 30.0805680868839M5[t] + 21.7293984962406M6[t] + 19.6615622389307M7[t] + 14.8103926482874M8[t] + 2.77588972431076M9[t] -9.94194653299918M10[t] + 5.76783625730993M11[t] + 4.36783625730994t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)63.83789473684215.7491374.05340.0001577.9e-05
D133.84360902255614.8696269.001100
M154.709181286549618.6210682.9380.0047890.002394
M255.041345029239918.6099652.95760.0045340.002267
M358.090175438596518.6013243.12290.0028330.001417
M435.298404344193818.7889281.87870.0654970.032748
M530.080568086883918.7705841.60250.1146630.057332
M621.729398496240618.7546711.15860.2515310.125766
M719.661562238930718.7411961.04910.2986350.149317
M814.810392648287418.7301640.79070.4324410.216221
M92.7758897243107618.7215790.14830.8826610.44133
M10-9.9419465329991818.715444-0.53120.597370.298685
M115.7678362573099319.4180230.2970.7675390.383769
t4.367836257309940.21431920.380100


Multiple Linear Regression - Regression Statistics
Multiple R0.97198092869887
R-squared0.944746925754318
Adjusted R-squared0.931920319232999
F-TEST (value)73.6552512298603
F-TEST (DF numerator)13
F-TEST (DF denominator)56
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation30.7007198242396
Sum Squared Residuals52781.9150726817


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1115.6122.914912280702-7.3149122807023
2120.3127.614912280702-7.31491228070157
3121.9135.031578947368-13.1315789473684
4121.7116.6076441102765.09235588972419
5118.9115.7576441102763.14235588972434
6113.4111.7743107769421.62568922305774
7114114.074310776942-0.0743107769423977
8117.5113.5909774436093.90902255639095
9120.9105.92431077694214.9756892230576
10125.197.574310776942327.5256892230577
11124.7117.6519298245617.04807017543864
12128.2116.25192982456111.9480701754386
13149.7175.328947368421-25.628947368421
14163.6180.028947368421-16.428947368421
15173.9187.445614035088-13.5456140350877
16164.5169.021679197995-4.52167919799496
17154.2168.171679197995-13.9716791979950
18147.9164.188345864662-16.2883458646617
19159.3166.488345864662-7.18834586466163
20170.3166.0050125313284.2949874686717
21170158.33834586466211.6616541353384
22174.2149.98834586466224.2116541353383
23190.8170.06596491228120.7340350877193
24179.9168.66596491228111.2340350877193
25240.8227.7429824561413.0570175438598
26241.9232.4429824561409.4570175438596
27241.1239.8596491228071.24035087719295
28239.6221.43571428571418.1642857142857
29220.8220.5857142857140.214285714285712
30209.3216.602380952381-7.30238095238096
31209.9218.902380952381-9.00238095238093
32228.3218.4190476190489.8809523809524
33242.1210.75238095238131.3476190476191
34226.4202.40238095238123.9976190476191
35231.5222.489.01999999999997
36229.7221.088.62
37257.6280.157017543860-22.5570175438595
38260284.85701754386-24.8570175438597
39264.4292.273684210526-27.8736842105264
40268.8273.849749373434-5.04974937343354
41271.4272.999749373434-1.59974937343361
42273.8269.01641604014.78358395989974
43277.4271.31641604016.08358395989974
44268.2270.833082706767-2.63308270676692
45264.6263.1664160401001.43358395989976
46266.6254.816416040111.7835839598998
47266274.894035087719-8.8940350877193
48267.4273.494035087719-6.0940350877193
49289.8332.571052631579-42.7710526315788
50294337.271052631579-43.271052631579
51310.3344.687719298246-34.3877192982456
52311.7326.263784461153-14.5637844611529
53302.1325.413784461153-23.3137844611529
54298.2321.430451127820-23.2304511278196
55299.2323.730451127820-24.5304511278196
56296.2323.247117794486-27.0471177944862
57299315.580451127820-16.5804511278196
58300307.230451127820-7.2304511278196
59299.4327.308070175439-27.9080701754387
60300.2325.908070175439-25.7080701754386
61470.2384.98508771929885.2149122807018
62472.1389.68508771929882.4149122807017
63484.8397.10175438596587.698245614035
64513.4512.5214285714290.87857142857141
65547.2511.67142857142935.5285714285714
66548.1507.68809523809540.4119047619048
67544.7509.98809523809534.7119047619048
68521.1509.50476190476211.5952380952381
69459501.838095238095-42.8380952380953
70413.2493.488095238095-80.2880952380952


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.006310046843167120.01262009368633420.993689953156833
180.001208581369724570.002417162739449150.998791418630275
190.0001932905877619620.0003865811755239240.999806709412238
207.07521739968231e-050.0001415043479936460.999929247826003
211.34286962969354e-052.68573925938708e-050.999986571303703
222.52463853339033e-065.04927706678066e-060.999997475361467
236.88001675690013e-061.37600335138003e-050.999993119983243
241.43127513325214e-062.86255026650429e-060.999998568724867
254.04284829785219e-058.08569659570439e-050.999959571517022
263.14033838812095e-056.2806767762419e-050.99996859661612
271.13786544257290e-052.27573088514581e-050.999988621345574
284.8523842593926e-069.7047685187852e-060.99999514761574
291.23811624296263e-062.47623248592526e-060.999998761883757
303.29539136680130e-076.59078273360261e-070.999999670460863
311.04055441845221e-072.08110883690442e-070.999999895944558
322.52367006212459e-085.04734012424918e-080.9999999747633
331.61755756509510e-083.23511513019019e-080.999999983824424
349.02708554182095e-091.80541710836419e-080.999999990972914
354.0655935225616e-098.1311870451232e-090.999999995934406
361.79451216468308e-093.58902432936615e-090.999999998205488
371.56119140644418e-093.12238281288837e-090.999999998438809
381.56355317520187e-093.12710635040374e-090.999999998436447
391.1686962723879e-092.3373925447758e-090.999999998831304
403.67696615505176e-107.35393231010352e-100.999999999632303
418.5688111102323e-111.71376222204646e-100.999999999914312
423.20942619589646e-116.41885239179291e-110.999999999967906
431.12658185304108e-112.25316370608217e-110.999999999988734
443.55253306702863e-127.10506613405725e-120.999999999996448
455.90117063298988e-121.18023412659798e-110.9999999999941
462.04146826871416e-104.08293653742832e-100.999999999795853
472.9668244823087e-095.9336489646174e-090.999999997033175
483.08929610370999e-066.17859220741997e-060.999996910703896
493.55988329512363e-067.11976659024726e-060.999996440116705
503.19264338186226e-066.38528676372452e-060.999996807356618
511.09279495923175e-062.18558991846350e-060.99999890720504
522.96585682510153e-075.93171365020307e-070.999999703414318
532.66726696200074e-075.33453392400147e-070.999999733273304


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level360.972972972972973NOK
5% type I error level371NOK
10% type I error level371NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/10fn301227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/10fn301227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/1q4kc1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/1q4kc1227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/2h5g01227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/2h5g01227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/3yury1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/3yury1227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/46xrq1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/46xrq1227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/5eelh1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/5eelh1227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/6q42j1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/6q42j1227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/7zj481227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/7zj481227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/8yhvz1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/8yhvz1227791753.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/9bmqa1227791753.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227792212c47e5hs3x3dtkt9/9bmqa1227791753.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