Home » date » 2010 » Nov » 23 »

CHE 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:40:47 +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/t1290526779hn4iafu4u5orvqw.htm/, Retrieved Tue, 23 Nov 2010 16:39:40 +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/t1290526779hn4iafu4u5orvqw.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.5313084961454E-14 0.0070484873310255 -3.5971225997855E-14 -3.5971225997855E-14 -3.5971225997855E-14 -0.0070484873310361 2.5313084961454E-14 2.5313084961454E-14 2.5313084961454E-14 2.5313084961454E-14 2.5313084961454E-14 2.5313084961454E-14 2.5313084961454E-14 0.0070484873310255 -0.0070484873310361 0.0070484873310255 -3.5971225997855E-14 -3.5971225997855E-14 -0.22336306618724 -1.2434497875802E-14 -1.2434497875802E-14 0.029207051746288 2.1316282072803E-14 2.1316282072803E-14 -0.029207051746279 -1.2434497875802E-14 -1.2434497875802E-14 0.029207051746288 2.1316282072803E-14 2.1316282072803E-14 2.1316282072803E-14 2.1316282072803E-14 -0.25344890080958 -3.9968028886506E-14 -3.9968028886506E-14 -3.9968028886506E-14 -3.9968028886506E-14 0.0027434859457602 -0.0027434859457909 -3.9968028886506E-14 -3.9968028886506E-14 -3.9968028886506E-14 -3.9968028886506E-14 0.0027434859457602 -0.041964199098991 0.039220713153242 -3.9968028886506E-14 -3.9968028886506E-14 0.002743485945 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.003832536428987140.00217441206561657-1.76256216086641
Geometric MeanNaN
Harmonic Mean-3.32847602006107e-13
Quadratic Mean0.0309123573004097
Winsorized Mean ( 1 / 66 )-0.003682107255875440.00209124700133668-1.76072326871092
Winsorized Mean ( 2 / 66 )-0.002648785652199080.00143865061302598-1.84115978418677
Winsorized Mean ( 3 / 66 )-0.002776687895636270.00141308426743727-1.96498394301141
Winsorized Mean ( 4 / 66 )-0.002987115470468510.00137718584913445-2.16899953796786
Winsorized Mean ( 5 / 66 )-0.002567287595701760.00114546761136232-2.24125725619466
Winsorized Mean ( 6 / 66 )-0.002470909375280780.00112058238529435-2.20502250232295
Winsorized Mean ( 7 / 66 )-0.002568283683215140.00109560408479663-2.3441713287258
Winsorized Mean ( 8 / 66 )-0.002671156235177140.00100996346047838-2.64480482681218
Winsorized Mean ( 9 / 66 )-0.002511234246475620.000970250828854633-2.58823200330588
Winsorized Mean ( 10 / 66 )-0.002122339606682220.000878194340219346-2.4167083633813
Winsorized Mean ( 11 / 66 )-0.001420696502283060.000729916922397728-1.94638109994239
Winsorized Mean ( 12 / 66 )-0.001315031994031440.00071003510080651-1.85206617607739
Winsorized Mean ( 13 / 66 )-0.001249205223895820.000697979562826844-1.78974470088564
Winsorized Mean ( 14 / 66 )-0.0007806828561381060.000619067726435584-1.26106211453318
Winsorized Mean ( 15 / 66 )-0.0009340509495457560.000558225126137274-1.67325135650749
Winsorized Mean ( 16 / 66 )-0.0009340509495457560.000558225126137274-1.67325135650749
Winsorized Mean ( 17 / 66 )-0.0009340509495457560.000558225126137274-1.67325135650749
Winsorized Mean ( 18 / 66 )-0.0009901381981871460.00055064950295699-1.79812783425773
Winsorized Mean ( 19 / 66 )-0.001384396472790330.000502722375356291-2.75379919544894
Winsorized Mean ( 20 / 66 )-0.001627422135144560.000478401531316053-3.40179123312509
Winsorized Mean ( 21 / 66 )-0.001627422135144560.000478401531316053-3.40179123312509
Winsorized Mean ( 22 / 66 )-0.001213109027642540.000409384287512796-2.9632525347095
Winsorized Mean ( 23 / 66 )-0.001474758014158520.000385380270828437-3.82676054222572
Winsorized Mean ( 24 / 66 )-0.001718333150982370.000367979803822951-4.66963983656322
Winsorized Mean ( 25 / 66 )-0.001718333150982370.000367979803822951-4.66963983656322
Winsorized Mean ( 26 / 66 )-0.001682369954931380.000361832094828746-4.64958741630602
Winsorized Mean ( 27 / 66 )-0.002005956080545780.000336644125077705-5.95868435275014
Winsorized Mean ( 28 / 66 )-0.001084707959099550.000178644418770049-6.07188271857396
Winsorized Mean ( 29 / 66 )-0.001084707959099680.000178644418770045-6.07188271857482
Winsorized Mean ( 30 / 66 )-0.0004389577513129027.12977518418489e-05-6.15668432696992
Winsorized Mean ( 31 / 66 )-0.0004389577513129027.12977518418489e-05-6.15668432696992
Winsorized Mean ( 32 / 66 )5.82645043323286e-152.73327565587133e-152.13167318880446
Winsorized Mean ( 33 / 66 )5.75317571360761e-152.7276185151659e-152.10923033467445
Winsorized Mean ( 34 / 66 )5.75317571360761e-152.7276185151659e-152.10923033467445
Winsorized Mean ( 35 / 66 )5.75317571360761e-152.7276185151659e-152.10923033467445
Winsorized Mean ( 36 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 37 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 38 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 39 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 40 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 41 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 42 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 43 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 44 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 45 / 66 )4.47419878923943e-152.63448450749747e-151.69832040253276
Winsorized Mean ( 46 / 66 )5.18918241709816e-152.56240802116522e-152.02511948691858
Winsorized Mean ( 47 / 66 )5.18918241709816e-152.56240802116522e-152.02511948691858
Winsorized Mean ( 48 / 66 )5.18918241709816e-152.56240802116522e-152.02511948691858
Winsorized Mean ( 49 / 66 )6.60360655047041e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 50 / 66 )6.60360655047041e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 51 / 66 )6.6036065504704e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 52 / 66 )6.6036065504704e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 53 / 66 )6.6036065504704e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 54 / 66 )6.6036065504704e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 55 / 66 )6.6036065504704e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 56 / 66 )6.6036065504704e-152.4234116152388e-152.72492155643139
Winsorized Mean ( 57 / 66 )5.21138687759037e-152.32901384139622e-152.23759377680048
Winsorized Mean ( 58 / 66 )3.40838468559908e-152.21697081428603e-151.5374062047347
Winsorized Mean ( 59 / 66 )3.40838468559908e-152.21697081428603e-151.5374062047347
Winsorized Mean ( 60 / 66 )3.40838468559908e-152.21697081428603e-151.5374062047347
Winsorized Mean ( 61 / 66 )4.62740956663764e-152.09774859500814e-152.20589329800966
Winsorized Mean ( 62 / 66 )4.62740956663764e-152.09774859500814e-152.20589329800966
Winsorized Mean ( 63 / 66 )4.62740956663764e-152.09774859500814e-152.20589329800966
Winsorized Mean ( 64 / 66 )4.62740956663764e-152.09774859500814e-152.20589329800966
Winsorized Mean ( 65 / 66 )4.62740956663764e-152.09774859500814e-152.20589329800966
Winsorized Mean ( 66 / 66 )1.23945298469151e-141.35899156004533e-159.12038765457948
Trimmed Mean ( 1 / 66 )-0.003041456019998420.00173265109619857-1.75537707890028
Trimmed Mean ( 2 / 66 )-0.002387730269103510.0012526737928191-1.90610698714308
Trimmed Mean ( 3 / 66 )-0.002253165638641870.00114122304917018-1.97434291243962
Trimmed Mean ( 4 / 66 )-0.002071387077185490.00102466305402595-2.02152997421631
Trimmed Mean ( 5 / 66 )-0.001830405921058370.000901813722760708-2.02969402090598
Trimmed Mean ( 6 / 66 )-0.001673622586027870.00083607367571985-2.00176447917332
Trimmed Mean ( 7 / 66 )-0.001530739648885770.000768381450107059-1.99216111824731
Trimmed Mean ( 8 / 66 )-0.001369630326784940.000696995011498425-1.96505040092103
Trimmed Mean ( 9 / 66 )-0.001190849295412380.00063492428637726-1.87557685374914
Trimmed Mean ( 10 / 66 )-0.00102783880762680.000572189784944343-1.79632498634483
Trimmed Mean ( 11 / 66 )-0.00090486118975540.000519645912841012-1.7413033902419
Trimmed Mean ( 12 / 66 )-0.0008515724178000640.000488438296560316-1.74345956039281
Trimmed Mean ( 13 / 66 )-0.0008071797380844150.000456911269899293-1.76660063180828
Trimmed Mean ( 14 / 66 )-0.0007676425747739140.000423413770567631-1.81298443304007
Trimmed Mean ( 15 / 66 )-0.0007665467528105360.000398399490746904-1.92406559399322
Trimmed Mean ( 16 / 66 )-0.0007532527689426620.000379323300932466-1.9857803807227
Trimmed Mean ( 17 / 66 )-0.0007396384481141160.00035816213145419-2.06509394254238
Trimmed Mean ( 18 / 66 )-0.0007256920706799950.000334455323212102-2.16977282260143
Trimmed Mean ( 19 / 66 )-0.0007075544762007670.000308675284343464-2.29222912260597
Trimmed Mean ( 20 / 66 )-0.0006630253974777690.000286032091418742-2.31801052178834
Trimmed Mean ( 21 / 66 )-0.000601987629271010.000263327990314851-2.28607535625528
Trimmed Mean ( 22 / 66 )-0.000539384790084590.000236951643027109-2.27634965174257
Trimmed Mean ( 23 / 66 )-0.0004996135836171790.00021721946780816-2.30004054727921
Trimmed Mean ( 24 / 66 )-0.0004438272889637840.000197398470864779-2.24838260914297
Trimmed Mean ( 25 / 66 )-0.0003730214077405290.000176058508185515-2.11873547938661
Trimmed Mean ( 26 / 66 )-0.000300301854051780.000150021759958007-2.00172197777069
Trimmed Mean ( 27 / 66 )-0.0002274847781361010.000117565730954669-1.93495822540171
Trimmed Mean ( 28 / 66 )-0.0001359996288351917.36680378709113e-05-1.84611444482211
Trimmed Mean ( 29 / 66 )-0.0001359996288351915.63729040596933e-05-2.41249996081772
Trimmed Mean ( 30 / 66 )-3.91926563592298e-052.76135246829148e-05-1.41932827515783
Trimmed Mean ( 31 / 66 )-1.98803329315161e-051.98803329405794e-05-0.999999999544107
Trimmed Mean ( 32 / 66 )8.77729261821302e-152.79742427492746e-153.13763367855261
Trimmed Mean ( 33 / 66 )8.91492518281098e-152.79091120879341e-153.19427044282972
Trimmed Mean ( 34 / 66 )9.06009274338046e-152.78363447838818e-153.25477098869193
Trimmed Mean ( 35 / 66 )9.20972699812132e-152.775152863125e-153.31863773001339
Trimmed Mean ( 36 / 66 )9.36403732332282e-152.7653502116035e-153.38620305089425
Trimmed Mean ( 37 / 66 )9.5796386696228e-152.75972818340175e-153.47122543706988
Trimmed Mean ( 38 / 66 )9.80219489806148e-152.75285400064803e-153.56073910776017
Trimmed Mean ( 39 / 66 )1.00320480520227e-142.74459617273287e-153.65520004425043
Trimmed Mean ( 40 / 66 )1.02695629777827e-142.73480679655973e-153.75513290032092
Trimmed Mean ( 41 / 66 )1.05151292569583e-142.72331896455121e-153.86114494623333
Trimmed Mean ( 42 / 66 )1.0769163338864e-142.70994365212025e-153.97394363917429
Trimmed Mean ( 43 / 66 )1.10321108973279e-142.694465952704e-154.09435899023209
Trimmed Mean ( 44 / 66 )1.13044494400226e-142.67664048682886e-154.2233723563733
Trimmed Mean ( 45 / 66 )1.15866912024516e-142.65618575392736e-154.36215395904442
Trimmed Mean ( 46 / 66 )1.18793863634892e-142.63277711421166e-154.51211243798975
Trimmed Mean ( 47 / 66 )1.21537999790097e-142.6124032311757e-154.65234456686075
Trimmed Mean ( 48 / 66 )1.2438767964358e-142.58896149279617e-154.80453958043373
Trimmed Mean ( 49 / 66 )1.2734911164818e-142.56204682632405e-154.97060047223635
Trimmed Mean ( 50 / 66 )1.29851684960158e-142.54402254861776e-155.10418765866325
Trimmed Mean ( 51 / 66 )1.32456404121605e-142.52299282809797e-155.24997148808629
Trimmed Mean ( 52 / 66 )1.35169653248113e-142.4985433321128e-155.40993832329541
Trimmed Mean ( 53 / 66 )1.37998359784259e-142.47018552209674e-155.58655852160946
Trimmed Mean ( 54 / 66 )1.40950053561107e-142.43733863845493e-155.78294912890961
Trimmed Mean ( 55 / 66 )1.44032933728037e-142.39930576163648e-156.00310873382796
Trimmed Mean ( 56 / 66 )1.47255944811646e-142.35524135007763e-156.25226560355659
Trimmed Mean ( 57 / 66 )1.47255944811646e-142.30410616278985e-156.39102256613669
Trimmed Mean ( 58 / 66 )1.50628863387515e-142.25162290701284e-156.68979085789058
Trimmed Mean ( 59 / 66 )1.59817958325309e-142.19702143153379e-157.27430128952984
Trimmed Mean ( 60 / 66 )1.65145674912992e-142.13209212213321e-157.74571010317132
Trimmed Mean ( 61 / 66 )1.70746607735941e-142.05449765372469e-158.31086895749852
Trimmed Mean ( 62 / 66 )1.76116431380012e-141.98085609390332e-158.89092508648472
Trimmed Mean ( 63 / 66 )1.817765157616e-141.89183283759129e-159.608487185001
Trimmed Mean ( 64 / 66 )1.87751049275499e-141.78303823743001e-1510.5298386391373
Trimmed Mean ( 65 / 66 )1.94066984704477e-141.6478943142932e-1511.7766644997325
Trimmed Mean ( 66 / 66 )2.00754445746925e-141.47565368924975e-1513.6044416931586
Median2.5313084961454e-14
Midrange-0.08214949691887
Midmean - Weighted Average at Xnp1.58636389049049e-14
Midmean - Weighted Average at X(n+1)p1.58636389049049e-14
Midmean - Empirical Distribution Function1.58636389049049e-14
Midmean - Empirical Distribution Function - Averaging1.58636389049049e-14
Midmean - Empirical Distribution Function - Interpolation1.58636389049049e-14
Midmean - Closest Observation1.58636389049049e-14
Midmean - True Basic - Statistics Graphics Toolkit1.58636389049049e-14
Midmean - MS Excel (old versions)1.58636389049049e-14
Number of observations200
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526779hn4iafu4u5orvqw/1am3i1290526842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526779hn4iafu4u5orvqw/1am3i1290526842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526779hn4iafu4u5orvqw/23v2k1290526842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526779hn4iafu4u5orvqw/23v2k1290526842.ps (open in new window)


 
Parameters (Session):
par1 = Apollo Oil Corp. ; par3 = Time series of Xycoon Stock Exchange ; par4 = No season ;
 
Parameters (R input):
par1 = Apollo Oil Corp. ; par3 = Time series of Xycoon Stock Exchange ; par4 = No season ;
 
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