Home » date » 2010 » Nov » 11 »

WS6 - Mini Tutorial - Hyp 1 - Central tend.

*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 14:21:40 +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/t1289485807jlmi129evn19ag3.htm/, Retrieved Thu, 11 Nov 2010 15:30: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/t1289485807jlmi129evn19ag3.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 1 0,9 1,4 1,5 1,6 1,4 1,7 1,6 1,8
 
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.937566137566140.054423611973344535.6015719521725
Geometric MeanNaN
Harmonic Mean0
Quadratic Mean2.07629605090538
Winsorized Mean ( 1 / 63 )1.939153439153440.054051820043170635.8758213433823
Winsorized Mean ( 2 / 63 )1.938095238095240.053411615728659536.286025271003
Winsorized Mean ( 3 / 63 )1.938095238095240.052791519821464436.7122455396185
Winsorized Mean ( 4 / 63 )1.935978835978840.05242496874211636.9285644308559
Winsorized Mean ( 5 / 63 )1.938624338624340.0518887987614237.3611335181984
Winsorized Mean ( 6 / 63 )1.944973544973550.047475893996249640.9676023189198
Winsorized Mean ( 7 / 63 )1.948677248677250.04689268652025941.5561016713206
Winsorized Mean ( 8 / 63 )1.944444444444440.046262624251567842.0305695126784
Winsorized Mean ( 9 / 63 )1.953968253968250.04487387224002843.5435623544271
Winsorized Mean ( 10 / 63 )1.948677248677250.044115690128414544.1719769770104
Winsorized Mean ( 11 / 63 )1.948677248677250.044115690128414544.1719769770104
Winsorized Mean ( 12 / 63 )1.948677248677250.044115690128414544.1719769770104
Winsorized Mean ( 13 / 63 )1.934920634920630.040558385793247347.7070425037179
Winsorized Mean ( 14 / 63 )1.927513227513230.03975500906452248.4847890333741
Winsorized Mean ( 15 / 63 )1.919576719576720.038975960132391349.2502740934774
Winsorized Mean ( 16 / 63 )1.919576719576720.038975960132391349.2502740934774
Winsorized Mean ( 17 / 63 )1.928571428571430.03776132790149851.0726591395882
Winsorized Mean ( 18 / 63 )1.928571428571430.03776132790149851.0726591395882
Winsorized Mean ( 19 / 63 )1.928571428571430.03776132790149851.0726591395882
Winsorized Mean ( 20 / 63 )1.928571428571430.03776132790149851.0726591395882
Winsorized Mean ( 21 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 22 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 23 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 24 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 25 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 26 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 27 / 63 )1.928571428571430.035335717345844954.5785277173157
Winsorized Mean ( 28 / 63 )1.943386243386240.033537131471410257.9473007416554
Winsorized Mean ( 29 / 63 )1.943386243386240.033537131471410257.9473007416554
Winsorized Mean ( 30 / 63 )1.943386243386240.033537131471410257.9473007416554
Winsorized Mean ( 31 / 63 )1.959788359788360.03165941878980961.9022216674176
Winsorized Mean ( 32 / 63 )1.959788359788360.03165941878980961.9022216674176
Winsorized Mean ( 33 / 63 )1.959788359788360.03165941878980961.9022216674176
Winsorized Mean ( 34 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 35 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 36 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 37 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 38 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 39 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 40 / 63 )1.959788359788360.028139017969269969.6466508507372
Winsorized Mean ( 41 / 63 )1.981481481481480.025916274879831876.4570329134564
Winsorized Mean ( 42 / 63 )1.981481481481480.025916274879831876.4570329134564
Winsorized Mean ( 43 / 63 )1.981481481481480.025916274879831876.4570329134564
Winsorized Mean ( 44 / 63 )1.981481481481480.025916274879831876.4570329134564
Winsorized Mean ( 45 / 63 )1.981481481481480.025916274879831876.4570329134564
Winsorized Mean ( 46 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 47 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 48 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 49 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 50 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 51 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 52 / 63 )2.005820105820110.023596240355647285.0059194002089
Winsorized Mean ( 53 / 63 )1.977777777777780.021211390195754593.241308538732
Winsorized Mean ( 54 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 55 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 56 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 57 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 58 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 59 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 60 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 61 / 63 )2.006349206349210.0185997959062957107.869420527894
Winsorized Mean ( 62 / 63 )2.039153439153440.0158356346203184128.769922269932
Winsorized Mean ( 63 / 63 )2.039153439153440.0158356346203184128.769922269932
Trimmed Mean ( 1 / 63 )1.940106951871660.052137673609400137.2112297607745
Trimmed Mean ( 2 / 63 )1.941081081081080.05005513522497838.7788599982138
Trimmed Mean ( 3 / 63 )1.942622950819670.048159402804982940.3373554835417
Trimmed Mean ( 4 / 63 )1.944198895027620.04634803377159541.947818209694
Trimmed Mean ( 5 / 63 )1.94636871508380.044489565498299743.7488811878414
Trimmed Mean ( 6 / 63 )1.948022598870060.042603166390749245.7248313658922
Trimmed Mean ( 7 / 63 )1.948571428571430.041569038804118246.8755469125349
Trimmed Mean ( 8 / 63 )1.94855491329480.040568342165835148.0314158594281
Trimmed Mean ( 9 / 63 )1.949122807017540.039600415757170849.2197561502772
Trimmed Mean ( 10 / 63 )1.948520710059170.038781694142475750.2433107460628
Trimmed Mean ( 11 / 63 )1.948502994011980.038012603207559551.2593937166735
Trimmed Mean ( 12 / 63 )1.948484848484850.037182815378907152.4028325620059
Trimmed Mean ( 13 / 63 )1.948466257668710.03628549293890553.6982165558396
Trimmed Mean ( 14 / 63 )1.949689440993790.035760636948618154.5205456993161
Trimmed Mean ( 15 / 63 )1.951572327044030.035284679885082555.3093391636267
Trimmed Mean ( 16 / 63 )1.954140127388540.03485218132929456.0693779515613
Trimmed Mean ( 17 / 63 )1.956774193548390.034383910984567356.9095875808502
Trimmed Mean ( 18 / 63 )1.958823529411760.03400420626671557.6053301773187
Trimmed Mean ( 19 / 63 )1.960927152317880.033592460916180358.3740249697923
Trimmed Mean ( 20 / 63 )1.963087248322150.033145581857469759.226211709412
Trimmed Mean ( 21 / 63 )1.965306122448980.032660049573681560.1746215361744
Trimmed Mean ( 22 / 63 )1.967586206896550.032354637468663360.8131124572864
Trimmed Mean ( 23 / 63 )1.969930069930070.03202104235631861.5198608467968
Trimmed Mean ( 24 / 63 )1.972340425531910.031656502122389462.3044333169379
Trimmed Mean ( 25 / 63 )1.974820143884890.031257880252258263.1783130509057
Trimmed Mean ( 26 / 63 )1.977372262773720.030821594643383164.1554171889102
Trimmed Mean ( 27 / 63 )1.980.030343527891607965.2527948323242
Trimmed Mean ( 28 / 63 )1.982706766917290.029818912676287366.4915850031645
Trimmed Mean ( 29 / 63 )1.984732824427480.029409400521605767.4863407354867
Trimmed Mean ( 30 / 63 )1.986821705426360.028959253755963468.6074897567837
Trimmed Mean ( 31 / 63 )1.988976377952760.028463734119943969.8775631324888
Trimmed Mean ( 32 / 63 )1.99040.02808797240009370.8630716253982
Trimmed Mean ( 33 / 63 )1.991869918699190.027673422880320571.9777212711793
Trimmed Mean ( 34 / 63 )1.993388429752070.02721548379347873.2446442943546
Trimmed Mean ( 35 / 63 )1.994957983193280.027000470528635173.8860450997526
Trimmed Mean ( 36 / 63 )1.99658119658120.026759663877989774.6115947376835
Trimmed Mean ( 37 / 63 )1.998260869565220.026490146368190775.434119607762
Trimmed Mean ( 38 / 63 )20.026188560631783576.3692219713945
Trimmed Mean ( 39 / 63 )2.00180180180180.025851018447280677.4360904149362
Trimmed Mean ( 40 / 63 )2.003669724770640.025472984280259578.6586174091663
Trimmed Mean ( 41 / 63 )2.005607476635510.025049123865322580.0669711012143
Trimmed Mean ( 42 / 63 )2.006666666666670.024779861057752480.979738425082
Trimmed Mean ( 43 / 63 )2.007766990291260.024475822885785182.030622613196
Trimmed Mean ( 44 / 63 )2.008910891089110.024132432057951983.2452728454757
Trimmed Mean ( 45 / 63 )2.010101010101010.02374428071812684.656218226334
Trimmed Mean ( 46 / 63 )2.011340206185570.023304917435485986.3053993541699
Trimmed Mean ( 47 / 63 )2.011578947368420.023032338038265487.3371580438958
Trimmed Mean ( 48 / 63 )2.011827956989250.022721017859263988.5447988928443
Trimmed Mean ( 49 / 63 )2.012087912087910.022365329703258289.9645987241935
Trimmed Mean ( 50 / 63 )2.01235955056180.021958512320456391.6437107028923
Trimmed Mean ( 51 / 63 )2.012643678160920.02149234446555193.6446780567325
Trimmed Mean ( 52 / 63 )2.012941176470590.020956687045339496.0524519985257
Trimmed Mean ( 53 / 63 )2.013253012048190.020338820028913398.9857331539483
Trimmed Mean ( 54 / 63 )2.014814814814810.0198847847341424101.324446895085
Trimmed Mean ( 55 / 63 )2.015189873417720.0196602601193752102.500671973905
Trimmed Mean ( 56 / 63 )2.015584415584420.0193948904089321103.923475363189
Trimmed Mean ( 57 / 63 )2.0160.0190816170202661105.651423454252
Trimmed Mean ( 58 / 63 )2.016438356164380.0187117136891898107.763425074707
Trimmed Mean ( 59 / 63 )2.01690140845070.0182742262776874110.368634917984
Trimmed Mean ( 60 / 63 )2.017391304347830.0177551454712115113.622910475099
Trimmed Mean ( 61 / 63 )2.017910447761190.0171361342473746117.757623664179
Trimmed Mean ( 62 / 63 )2.018461538461540.0163924683239432123.133471944145
Trimmed Mean ( 63 / 63 )2.017460317460320.0159266885699865126.671674943289
Median2
Midrange1.7
Midmean - Weighted Average at Xnp2.05412844036697
Midmean - Weighted Average at X(n+1)p2.05412844036697
Midmean - Empirical Distribution Function2.05412844036697
Midmean - Empirical Distribution Function - Averaging2.05412844036697
Midmean - Empirical Distribution Function - Interpolation2.05412844036697
Midmean - Closest Observation2.05412844036697
Midmean - True Basic - Statistics Graphics Toolkit2.05412844036697
Midmean - MS Excel (old versions)2.05412844036697
Number of observations189
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/11/t1289485807jlmi129evn19ag3/1wufi1289485295.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/11/t1289485807jlmi129evn19ag3/1wufi1289485295.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/11/t1289485807jlmi129evn19ag3/2ole31289485295.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/11/t1289485807jlmi129evn19ag3/2ole31289485295.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