Home » date » 2008 » Dec » 16 »

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 16 Dec 2008 01:21:50 -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/16/t1229415989y0n49mesw9ntw6n.htm/, Retrieved Tue, 16 Dec 2008 09:26:41 +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/16/t1229415989y0n49mesw9ntw6n.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 «
111,8 142 129,5 100,9 109 103,7 102,1 120,7 114,2 118 159,6 123,5 110,6 142,4 111,3 115,1 145,1 126,5 114,8 148,9 119,6 110,1 136,9 116,5 110,8 119,9 116,7 95,6 133,9 119,4 108,1 131 124 116 133,2 130,6 111,2 135 120,1 98,2 99,1 113,2 97,6 110,8 111,1 113,3 152,3 126 107 131,9 115,8 107,9 127,9 111 117,5 142 128,7 105,4 118,7 112,6 104,2 116,3 114,7 98 125,7 118,5 106,7 122,7 124,8 113,4 125,3 128,6 111,7 123,2 127 94,2 88,8 111,8 92,5 94,9 100,6 109,8 136,8 122,9 105,1 128,7 117,8 104,4 110,8 108,1 111,1 132,8 129,6 98,7 112 111,4 100,5 104,5 110 93,7 112 115,2 103,2 110,6 118,8 104,1 107,2 116,2 106,9 116,2 126,3 89,2 85,7 106,7 88,7 94,2 96,5 110,7 127,2 119,1 98,8 108,9 109,6 102,5 111,9 110,3 101,8 126,3 118,8 96 105,9 104,5 98,3 101,3 107,7 94 105,5 127,7 105,1 106,3 118,5 114 117,3 120,1 115,5 110,9 127,4 94,3 85,4 107,8 100,8 81,9 106,5 111,2 121,5 124,6 103,4 106,3 101,9 106,7 111,8 106,5 112,2 122,8 119,4 100,7 101,8 103,3 99 92,2 99,6 91,5 106,3 120,9 102,7 103 111,7 111,4 97,7 123,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 time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Cons.[t] = + 47.420460898742 + 0.475118615783917Interm.[t] + 0.162045348343677Invest.[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)47.42046089874212.1094213.9160.0002430.000122
Interm.0.4751186157839170.15872.99380.004070.002035
Invest.0.1620453483436770.068522.36490.0214610.01073


Multiple Linear Regression - Regression Statistics
Multiple R0.693925573186993
R-squared0.481532701122897
Adjusted R-squared0.463340866074578
F-TEST (value)26.4697156633125
F-TEST (DF numerator)2
F-TEST (DF denominator)57
p-value7.40557926093288e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.31100112621111
Sum Squared Residuals2270.23790725716


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1129.5123.5491616081865.9508383918136
2103.7113.0228722008-9.32287220080007
3114.2115.488945115362-1.28894511536182
4123.5129.346895156895-5.84689515689515
5111.3123.043837408583-11.7438374085829
6126.5125.6193936201380.880606379861531
7119.6126.092630359109-6.49263035910928
8116.5121.915028684801-5.41502868480073
9116.7119.492840794007-2.79284079400695
10119.4114.5396727109034.8603272890971
11124120.0087238980053.9912761019948
12130.6124.1186607290546.48133927094576
13120.1122.12977300031-2.02977300031006
14113.2110.1358029895813.06419701041890
15111.1111.746662395732-0.646662395731787
16126125.9309066198020.0690933801980991
17115.8119.631934234152-3.83193423415220
18111119.411359594983-8.41135959498302
19128.7126.2573377181542.44266228184552
20112.6116.732745850761-4.1327458507614
21114.7115.773694675796-1.07369467579586
22118.5114.3511855323664.14881446763385
23124.8117.9985814446556.8014185553448
24128.6121.6031940761016.996805923899
25127120.4551971977476.54480280225338
26111.8106.5662614385065.23373856149444
27100.6106.747036416569-6.14703641656934
28122.9121.7562885652311.14371143476882
29117.8118.210663749463-0.410663749462989
30108.1114.977468983062-6.87746898306243
31129.6121.7257613723767.87423862762442
32111.4112.463747291107-1.06374729110650
33110112.10362068694-2.10362068693998
34115.2110.0881542121875.11184578781308
35118.8114.3749175744534.42508242554701
36116.2114.251570144291.94842985571
37126.3117.0403104035789.25968959642192
38106.7103.6883277797213.01167222027943
3996.5104.82815393275-8.32815393274988
40119.1120.628259975337-1.52825997533742
41109.6112.008918572819-2.40891857281950
42110.3114.252993496251-3.95299349625103
43118.8116.2538634813512.54613651864876
44104.5110.192450403593-5.6924504035935
45107.7110.539814617516-2.83981461751559
46127.7109.17739503268818.5226049673118
47118.5114.5808479465653.91915205343539
48120.1120.591902458822-0.491902458821932
49127.4120.2674901530987.13250984690174
50107.8106.0628191157151.73718088428455
51106.5108.583931399108-2.08393139910804
52124.6119.9421607976704.65783920232959
53101.9113.773146299732-11.8731462997319
54106.5116.232287147709-9.7322871477091
55119.4120.627938366301-1.22793836630110
56103.3111.761121969569-8.46112196956883
5799.6109.397784978637-9.79778497863687
58120.9108.11923477190312.7807652280967
59111.7112.905813619149-1.20581361914908
60123.9116.1805052302487.71949476975234


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.837407303755890.3251853924882220.162592696244111
70.7669383862280550.4661232275438910.233061613771946
80.6648731095741750.6702537808516490.335126890425825
90.5458743893984540.9082512212030930.454125610601546
100.5396352803631720.9207294392736570.460364719636828
110.5499448377257960.9001103245484090.450055162274204
120.6671480765327480.6657038469345030.332851923467252
130.5746380395784860.8507239208430280.425361960421514
140.5054704940261190.9890590119477620.494529505973881
150.410314953556460.820629907112920.58968504644354
160.3319951441390030.6639902882780060.668004855860997
170.2767952841366250.5535905682732490.723204715863375
180.3253147102112560.6506294204225110.674685289788744
190.2836954586430880.5673909172861760.716304541356912
200.2391708737217840.4783417474435670.760829126278216
210.1809541578304130.3619083156608250.819045842169587
220.1544835248507570.3089670497015140.845516475149243
230.1760791935710720.3521583871421440.823920806428928
240.1956747744807660.3913495489615320.804325225519234
250.1917439238224450.3834878476448910.808256076177555
260.1674066394561360.3348132789122730.832593360543864
270.1727757555805640.3455515111611280.827224244419436
280.1309446014250620.2618892028501240.869055398574938
290.0969687074419230.1939374148838460.903031292558077
300.1102514281893720.2205028563787440.889748571810628
310.1188381952921390.2376763905842780.881161804707861
320.08620950169336430.1724190033867290.913790498306636
330.06228653556166430.1245730711233290.937713464438336
340.05364633626512510.1072926725302500.946353663734875
350.04172770129641870.08345540259283750.958272298703581
360.02764707231021780.05529414462043570.972352927689782
370.03878383468784330.07756766937568660.961216165312157
380.02777325457448760.05554650914897520.972226745425512
390.0359604684787440.0719209369574880.964039531521256
400.02400091299248570.04800182598497130.975999087007514
410.01611767938629040.03223535877258090.98388232061371
420.01228927533648750.02457855067297500.987710724663513
430.007618014516605840.01523602903321170.992381985483394
440.00787881865603090.01575763731206180.99212118134397
450.005268798561585450.01053759712317090.994731201438415
460.08235417224186390.1647083444837280.917645827758136
470.06100476432419790.1220095286483960.938995235675802
480.03727119792093310.07454239584186610.962728802079067
490.04125053310896240.08250106621792480.958749466891038
500.02591347594860090.05182695189720190.97408652405140
510.01562392139202840.03124784278405690.984376078607972
520.01098152742913760.02196305485827530.989018472570862
530.02047546168076330.04095092336152660.979524538319237
540.02730601620964480.05461203241928970.972693983790355


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level90.183673469387755NOK
10% type I error level180.36734693877551NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/10kmm31229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/10kmm31229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/1cch21229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/1cch21229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/28jcn1229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/28jcn1229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/3rz3a1229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/3rz3a1229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/4yi241229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/4yi241229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/5l0ek1229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/5l0ek1229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/6e2gd1229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/6e2gd1229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/7t77n1229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/7t77n1229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/8ja361229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/8ja361229415703.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/9ygv41229415703.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229415989y0n49mesw9ntw6n/9ygv41229415703.ps (open in new window)


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