Home » date » 2010 » Nov » 22 »

*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: Mon, 22 Nov 2010 14:55:55 +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/22/t1290437634ivh5yd9gwgw7y4t.htm/, Retrieved Mon, 22 Nov 2010 15:53:56 +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/22/t1290437634ivh5yd9gwgw7y4t.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 «
-3.8635761256955E-14 -3.8635761256955E-14 -3.8635761256955E-14 -3.8635761256955E-14 -3.8635761256955E-14 -3.8635761256955E-14 -0.024154942035039 0.024154942035005 -3.8635761256955E-14 -0.024154942035039 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 4.8849813083507E-15 0.024154942035005 -3.8635761256955E-14 -3.8635761256955E-14 -0.010814569746239 1.8651746813703E-14 1.8651746813703E-14 1.8651746813703E-14 1.8651746813703E-14 1.8651746813703E-14 0.024170360927819 5.7731597280508E-15 5.7731597280508E-15 -0.024170360927795 1.8651746813703E-14 0.024170360927819 -0.024170360927795 1.8651746813703E-14 0.024170360927819 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 5.7731597280508E-15 - 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'George Udny Yule' @ 72.249.76.132


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean0.0001831585747207590.0008041199774085750.227775182642548
Geometric MeanNaN
Harmonic Mean1.73817319388260e-14
Quadratic Mean0.0113449868108755
Winsorized Mean ( 1 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 2 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 3 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 4 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 5 / 66 )0.0001831585747207600.0008041199774085750.227775182642548
Winsorized Mean ( 6 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 7 / 66 )0.0001831585747207600.0008041199774085750.227775182642548
Winsorized Mean ( 8 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 9 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 10 / 66 )0.0001831585747207600.0008041199774085750.227775182642548
Winsorized Mean ( 11 / 66 )0.0001831585747207590.0008041199774085750.227775182642548
Winsorized Mean ( 12 / 66 )0.0001831585747207590.0008041199774085750.227775182642547
Winsorized Mean ( 13 / 66 )0.0001831585747207590.0008041199774085750.227775182642547
Winsorized Mean ( 14 / 66 )0.0001831585747207600.0008041199774085750.227775182642548
Winsorized Mean ( 15 / 66 )0.0001831585747207600.0008041199774085750.227775182642548
Winsorized Mean ( 16 / 66 )0.0001843920861412390.0008039322813439960.229362709298073
Winsorized Mean ( 17 / 66 )0.0001830814802520490.0008037358177145110.227788131643376
Winsorized Mean ( 18 / 66 )0.0002024718220522090.0008007917505155680.252839545264862
Winsorized Mean ( 19 / 66 )0.0001820042390417840.0007977219782093040.228154976311848
Winsorized Mean ( 20 / 66 )0.0001820042390417840.0007977219782093040.228154976311848
Winsorized Mean ( 21 / 66 )0.001560121263932260.0006193678536411082.51889285948682
Winsorized Mean ( 22 / 66 )0.002676731232609190.0005435421424171284.92460661965562
Winsorized Mean ( 23 / 66 )3.7747582837276e-161.41834126142623e-150.266138931890894
Winsorized Mean ( 24 / 66 )3.7747582837276e-161.41834126142623e-150.266138931890894
Winsorized Mean ( 25 / 66 )3.77475828372759e-161.41834126142623e-150.266138931890893
Winsorized Mean ( 26 / 66 )3.7747582837276e-161.41834126142623e-150.266138931890894
Winsorized Mean ( 27 / 66 )3.7747582837276e-161.41834126142623e-150.266138931890894
Winsorized Mean ( 28 / 66 )3.77475828372759e-161.41834126142623e-150.266138931890893
Winsorized Mean ( 29 / 66 )3.77475828372759e-161.41834126142623e-150.266138931890893
Winsorized Mean ( 30 / 66 )3.7747582837276e-161.41834126142623e-150.266138931890894
Winsorized Mean ( 31 / 66 )3.7747582837276e-161.41834126142623e-150.266138931890894
Winsorized Mean ( 32 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 33 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 34 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 35 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 36 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 37 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 38 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 39 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 40 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 41 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 42 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 43 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 44 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 45 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 46 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 47 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 48 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 49 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 50 / 66 )4.21440660147724e-159.46390161460444e-164.45313864524297
Winsorized Mean ( 51 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 52 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 53 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 54 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 55 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 56 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 57 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 58 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 59 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 60 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 61 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 62 / 66 )5.46007683510664e-158.259564826138e-166.61061078887331
Winsorized Mean ( 63 / 66 )1.00763841714981e-144.56593042827617e-1622.0686327349545
Winsorized Mean ( 64 / 66 )1.00763841714981e-144.56593042827617e-1622.0686327349545
Winsorized Mean ( 65 / 66 )1.00763841714981e-144.56593042827617e-1622.0686327349545
Winsorized Mean ( 66 / 66 )1.00763841714981e-144.56593042827617e-1622.0686327349545
Trimmed Mean ( 1 / 66 )0.0001850086613339790.0007936087064602190.23312327577552
Trimmed Mean ( 2 / 66 )0.0001868965048168570.0007824285847840820.238867173888378
Trimmed Mean ( 3 / 66 )0.0001888232729076280.0007705240670053360.245058241518004
Trimmed Mean ( 4 / 66 )0.0001907901820002910.0007578325986149820.251757686788586
Trimmed Mean ( 5 / 66 )0.0001927984997054310.0007442833115488990.259039127592698
Trimmed Mean ( 6 / 66 )0.000194849547574510.0007297953823469760.266992025830427
Trimmed Mean ( 7 / 66 )0.0001969447039999130.000714275937678780.275726359535413
Trimmed Mean ( 8 / 66 )0.0001990854073041300.0006976173419174460.285379097309896
Trimmed Mean ( 9 / 66 )0.0002012731590326150.0006796936242177520.296123358909327
Trimmed Mean ( 10 / 66 )0.0002035095274661770.0006603556801976820.308181686883128
Trimmed Mean ( 11 / 66 )0.0002057961513701570.0006394246832774520.321845804130242
Trimmed Mean ( 12 / 66 )0.0002081347439992270.0006166828016562470.337506970261262
Trimmed Mean ( 13 / 66 )0.000210527097378390.0005918597175822610.355704385894668
Trimmed Mean ( 14 / 66 )0.0002129750868826500.0005646123326416340.377205871303254
Trimmed Mean ( 15 / 66 )0.0002154806761399520.000534492850297820.403149782115674
Trimmed Mean ( 16 / 66 )0.0002180459222843330.0005008957842381020.435311953395647
Trimmed Mean ( 17 / 66 )0.0002205800966926980.0004629933258331810.476421763306744
Trimmed Mean ( 18 / 66 )0.0002232700978720850.0004195032389121970.532224967919296
Trimmed Mean ( 19 / 66 )0.0002246965914125420.0003688160996833230.60923748069966
Trimmed Mean ( 20 / 66 )0.0002275052988053550.000307244250554290.740470483645894
Trimmed Mean ( 21 / 66 )0.0002303851127144420.0002249466021604931.02417689576866
Trimmed Mean ( 22 / 66 )0.0001492046395021210.0001535446649031620.971734443500341
Trimmed Mean ( 23 / 66 )3.47485388226849e-151.23436359560971e-152.81509750824441
Trimmed Mean ( 24 / 66 )3.65204942310921e-151.21517198247071e-153.00537658520055
Trimmed Mean ( 25 / 66 )3.83397017837235e-151.19420102915398e-153.21048976242174
Trimmed Mean ( 26 / 66 )4.02080771080476e-151.17124656776267e-153.43293019717049
Trimmed Mean ( 27 / 66 )4.21276407974216e-151.14606918564183e-153.67583749089538
Trimmed Mean ( 28 / 66 )4.41005257003894e-151.11838514570433e-153.94323242487418
Trimmed Mean ( 29 / 66 )4.41005257003894e-151.08785397644945e-154.05390122710449
Trimmed Mean ( 30 / 66 )4.82153999265794e-151.05406107053873e-154.57425108223917
Trimmed Mean ( 31 / 66 )5.03622908272003e-151.01649253881271e-154.95451652660677
Trimmed Mean ( 32 / 66 )5.25723255778394e-159.74497544794268e-165.39481354865171
Trimmed Mean ( 33 / 66 )5.30587182813407e-159.7261533102950e-165.4552623826296
Trimmed Mean ( 34 / 66 )5.35598501576753e-159.70367929924419e-165.51954042440861
Trimmed Mean ( 35 / 66 )5.40764014763587e-159.67720719400792e-165.58801732692492
Trimmed Mean ( 36 / 66 )5.46090950237509e-159.64635171529701e-165.6611138216278
Trimmed Mean ( 37 / 66 )5.51586994774096e-159.61068296336007e-165.73931110699391
Trimmed Mean ( 38 / 66 )5.57260331069927e-159.56971985347188e-165.82316242902089
Trimmed Mean ( 39 / 66 )5.63119678391852e-159.52292232221026e-165.91330748417942
Trimmed Mean ( 40 / 66 )5.69174337291173e-159.46968201447476e-166.01049049399092
Trimmed Mean ( 41 / 66 )5.75434238865048e-159.40931107621166e-166.11558310915922
Trimmed Mean ( 42 / 66 )5.81909999113884e-159.34102856238824e-166.22961374357586
Trimmed Mean ( 43 / 66 )5.88612979020575e-159.26394381079245e-166.35380558261637
Trimmed Mean ( 44 / 66 )5.95555351066789e-159.17703590988933e-166.48962646452117
Trimmed Mean ( 45 / 66 )6.02750173005594e-159.07912807265136e-166.63885527533454
Trimmed Mean ( 46 / 66 )6.1021146983102e-158.96885526974563e-166.80367172262695
Trimmed Mean ( 47 / 66 )6.17954325027218e-158.84462279673014e-166.98677986873195
Trimmed Mean ( 48 / 66 )6.25994982346346e-158.70455242148726e-167.1915815085572
Trimmed Mean ( 49 / 66 )6.34350959560342e-158.5464111583037e-167.42242501338127
Trimmed Mean ( 50 / 66 )6.43041175862898e-158.3675151509533e-167.68497175400557
Trimmed Mean ( 51 / 66 )6.5208609487168e-158.16459689498503e-167.98675186612353
Trimmed Mean ( 52 / 66 )6.5641936330963e-158.0595583756803e-168.14460709522714
Trimmed Mean ( 53 / 66 )6.60937026149195e-157.93975084778534e-168.32440512076714
Trimmed Mean ( 54 / 66 )6.6565110911222e-157.80298175414206e-168.53072748451413
Trimmed Mean ( 55 / 66 )6.705747068736e-157.6466004423432e-168.76957952661265
Trimmed Mean ( 56 / 66 )6.75722104533226e-157.4673600397011e-169.0490093010203
Trimmed Mean ( 57 / 66 )6.75722104533226e-157.2612201385162e-169.30590302515339
Trimmed Mean ( 58 / 66 )6.81108916037485e-157.02305519197437e-169.69818543951963
Trimmed Mean ( 59 / 66 )6.92670852924676e-156.74620536645962e-1610.2675625080798
Trimmed Mean ( 60 / 66 )6.9888539400154e-156.42174825121688e-1610.8831017140715
Trimmed Mean ( 61 / 66 )7.05418629492604e-156.03723796153939e-1611.6844595821221
Trimmed Mean ( 62 / 66 )7.12295719483197e-155.57432490289477e-1612.7781521868827
Trimmed Mean ( 63 / 66 )7.19544544067875e-155.00368991351792e-1614.3802784845632
Trimmed Mean ( 64 / 66 )7.06841992344686e-154.87469590245162e-1614.5002274293499
Trimmed Mean ( 65 / 66 )6.93413580523029e-154.71670320498798e-1614.7012341117782
Trimmed Mean ( 66 / 66 )6.79195262123627e-154.52208494101194e-1615.019515798207
Median5.7731597280508e-15
Midrange1.20008170068076e-14
Midmean - Weighted Average at Xnp6.08861620125478e-15
Midmean - Weighted Average at X(n+1)p6.08861620125478e-15
Midmean - Empirical Distribution Function6.08861620125478e-15
Midmean - Empirical Distribution Function - Averaging6.08861620125478e-15
Midmean - Empirical Distribution Function - Interpolation6.08861620125478e-15
Midmean - Closest Observation6.08861620125478e-15
Midmean - True Basic - Statistics Graphics Toolkit6.08861620125478e-15
Midmean - MS Excel (old versions)6.08861620125478e-15
Number of observations200
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290437634ivh5yd9gwgw7y4t/1bw2v1290437751.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290437634ivh5yd9gwgw7y4t/1bw2v1290437751.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t1290437634ivh5yd9gwgw7y4t/2bw2v1290437751.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290437634ivh5yd9gwgw7y4t/2bw2v1290437751.ps (open in new window)


 
Parameters (Session):
par1 = Default ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = Default ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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