Home » date » 2008 » Nov » 22 »

Q2

*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, 22 Nov 2008 06:16:56 -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/22/t1227359960hie3xz7foddm5d5.htm/, Retrieved Sat, 22 Nov 2008 13:19:20 +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/22/t1227359960hie3xz7foddm5d5.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 «
91,2 0 99,2 0 108,2 0 101,5 0 106,9 0 104,4 0 77,9 0 60 0 99,5 0 95 0 105,6 0 102,5 0 93,3 0 97,3 0 127 0 111,7 0 96,4 0 133 0 72,2 0 95,8 0 124,1 0 127,6 0 110,7 0 104,6 0 112,7 1 115,3 1 139,4 1 119 1 97,4 1 154 1 81,5 1 88,8 1 127,7 1 105,1 1 114,9 1 106,4 1 104,5 1 121,6 1 141,4 1 99 1 126,7 1 134,1 1 81,3 1 88,6 1 132,7 1 132,9 1 134,4 1 103,7 1 119,7 1 115 1 132,9 1 108,5 1 113,9 1 142 1 97,7 1 92,2 1 128,8 1 134,9 1 128,2 1 114,8 1 117,9 1 119,1 1 120,7 1 129,1 1 117,6 1 129,2 1 100 1 87,3 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
X[t] = + 93.7593867924528 + 6.60165094339623Y[t] + 0.915393081760996M1[t] + 5.37429245283019M2[t] + 22.1498584905660M3[t] + 5.10875786163522M4[t] + 3.21765723270441M5[t] + 25.9432232704403M6[t] -21.9812106918239M7[t] -21.8723113207547M8[t] + 16.8833018867925M9[t] + 13.1822012578616M10[t] + 12.6011006289308M11[t] + 0.241100628930818t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)93.75938679245284.86162719.285600
Y6.601650943396234.4462791.48480.1434220.071711
M10.9153930817609965.8992420.15520.8772650.438632
M25.374292452830195.8856770.91310.3652420.182621
M322.14985849056605.8740893.77080.0004050.000203
M45.108757861635225.864490.87110.3875370.193769
M53.217657232704415.856890.54940.585010.292505
M625.94322327044035.8512964.43384.6e-052.3e-05
M7-21.98121069182395.847715-3.75890.0004210.00021
M8-21.87231132075475.84615-3.74130.0004450.000222
M916.88330188679256.1123242.76220.0078320.003916
M1013.18220125786166.1074972.15840.0353630.017682
M1112.60110062893086.1045992.06420.0438170.021908
t0.2411006289308180.1086122.21980.0306490.015325


Multiple Linear Regression - Regression Statistics
Multiple R0.883925035920019
R-squared0.781323469126207
Adjusted R-squared0.728679119101034
F-TEST (value)14.8415446055011
F-TEST (DF numerator)13
F-TEST (DF denominator)54
p-value1.9551027463649e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.65069079591412
Sum Squared Residuals5029.33497327044


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
191.294.9158805031447-3.71588050314473
299.299.6158805031446-0.415880503144636
3108.2116.632547169811-8.43254716981132
4101.599.83254716981131.66745283018868
5106.998.18254716981138.71745283018868
6104.4121.149213836478-16.7492138364780
777.973.46588050314474.43411949685534
86073.8158805031447-13.8158805031447
999.5112.812594339623-13.3125943396226
1095109.352594339623-14.3525943396226
11105.6109.012594339623-3.41259433962264
12102.596.65259433962265.84740566037736
1393.397.8090880503144-4.50908805031445
1497.3102.509088050314-5.20908805031447
15127119.5257547169817.47424528301887
16111.7102.7257547169818.97424528301887
1796.4101.075754716981-4.67575471698113
18133124.0424213836488.95757861635222
1972.276.3590880503145-4.15908805031446
2095.876.709088050314519.0909119496855
21124.1115.7058018867928.39419811320755
22127.6112.24580188679215.3541981132075
23110.7111.905801886792-1.20580188679245
24104.699.54580188679245.05419811320755
25112.7107.3039465408805.39605345911951
26115.3112.0039465408813.29605345911949
27139.4129.02061320754710.3793867924528
28119112.2206132075476.77938679245283
2997.4110.570613207547-13.1706132075472
30154133.53727987421420.4627201257862
3181.585.8539465408805-4.3539465408805
3288.886.20394654088052.5960534591195
33127.7125.2006603773582.49933962264151
34105.1121.740660377358-16.6406603773585
35114.9121.400660377358-6.50066037735849
36106.4109.040660377358-2.64066037735849
37104.5110.197154088050-5.6971540880503
38121.6114.8971540880506.70284591194968
39141.4131.9138207547179.48617924528302
4099115.113820754717-16.1138207547170
41126.7113.46382075471713.2361792452830
42134.1136.430487421384-2.33048742138365
4381.388.7471540880503-7.44715408805032
4488.689.0971540880503-0.497154088050317
45132.7128.0938679245284.60613207547169
46132.9124.6338679245288.2661320754717
47134.4124.29386792452810.1061320754717
48103.7111.933867924528-8.2338679245283
49119.7113.0903616352206.60963836477989
50115117.790361635220-2.79036163522013
51132.9134.807028301887-1.90702830188679
52108.5118.007028301887-9.50702830188679
53113.9116.357028301887-2.45702830188679
54142139.3236949685532.67630503144654
5597.791.64036163522016.05963836477987
5692.291.99036163522010.209638364779881
57128.8130.987075471698-2.18707547169810
58134.9127.5270754716987.3729245283019
59128.2127.1870754716981.01292452830187
60114.8114.827075471698-0.0270754716981177
61117.9115.983569182391.91643081761008
62119.1120.68356918239-1.58356918238994
63120.7137.700235849057-17.0002358490566
64129.1120.9002358490578.19976415094339
65117.6119.250235849057-1.65023584905661
66129.2142.216902515723-13.0169025157233
6710094.533569182395.46643081761006
6887.394.88356918239-7.58356918238994


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.5964834028557820.8070331942884370.403516597144218
180.7694324286843050.461135142631390.230567571315695
190.746273049410630.507453901178740.25372695058937
200.895692352448750.2086152951025010.104307647551251
210.8724604859376670.2550790281246660.127539514062333
220.8930775842278430.2138448315443140.106922415772157
230.8547931230643670.2904137538712660.145206876935633
240.808714267100190.382571465799620.19128573289981
250.7326434981893290.5347130036213420.267356501810671
260.6467229432681630.7065541134636740.353277056731837
270.5863037296786980.8273925406426040.413696270321302
280.5408367842672550.918326431465490.459163215732745
290.6663267318573450.6673465362853110.333673268142655
300.8348122759245960.3303754481508080.165187724075404
310.800414771798910.399170456402180.19958522820109
320.7437374407568890.5125251184862220.256262559243111
330.6661653574271270.6676692851457460.333834642572873
340.8497345106158840.3005309787682320.150265489384116
350.8480632089736110.3038735820527770.151936791026389
360.802131761421410.3957364771571790.197868238578589
370.8198982263303070.3602035473393860.180101773669693
380.7641614072771020.4716771854457960.235838592722898
390.8041827481947650.3916345036104710.195817251805235
400.9310570819643360.1378858360713280.0689429180356642
410.943496559868210.1130068802635790.0565034401317897
420.9166521434435650.1666957131128710.0833478565564354
430.9500430755392310.09991384892153710.0499569244607686
440.9161028146960060.1677943706079890.0838971853039945
450.8685154063013930.2629691873972130.131484593698607
460.80370649920450.3925870015910.1962935007955
470.7416140145359350.516771970928130.258385985464065
480.716100257484080.567799485031840.28389974251592
490.5865413852507570.8269172294984860.413458614749243
500.4585587020360970.9171174040721940.541441297963903
510.4146479063796620.8292958127593230.585352093620338


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 level10.0285714285714286OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/10n7kh1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/10n7kh1227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/1dwuq1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/1dwuq1227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/2lnm11227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/2lnm11227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/3xwdm1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/3xwdm1227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/4yjvo1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/4yjvo1227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/5oom11227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/5oom11227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/6ea8z1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/6ea8z1227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/7w85l1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/7w85l1227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/8e6781227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/8e6781227359805.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/953zg1227359805.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227359960hie3xz7foddm5d5/953zg1227359805.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