Home » date » 2010 » Nov » 11 »

WS6 - Mini Tutorial - Hyp 1 - Central tend. v2

*The author of this computation has been verified*
R Software Module: /rwasp_centraltendency.wasp (opens new window with default values)
Title produced by software: Central Tendency
Date of computation: Thu, 11 Nov 2010 15:32:39 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/11/t1289489467ulnhefwrrdakgp9.htm/, Retrieved Thu, 11 Nov 2010 16:31:08 +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/2010/Nov/11/t1289489467ulnhefwrrdakgp9.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
2.4 2.4 2.5 2.6 2.4 2.6 2.4 2.3 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.5 2.1 2.1 2 2 2 1.9 1.9 2 1.8 1.6 1.3 1.4 1.4 1.5 1.7 1.6 1.5 1.6 1.5 1.1 1.1 1.1 1.4 1.3 1.4 1.3 1.1 1 0.9 0.8 0.8 0.8 0.8 1 1.1 1 0.9 1.1 1.2 1.2 1.4 1.5 1.7 1.9 1.9 1.9 1.7 1.7 2.1 2 2 2.5 2.4 2.5 2.5 2 1.9 2.2 2.7 3.1 2.8 2.6 2.3 2.2 2.2 2 2 2.6 2.5 2.5 2.3 2 1.9 2 2.1 2.1 2.3 2.3 2.3 2.1 2.4 2.5 2.1 1.8 1.9 1.9 2.1 2.2 2 2.2 2 1.9 1.6 1.7 2 2.5 2.4 2.3 2.3 2.1 2.4 2.2 2.4 1.9 2.1 2.1 2.1 2 2.1 2.2 2.2 2.6 2.5 2.3 2.2 2.4 2.3 2.2 2.5 2.5 2.5 2.4 2.3 1.7 1.6 1.9 1.9 1.8 1.8 1.9 1.9 1.9 1.9 1.8 1.7 2.1 2.6 3.1 3.1 3.2 3.3 3.6 3.3 3.7 4 4 3.8 3.6 3.2 2.1 1.6 1.1 1.2 0.6 0.6 0 -0.1 -0.6 -0.2 -0.3 -0.1 0.5 0.9
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean1.962777777777780.05629261227831834.8674132952571
Geometric MeanNaN
Harmonic Mean0
Quadratic Mean2.10231354041737
Winsorized Mean ( 1 / 60 )1.964444444444440.055891967168195335.1471695124428
Winsorized Mean ( 2 / 60 )1.963333333333330.055211910481069135.5599600924246
Winsorized Mean ( 3 / 60 )1.963333333333330.054550246201511935.991282717234
Winsorized Mean ( 4 / 60 )1.961111111111110.054164776582917836.2063915856638
Winsorized Mean ( 5 / 60 )1.963888888888890.05358508951244236.6499133762367
Winsorized Mean ( 6 / 60 )1.970555555555560.048845753641471940.3424127718336
Winsorized Mean ( 7 / 60 )1.974444444444440.04820890180941640.9560137306178
Winsorized Mean ( 8 / 60 )1.970.04754624655809241.4333442197809
Winsorized Mean ( 9 / 60 )1.980.046023770610459843.0212469282125
Winsorized Mean ( 10 / 60 )1.974444444444440.045225980776492543.6573051716043
Winsorized Mean ( 11 / 60 )1.974444444444440.045225980776492543.6573051716043
Winsorized Mean ( 12 / 60 )1.974444444444440.045225980776492543.6573051716043
Winsorized Mean ( 13 / 60 )1.960.041440540968406647.2966798742869
Winsorized Mean ( 14 / 60 )1.952222222222220.040599599392851948.0847656483511
Winsorized Mean ( 15 / 60 )1.943888888888890.03978654942488748.8579411129572
Winsorized Mean ( 16 / 60 )1.952777777777780.038520356300362350.6946966572947
Winsorized Mean ( 17 / 60 )1.952777777777780.038520356300362350.6946966572947
Winsorized Mean ( 18 / 60 )1.952777777777780.038520356300362350.6946966572947
Winsorized Mean ( 19 / 60 )1.963333333333330.037104211790421552.9140288553487
Winsorized Mean ( 20 / 60 )1.963333333333330.037104211790421552.9140288553487
Winsorized Mean ( 21 / 60 )1.951666666666670.036048410446466954.1401588168487
Winsorized Mean ( 22 / 60 )1.951666666666670.036048410446466954.1401588168487
Winsorized Mean ( 23 / 60 )1.951666666666670.036048410446466954.1401588168487
Winsorized Mean ( 24 / 60 )1.951666666666670.036048410446466954.1401588168487
Winsorized Mean ( 25 / 60 )1.951666666666670.036048410446466954.1401588168487
Winsorized Mean ( 26 / 60 )1.966111111111110.034189778610655257.5058158024566
Winsorized Mean ( 27 / 60 )1.966111111111110.034189778610655257.5058158024566
Winsorized Mean ( 28 / 60 )1.966111111111110.034189778610655257.5058158024567
Winsorized Mean ( 29 / 60 )1.982222222222220.032227037890107561.5080488930287
Winsorized Mean ( 30 / 60 )1.982222222222220.032227037890107561.5080488930287
Winsorized Mean ( 31 / 60 )1.982222222222220.032227037890107561.5080488930287
Winsorized Mean ( 32 / 60 )20.030186673510076866.2544019410541
Winsorized Mean ( 33 / 60 )20.030186673510076866.2544019410541
Winsorized Mean ( 34 / 60 )1.981111111111110.028535415708408769.4263974057796
Winsorized Mean ( 35 / 60 )1.981111111111110.028535415708408769.4263974057796
Winsorized Mean ( 36 / 60 )1.981111111111110.028535415708408769.4263974057796
Winsorized Mean ( 37 / 60 )2.001666666666670.026266492262321776.2060897464404
Winsorized Mean ( 38 / 60 )2.001666666666670.026266492262321776.2060897464404
Winsorized Mean ( 39 / 60 )2.001666666666670.026266492262321776.2060897464404
Winsorized Mean ( 40 / 60 )2.001666666666670.026266492262321776.2060897464404
Winsorized Mean ( 41 / 60 )2.024444444444440.02391821132862884.6402942356047
Winsorized Mean ( 42 / 60 )2.024444444444440.02391821132862884.6402942356047
Winsorized Mean ( 43 / 60 )2.024444444444440.02391821132862884.6402942356047
Winsorized Mean ( 44 / 60 )2.024444444444440.02391821132862884.6402942356047
Winsorized Mean ( 45 / 60 )2.024444444444440.02391821132862884.6402942356047
Winsorized Mean ( 46 / 60 )2.024444444444440.02391821132862884.6402942356047
Winsorized Mean ( 47 / 60 )2.050555555555560.021424983852942295.7086161478699
Winsorized Mean ( 48 / 60 )2.050555555555560.021424983852942295.7086161478699
Winsorized Mean ( 49 / 60 )2.050555555555560.021424983852942295.7086161478699
Winsorized Mean ( 50 / 60 )2.050555555555560.021424983852942295.7086161478699
Winsorized Mean ( 51 / 60 )2.050555555555560.021424983852942295.7086161478699
Winsorized Mean ( 52 / 60 )2.050555555555560.021424983852942295.7086161478699
Winsorized Mean ( 53 / 60 )2.021111111111110.0188592896213255107.167934301497
Winsorized Mean ( 54 / 60 )2.051111111111110.0161173707311543127.260900386587
Winsorized Mean ( 55 / 60 )2.051111111111110.0161173707311543127.260900386587
Winsorized Mean ( 56 / 60 )2.051111111111110.0161173707311543127.260900386587
Winsorized Mean ( 57 / 60 )2.051111111111110.0161173707311543127.260900386587
Winsorized Mean ( 58 / 60 )2.051111111111110.0161173707311543127.260900386587
Winsorized Mean ( 59 / 60 )2.083888888888890.0134206611537271155.274681703008
Winsorized Mean ( 60 / 60 )2.083888888888890.0134206611537271155.274681703008
Trimmed Mean ( 1 / 60 )1.965730337078650.053855642576185536.4999885443365
Trimmed Mean ( 2 / 60 )1.967045454545450.051632084947112438.0973469609126
Trimmed Mean ( 3 / 60 )1.968965517241380.049598887330065739.6977759629668
Trimmed Mean ( 4 / 60 )1.970930232558140.047647874842169741.3644939902715
Trimmed Mean ( 5 / 60 )1.973529411764710.045634667527734943.2462756645542
Trimmed Mean ( 6 / 60 )1.975595238095240.043582259386102945.3302620360522
Trimmed Mean ( 7 / 60 )1.976506024096390.042450655801144946.5600822129838
Trimmed Mean ( 8 / 60 )1.976829268292680.041352250840073247.8046352528167
Trimmed Mean ( 9 / 60 )1.977777777777780.040281198541109649.099278308696
Trimmed Mean ( 10 / 60 )1.97750.03937353371533650.2240925159776
Trimmed Mean ( 11 / 60 )1.977848101265820.038512445152268451.3560770666707
Trimmed Mean ( 12 / 60 )1.978205128205130.037578645095870852.6417363680442
Trimmed Mean ( 13 / 60 )1.978205128205130.03656320665047854.1037099703963
Trimmed Mean ( 14 / 60 )1.980263157894740.035948525824593955.0860741148934
Trimmed Mean ( 15 / 60 )1.982666666666670.035379017361995456.0407499840985
Trimmed Mean ( 16 / 60 )1.985810810810810.034848055326564956.9848386718157
Trimmed Mean ( 17 / 60 )1.988356164383560.034412681720214257.7797505160893
Trimmed Mean ( 18 / 60 )1.990972222222220.033938464047795558.6641817207266
Trimmed Mean ( 19 / 60 )1.993661971830990.033421342043939259.6523613327649
Trimmed Mean ( 20 / 60 )1.995714285714290.033004273113534160.4683605316518
Trimmed Mean ( 21 / 60 )1.997826086956520.032548694754270161.3796068333715
Trimmed Mean ( 22 / 60 )2.000735294117650.032143745830278462.2433771310193
Trimmed Mean ( 23 / 60 )2.003731343283580.031699101466738463.2109823486979
Trimmed Mean ( 24 / 60 )2.006818181818180.031210321686219864.2998236927575
Trimmed Mean ( 25 / 60 )2.010.03067225325692465.5315402870266
Trimmed Mean ( 26 / 60 )2.010.030078863978804366.8243322426135
Trimmed Mean ( 27 / 60 )2.015873015873020.02960936570862268.0822762537602
Trimmed Mean ( 28 / 60 )2.018548387096770.029090752477932369.3879743615435
Trimmed Mean ( 29 / 60 )2.021311475409840.028516818298792770.8813814441357
Trimmed Mean ( 30 / 60 )2.023333333333330.028073865487959572.0717755879081
Trimmed Mean ( 31 / 60 )2.025423728813560.027582766043026573.4307692583874
Trimmed Mean ( 32 / 60 )2.027586206896550.027037266937379374.9922768300738
Trimmed Mean ( 33 / 60 )2.028947368421050.02662870932941476.1939808393147
Trimmed Mean ( 34 / 60 )2.030357142857140.026173834949477677.5720159761178
Trimmed Mean ( 35 / 60 )2.032727272727270.025801871999541478.7821625021395
Trimmed Mean ( 36 / 60 )2.035185185185190.025384370039928480.174736736974
Trimmed Mean ( 37 / 60 )2.03773584905660.024915051729327781.7873416918485
Trimmed Mean ( 38 / 60 )2.039423076923080.024611176066198282.8657302453778
Trimmed Mean ( 39 / 60 )2.041176470588240.024267683938601984.1108890223099
Trimmed Mean ( 40 / 60 )2.0430.023879114749339585.5559354459115
Trimmed Mean ( 41 / 60 )2.044897959183670.023438952447942687.2435730105834
Trimmed Mean ( 42 / 60 )2.045833333333330.023175373852785588.2761739391505
Trimmed Mean ( 43 / 60 )2.04680851063830.022874136016731989.4813473672231
Trimmed Mean ( 44 / 60 )2.047826086956520.02252981572138390.8940451302907
Trimmed Mean ( 45 / 60 )2.048888888888890.022135912288520192.5594961790422
Trimmed Mean ( 46 / 60 )2.050.021684543705982894.5373823768496
Trimmed Mean ( 47 / 60 )2.051162790697670.021166022512961396.9082778515245
Trimmed Mean ( 48 / 60 )2.051190476190480.020846545273829898.3947435532871
Trimmed Mean ( 49 / 60 )2.051190476190480.020476402384676100.173381908413
Trimmed Mean ( 50 / 60 )2.051250.0200469188579243102.322457358037
Trimmed Mean ( 51 / 60 )2.051282051282050.0195472897339424104.939461132566
Trimmed Mean ( 52 / 60 )2.051282051282050.0189638086570489108.168252927377
Trimmed Mean ( 53 / 60 )2.051351351351350.0182786894937371112.226390850078
Trimmed Mean ( 54 / 60 )2.052777777777780.0177986721892066115.333197665308
Trimmed Mean ( 55 / 60 )2.052857142857140.0175899261320498116.706410672
Trimmed Mean ( 56 / 60 )2.052941176470590.0173370487187437118.413532186195
Trimmed Mean ( 57 / 60 )2.05303030303030.0170313979855221120.543851114015
Trimmed Mean ( 58 / 60 )2.0531250.0166620157201085123.221885904368
Trimmed Mean ( 59 / 60 )2.053225806451610.0162147379173913126.627134950445
Trimmed Mean ( 60 / 60 )2.051666666666670.0160316894279228127.975699372845
Median2
Midrange1.7
Midmean - Weighted Average at Xnp2.06857142857143
Midmean - Weighted Average at X(n+1)p2.06857142857143
Midmean - Empirical Distribution Function2.06857142857143
Midmean - Empirical Distribution Function - Averaging2.06857142857143
Midmean - Empirical Distribution Function - Interpolation2.06857142857143
Midmean - Closest Observation2.06857142857143
Midmean - True Basic - Statistics Graphics Toolkit2.06857142857143
Midmean - MS Excel (old versions)2.06857142857143
Number of observations180
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/11/t1289489467ulnhefwrrdakgp9/1wn9h1289489555.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/11/t1289489467ulnhefwrrdakgp9/1wn9h1289489555.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/11/t1289489467ulnhefwrrdakgp9/2wn9h1289489555.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/11/t1289489467ulnhefwrrdakgp9/2wn9h1289489555.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
 
R code (references can be found in the software module):
geomean <- function(x) {
return(exp(mean(log(x))))
}
harmean <- function(x) {
return(1/mean(1/x))
}
quamean <- function(x) {
return(sqrt(mean(x*x)))
}
winmean <- function(x) {
x <-sort(x[!is.na(x)])
n<-length(x)
denom <- 3
nodenom <- n/denom
if (nodenom>40) denom <- n/40
sqrtn = sqrt(n)
roundnodenom = floor(nodenom)
win <- array(NA,dim=c(roundnodenom,2))
for (j in 1:roundnodenom) {
win[j,1] <- (j*x[j+1]+sum(x[(j+1):(n-j)])+j*x[n-j])/n
win[j,2] <- sd(c(rep(x[j+1],j),x[(j+1):(n-j)],rep(x[n-j],j)))/sqrtn
}
return(win)
}
trimean <- function(x) {
x <-sort(x[!is.na(x)])
n<-length(x)
denom <- 3
nodenom <- n/denom
if (nodenom>40) denom <- n/40
sqrtn = sqrt(n)
roundnodenom = floor(nodenom)
tri <- array(NA,dim=c(roundnodenom,2))
for (j in 1:roundnodenom) {
tri[j,1] <- mean(x,trim=j/n)
tri[j,2] <- sd(x[(j+1):(n-j)]) / sqrt(n-j*2)
}
return(tri)
}
midrange <- function(x) {
return((max(x)+min(x))/2)
}
q1 <- function(data,n,p,i,f) {
np <- n*p;
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q2 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q3 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
q4 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- (data[i]+data[i+1])/2
} else {
qvalue <- data[i+1]
}
}
q5 <- function(data,n,p,i,f) {
np <- (n-1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i+1]
} else {
qvalue <- data[i+1] + f*(data[i+2]-data[i+1])
}
}
q6 <- function(data,n,p,i,f) {
np <- n*p+0.5
i <<- floor(np)
f <<- np - i
qvalue <- data[i]
}
q7 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- f*data[i] + (1-f)*data[i+1]
}
}
q8 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
if (f == 0.5) {
qvalue <- (data[i]+data[i+1])/2
} else {
if (f < 0.5) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
}
}
midmean <- function(x,def) {
x <-sort(x[!is.na(x)])
n<-length(x)
if (def==1) {
qvalue1 <- q1(x,n,0.25,i,f)
qvalue3 <- q1(x,n,0.75,i,f)
}
if (def==2) {
qvalue1 <- q2(x,n,0.25,i,f)
qvalue3 <- q2(x,n,0.75,i,f)
}
if (def==3) {
qvalue1 <- q3(x,n,0.25,i,f)
qvalue3 <- q3(x,n,0.75,i,f)
}
if (def==4) {
qvalue1 <- q4(x,n,0.25,i,f)
qvalue3 <- q4(x,n,0.75,i,f)
}
if (def==5) {
qvalue1 <- q5(x,n,0.25,i,f)
qvalue3 <- q5(x,n,0.75,i,f)
}
if (def==6) {
qvalue1 <- q6(x,n,0.25,i,f)
qvalue3 <- q6(x,n,0.75,i,f)
}
if (def==7) {
qvalue1 <- q7(x,n,0.25,i,f)
qvalue3 <- q7(x,n,0.75,i,f)
}
if (def==8) {
qvalue1 <- q8(x,n,0.25,i,f)
qvalue3 <- q8(x,n,0.75,i,f)
}
midm <- 0
myn <- 0
roundno4 <- round(n/4)
round3no4 <- round(3*n/4)
for (i in 1:n) {
if ((x[i]>=qvalue1) & (x[i]<=qvalue3)){
midm = midm + x[i]
myn = myn + 1
}
}
midm = midm / myn
return(midm)
}
(arm <- mean(x))
sqrtn <- sqrt(length(x))
(armse <- sd(x) / sqrtn)
(armose <- arm / armse)
(geo <- geomean(x))
(har <- harmean(x))
(qua <- quamean(x))
(win <- winmean(x))
(tri <- trimean(x))
(midr <- midrange(x))
midm <- array(NA,dim=8)
for (j in 1:8) midm[j] <- midmean(x,j)
midm
bitmap(file='test1.png')
lb <- win[,1] - 2*win[,2]
ub <- win[,1] + 2*win[,2]
if ((ylimmin == '') | (ylimmax == '')) plot(win[,1],type='b',main=main, xlab='j', pch=19, ylab='Winsorized Mean(j/n)', ylim=c(min(lb),max(ub))) else plot(win[,1],type='l',main=main, xlab='j', pch=19, ylab='Winsorized Mean(j/n)', ylim=c(ylimmin,ylimmax))
lines(ub,lty=3)
lines(lb,lty=3)
grid()
dev.off()
bitmap(file='test2.png')
lb <- tri[,1] - 2*tri[,2]
ub <- tri[,1] + 2*tri[,2]
if ((ylimmin == '') | (ylimmax == '')) plot(tri[,1],type='b',main=main, xlab='j', pch=19, ylab='Trimmed Mean(j/n)', ylim=c(min(lb),max(ub))) else plot(tri[,1],type='l',main=main, xlab='j', pch=19, ylab='Trimmed Mean(j/n)', ylim=c(ylimmin,ylimmax))
lines(ub,lty=3)
lines(lb,lty=3)
grid()
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Central Tendency - Ungrouped Data',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Measure',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.element(a,'S.E.',header=TRUE)
a<-table.element(a,'Value/S.E.',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm', 'Arithmetic Mean', 'click to view the definition of the Arithmetic Mean'),header=TRUE)
a<-table.element(a,arm)
a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean_standard_error.htm', armse, 'click to view the definition of the Standard Error of the Arithmetic Mean'))
a<-table.element(a,armose)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/geometric_mean.htm', 'Geometric Mean', 'click to view the definition of the Geometric Mean'),header=TRUE)
a<-table.element(a,geo)
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/harmonic_mean.htm', 'Harmonic Mean', 'click to view the definition of the Harmonic Mean'),header=TRUE)
a<-table.element(a,har)
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/quadratic_mean.htm', 'Quadratic Mean', 'click to view the definition of the Quadratic Mean'),header=TRUE)
a<-table.element(a,qua)
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
for (j in 1:length(win[,1])) {
a<-table.row.start(a)
mylabel <- paste('Winsorized Mean (',j)
mylabel <- paste(mylabel,'/')
mylabel <- paste(mylabel,length(win[,1]))
mylabel <- paste(mylabel,')')
a<-table.element(a,hyperlink('http://www.xycoon.com/winsorized_mean.htm', mylabel, 'click to view the definition of the Winsorized Mean'),header=TRUE)
a<-table.element(a,win[j,1])
a<-table.element(a,win[j,2])
a<-table.element(a,win[j,1]/win[j,2])
a<-table.row.end(a)
}
for (j in 1:length(tri[,1])) {
a<-table.row.start(a)
mylabel <- paste('Trimmed Mean (',j)
mylabel <- paste(mylabel,'/')
mylabel <- paste(mylabel,length(tri[,1]))
mylabel <- paste(mylabel,')')
a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm', mylabel, 'click to view the definition of the Trimmed Mean'),header=TRUE)
a<-table.element(a,tri[j,1])
a<-table.element(a,tri[j,2])
a<-table.element(a,tri[j,1]/tri[j,2])
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/median_1.htm', 'Median', 'click to view the definition of the Median'),header=TRUE)
a<-table.element(a,median(x))
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/midrange.htm', 'Midrange', 'click to view the definition of the Midrange'),header=TRUE)
a<-table.element(a,midr)
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_1.htm','Weighted Average at Xnp',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[1])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_2.htm','Weighted Average at X(n+1)p',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[2])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_3.htm','Empirical Distribution Function',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[3])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_4.htm','Empirical Distribution Function - Averaging',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[4])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_5.htm','Empirical Distribution Function - Interpolation',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[5])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_6.htm','Closest Observation',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[6])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_7.htm','True Basic - Statistics Graphics Toolkit',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[7])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean')
mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_8.htm','MS Excel (old versions)',''),sep=' - ')
a<-table.element(a,mylabel,header=TRUE)
a<-table.element(a,midm[8])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Number of observations',header=TRUE)
a<-table.element(a,length(x))
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.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