Home » date » 2010 » Nov » 23 »

TIN central tendency

*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: Tue, 23 Nov 2010 15:02:42 +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/23/t1290524555f0jv77y59jvbduc.htm/, Retrieved Tue, 23 Nov 2010 16:02:36 +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/23/t1290524555f0jv77y59jvbduc.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 «
0.0017356093451131 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -0.0028943580263334 3.1086244689504E-14 0.0028943580263312 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -0.00057820180853341 8.8817841970013E-16 -0.0023161562177991 3.1086244689504E-14 3.1086244689504E-14 0.0023161562178311 -0.0023161562177991 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 0.0028943580263312 -3.3306690738755E-14 -0.0028943580263334 3.1086244689504E-14 0.0028943580263312 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -3.3306690738755E-14 -0.0028943580263334 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 3.1086244689504E-14 etc...
 
Output produced by software:


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


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean-0.0007046034552728980.00468453174745085-0.150410647906553
Geometric MeanNaN
Harmonic Mean-1.69238476316236e-14
Quadratic Mean0.0660872087995196
Winsorized Mean ( 1 / 66 )-0.0007619089800554670.000770672373452211-0.9886288989996
Winsorized Mean ( 2 / 66 )-0.0008963633226332770.000657674900165395-1.36292767506842
Winsorized Mean ( 3 / 66 )-0.0006762918155435470.000581929130442927-1.16215494321241
Winsorized Mean ( 4 / 66 )-0.0007606432259457070.000470238440379553-1.61756921729273
Winsorized Mean ( 5 / 66 )-0.0007606432259457070.000470238440379553-1.61756921729273
Winsorized Mean ( 6 / 66 )-0.0005381679724960870.000416503944825799-1.29210774395228
Winsorized Mean ( 7 / 66 )-0.0002918787773570020.000371528592210896-0.785615921563632
Winsorized Mean ( 8 / 66 )-0.0002918787773570020.000371528592210896-0.785615921563632
Winsorized Mean ( 9 / 66 )-0.0002918787773570020.000371528592210896-0.785615921563632
Winsorized Mean ( 10 / 66 )-0.0003149927295515020.000367982917906633-0.855998238568847
Winsorized Mean ( 11 / 66 )-0.0003149927295515020.000367982917906633-0.855998238568847
Winsorized Mean ( 12 / 66 )-0.0003149927295515020.000367982917906633-0.855998238568847
Winsorized Mean ( 13 / 66 )-0.0003149927295515030.000367982917906633-0.855998238568848
Winsorized Mean ( 14 / 66 )-0.0002826331964792720.000363230503016839-0.778109751609076
Winsorized Mean ( 15 / 66 )-0.0002826331964792720.000363230503016839-0.778109751609076
Winsorized Mean ( 16 / 66 )-0.0002826331964792720.000363230503016839-0.778109751609076
Winsorized Mean ( 17 / 66 )-0.0002826331964792720.000363230503016839-0.778109751609076
Winsorized Mean ( 18 / 66 )-0.0002826331964792720.000363230503016839-0.778109751609076
Winsorized Mean ( 19 / 66 )-0.0002826331964792720.000363230503016839-0.778109751609076
Winsorized Mean ( 20 / 66 )-0.001068476571470850.000269645778681107-3.9625191860855
Winsorized Mean ( 21 / 66 )-0.001068476571470850.000269645778681107-3.9625191860855
Winsorized Mean ( 22 / 66 )-0.001068476571470850.000269645778681107-3.9625191860855
Winsorized Mean ( 23 / 66 )-0.001068476571470850.000269645778681107-3.9625191860855
Winsorized Mean ( 24 / 66 )-0.0005458091952574650.000178618903258674-3.05571910531233
Winsorized Mean ( 25 / 66 )-0.0005633672833506890.000162839859509987-3.45963994961649
Winsorized Mean ( 26 / 66 )-0.0002403708037054479.24998419689664e-05-2.59860772287688
Winsorized Mean ( 27 / 66 )-0.0004746780652893017.53044379579287e-05-6.30345406142591
Winsorized Mean ( 28 / 66 )-0.0004746780652893017.53044379579287e-05-6.30345406142591
Winsorized Mean ( 29 / 66 )-0.0004746780652893017.53044379579287e-05-6.30345406142591
Winsorized Mean ( 30 / 66 )-0.0004746780652893017.53044379579287e-05-6.30345406142591
Winsorized Mean ( 31 / 66 )-0.0003850567849664856.0920843986538e-05-6.32060818217773
Winsorized Mean ( 32 / 66 )-0.0003850567849664856.0920843986538e-05-6.32060818217773
Winsorized Mean ( 33 / 66 )-9.82943074376457e-051.53963017588193e-05-6.38428039261708
Winsorized Mean ( 34 / 66 )6.99440505513846e-152.39139153631166e-152.92482638201782
Winsorized Mean ( 35 / 66 )6.99440505513846e-152.39139153631166e-152.92482638201782
Winsorized Mean ( 36 / 66 )6.99440505513846e-152.39139153631166e-152.92482638201782
Winsorized Mean ( 37 / 66 )7.32303107042746e-152.36235162497129e-153.09989037746084
Winsorized Mean ( 38 / 66 )7.32303107042746e-152.36235162497129e-153.09989037746084
Winsorized Mean ( 39 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 40 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 41 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 42 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 43 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 44 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 45 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 46 / 66 )7.4096284663482e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 47 / 66 )7.40962846634821e-152.35480639935634e-153.14659772810774
Winsorized Mean ( 48 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 49 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 50 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 51 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 52 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 53 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 54 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 55 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 56 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 57 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 58 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 59 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 60 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 61 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 62 / 66 )4.95825602797573e-152.1569891731028e-152.29869305317066
Winsorized Mean ( 63 / 66 )1.08335562742922e-141.66443316383873e-156.5088562939388
Winsorized Mean ( 64 / 66 )1.08335562742922e-141.66443316383873e-156.5088562939388
Winsorized Mean ( 65 / 66 )1.08335562742922e-141.66443316383873e-156.5088562939388
Winsorized Mean ( 66 / 66 )1.08335562742922e-141.66443316383873e-156.5088562939388
Trimmed Mean ( 1 / 66 )-0.0007117206618916640.000664978362736428-1.07029145875196
Trimmed Mean ( 2 / 66 )-0.0006605080923367630.000532977006984401-1.23928065128726
Trimmed Mean ( 3 / 66 )-0.0005389332313591780.0004525894603156-1.19077724652131
Trimmed Mean ( 4 / 66 )-0.0004912392785173830.000395342705728987-1.24256568136642
Trimmed Mean ( 5 / 66 )-0.000420343502878350.000371642863459873-1.13104150303087
Trimmed Mean ( 6 / 66 )-0.000347939306481040.000345065527222543-1.00832821314151
Trimmed Mean ( 7 / 66 )-0.0003138481476969810.000329308506735206-0.953052050821582
Trimmed Mean ( 8 / 66 )-0.0003172595406069160.000321471952852659-0.986896485965996
Trimmed Mean ( 9 / 66 )-0.00032074590918520.000313036489185612-1.0246278637345
Trimmed Mean ( 10 / 66 )-0.000324309752620780.000303930574251861-1.0670520839145
Trimmed Mean ( 11 / 66 )-0.0003253566091454180.000294631960012838-1.10428145382206
Trimmed Mean ( 12 / 66 )-0.0003264272578637980.000284540021982447-1.14721034879211
Trimmed Mean ( 13 / 66 )-0.0003275225191963940.00027353959141815-1.19734959571436
Trimmed Mean ( 14 / 66 )-0.000328643251722770.000261485584165899-1.25683124280482
Trimmed Mean ( 15 / 66 )-0.0003325096429197030.000248880079500717-1.33602353224395
Trimmed Mean ( 16 / 66 )-0.0003364680910498960.00023490229937405-1.43237461679383
Trimmed Mean ( 17 / 66 )-0.0003405219234723820.000219248138100581-1.55313484722122
Trimmed Mean ( 18 / 66 )-0.0003446746298563930.000201478760322364-1.71072439251124
Trimmed Mean ( 19 / 66 )-0.0003489298722005030.00018091445961717-1.92870085088206
Trimmed Mean ( 20 / 66 )-0.0003532914956032160.000156385738235815-2.25910303323495
Trimmed Mean ( 21 / 66 )-0.0003080266173837450.000142420192065727-2.16280158674123
Trimmed Mean ( 22 / 66 )-0.0002616011012612110.00012593211745914-2.07731837230553
Trimmed Mean ( 23 / 66 )-0.0002139697275770520.000105669359651214-2.02489849738192
Trimmed Mean ( 24 / 66 )-0.0001650848966906797.86568975446469e-05-2.0987974588875
Trimmed Mean ( 25 / 66 )-0.0001439335467703036.47607772361519e-05-2.22254199089435
Trimmed Mean ( 26 / 66 )-0.0001212614529010924.97216539855155e-05-2.43880569492755
Trimmed Mean ( 27 / 66 )-0.0001149859338913794.48807438992396e-05-2.56203270938492
Trimmed Mean ( 28 / 66 )-9.64832522351076e-054.11417419031469e-05-2.34514261603804
Trimmed Mean ( 29 / 66 )-9.64832522351076e-053.66990938607894e-05-2.62903636261695
Trimmed Mean ( 30 / 66 )-5.78919447805981e-053.12234085412926e-05-1.85411995311264
Trimmed Mean ( 31 / 66 )-3.77573495869409e-052.39745154705907e-05-1.57489521042699
Trimmed Mean ( 32 / 66 )-2.12820443032814e-051.75226263639478e-05-1.21454648756698
Trimmed Mean ( 33 / 66 )-4.31493886190064e-064.3149388697106e-06-0.999999998190019
Trimmed Mean ( 34 / 66 )7.50914482110094e-152.52519567731304e-152.97368829218459
Trimmed Mean ( 35 / 66 )7.53243621322594e-152.52372796236203e-152.98464665192207
Trimmed Mean ( 36 / 66 )7.55645546135484e-152.52154254047483e-152.99675906317722
Trimmed Mean ( 37 / 66 )7.58123722529736e-152.51857051639968e-153.01013498567227
Trimmed Mean ( 38 / 66 )7.5924929425977e-152.51669093487822e-153.01685552142107
Trimmed Mean ( 39 / 66 )7.60411769980954e-152.51400099480233e-153.02470751424958
Trimmed Mean ( 40 / 66 )7.61242920551301e-152.51092881441102e-153.03171844690413
Trimmed Mean ( 41 / 66 )7.62102245717254e-152.50691093951472e-153.04000526586229
Trimmed Mean ( 42 / 66 )7.6299120278548e-152.50184942271455e-153.04970873090205
Trimmed Mean ( 43 / 66 )7.63911351329786e-152.49563450123428e-153.06099050542848
Trimmed Mean ( 44 / 66 )7.64864362322102e-152.48814281664279e-153.07403721846691
Trimmed Mean ( 45 / 66 )7.65852028259593e-152.47923529763659e-153.08906552350906
Trimmed Mean ( 46 / 66 )7.6687627441699e-152.46875462632609e-153.10632845500011
Trimmed Mean ( 47 / 66 )7.67939171372781e-152.45652218529355e-153.12612349267676
Trimmed Mean ( 48 / 66 )7.69042948980717e-152.44233435129293e-153.14880290069048
Trimmed Mean ( 49 / 66 )7.80203788285584e-152.44008142417336e-153.19744980866734
Trimmed Mean ( 50 / 66 )7.91811061162646e-152.43659951032693e-153.24965616141163
Trimmed Mean ( 51 / 66 )8.03892100279587e-152.43173264570537e-153.3058408032615
Trimmed Mean ( 52 / 66 )8.16476516026402e-152.425302015114e-153.36649419716919
Trimmed Mean ( 53 / 66 )8.29596438826272e-152.41710176904247e-153.43219490983582
Trimmed Mean ( 54 / 66 )8.43286793052224e-152.40689387496736e-153.50363097360768
Trimmed Mean ( 55 / 66 )8.57585607465995e-152.39440172325139e-153.58162792458013
Trimmed Mean ( 56 / 66 )8.72534367989484e-152.37930210673678e-153.66718612789431
Trimmed Mean ( 57 / 66 )8.72534367989484e-152.36121504716361e-153.6952770101885
Trimmed Mean ( 58 / 66 )8.88178419700111e-152.33969072627544e-153.79613600090643
Trimmed Mean ( 59 / 66 )9.21755896542434e-152.31419245459361e-153.98305635606396
Trimmed Mean ( 60 / 66 )9.39803790345182e-152.2840741075929e-154.11459412468715
Trimmed Mean ( 61 / 66 )9.58777217163456e-152.24854965600105e-154.26398062682148
Trimmed Mean ( 62 / 66 )9.78749245393218e-152.20665109125398e-154.43545084799527
Trimmed Mean ( 63 / 66 )9.9980084271648e-152.15716877049068e-154.63478266695406
Trimmed Mean ( 64 / 66 )9.96116769316448e-152.15698848810414e-154.61809033664327
Trimmed Mean ( 65 / 66 )9.92222177436414e-152.15498967929431e-154.60430129652099
Trimmed Mean ( 66 / 66 )9.88098491916377e-152.15083845191551e-154.59401537589394
Median-2.6645352591004e-15
Midrange-1.50435219836709e-14
Midmean - Weighted Average at Xnp4.42517212647037e-15
Midmean - Weighted Average at X(n+1)p4.42517212647037e-15
Midmean - Empirical Distribution Function4.42517212647037e-15
Midmean - Empirical Distribution Function - Averaging4.42517212647037e-15
Midmean - Empirical Distribution Function - Interpolation4.42517212647037e-15
Midmean - Closest Observation4.42517212647037e-15
Midmean - True Basic - Statistics Graphics Toolkit4.42517212647037e-15
Midmean - MS Excel (old versions)4.42517212647037e-15
Number of observations200
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290524555f0jv77y59jvbduc/1wto81290524557.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290524555f0jv77y59jvbduc/1wto81290524557.ps (open in new window)


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