Home » date » 2008 » Dec » 21 »

D3: 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: Sun, 21 Dec 2008 09:45:32 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/21/t1229877981zvw5n3r0n7cn6jd.htm/, Retrieved Sun, 21 Dec 2008 17:46:23 +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/2008/Dec/21/t1229877981zvw5n3r0n7cn6jd.htm/},
    year = {2008},
}
@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 = {2008},
    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:
s0800650 Jan Werkhoven
 
Dataseries X:
» Textbox « » Textfile « » CSV «
29 29 30 32 25 27 27 23 24 26 24 25 28 27 26 23 22 25 22 21 24 24 27 31 35 41 43 48 42 38 45 50 44 43 45 43 47 52 51 54 61 62 57 59 55 56 58 66 68 65 69 71 74 78 78 77 73 78 80 82 68 68 66 64 60 53 52 53 54 47 44 41 39 37 40 40 43 39 42 40 44 53 54 60 68 61 60 64 59 55 59 60 57 55 55 44 44 49 58 55 69 73 66 61 59 53 54 44 49 50 39 32 28 32 30 28 30 27 32 41 35 34 25 27 27 32 30 41 30 33 24 24 19 21 17 14 12 9 5 5 8 6 9 3 4 0 5 16 17 23 26 24 25 33 41 61 78 54 46 41 41 40 40 42 50 45 45 45 47 56 58 63 68 61 62 62 67 60 54 75 60 57 51 50 52 55 56 46 49 46 48 57 56 57 56 55 50 50 62 61 60 56 55 53 55 51 42 42 49 43 46 42 43 34 35 29 30 57 37 32 33 25 30 30 32 27 26 22 25 21 23 18 16 24 29 27 35 39 39 59
 
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'Gwilym Jenkins' @ 72.249.127.135


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean431.1267323559535238.1634553874245
Geometric Mean0
Harmonic Mean0
Quadratic Mean46.3941447455028
Winsorized Mean ( 1 / 80 )43.00416666666671.1236257361162838.2726786014238
Winsorized Mean ( 2 / 80 )42.99583333333331.1201604088635338.3836395154826
Winsorized Mean ( 3 / 80 )43.00833333333331.1183612685580138.4565654609866
Winsorized Mean ( 4 / 80 )43.00833333333331.1183612685580138.4565654609866
Winsorized Mean ( 5 / 80 )43.00833333333331.1183612685580138.4565654609866
Winsorized Mean ( 6 / 80 )43.00833333333331.1116065695669638.6902475307319
Winsorized Mean ( 7 / 80 )43.00833333333331.0963517488179739.228590075861
Winsorized Mean ( 8 / 80 )43.00833333333331.0879233039581539.5325048896902
Winsorized Mean ( 9 / 80 )42.97083333333331.0835140593271739.6587685812004
Winsorized Mean ( 10 / 80 )43.09583333333331.0676947285421040.3634411421881
Winsorized Mean ( 11 / 80 )43.09583333333331.0462858184219041.1893505336185
Winsorized Mean ( 12 / 80 )43.09583333333331.0240551299750742.0835090532502
Winsorized Mean ( 13 / 80 )43.09583333333331.0240551299750742.0835090532502
Winsorized Mean ( 14 / 80 )43.09583333333331.0115855706216442.6022618203718
Winsorized Mean ( 15 / 80 )43.09583333333331.0115855706216442.6022618203718
Winsorized Mean ( 16 / 80 )43.16251.0044935867192542.969413215441
Winsorized Mean ( 17 / 80 )43.23333333333330.99717989146230543.3556008334005
Winsorized Mean ( 18 / 80 )43.38333333333330.9824003327366344.1605442177348
Winsorized Mean ( 19 / 80 )43.30416666666670.97422139130184744.4500265066029
Winsorized Mean ( 20 / 80 )43.22083333333330.96586885601754444.7481384911206
Winsorized Mean ( 21 / 80 )43.30833333333330.95758354028989245.2266893812967
Winsorized Mean ( 22 / 80 )43.30833333333330.95758354028989245.2266893812967
Winsorized Mean ( 23 / 80 )43.21250.94822526089399745.5719772317168
Winsorized Mean ( 24 / 80 )43.21250.92950777397655246.4896595916906
Winsorized Mean ( 25 / 80 )43.21250.92950777397655246.4896595916906
Winsorized Mean ( 26 / 80 )43.10416666666670.9195345890252146.8760688082011
Winsorized Mean ( 27 / 80 )42.99166666666670.90952252839642347.2683911881382
Winsorized Mean ( 28 / 80 )43.10833333333330.89896871928447947.9530960405884
Winsorized Mean ( 29 / 80 )43.10833333333330.89896871928447947.9530960405884
Winsorized Mean ( 30 / 80 )43.10833333333330.89896871928447947.9530960405884
Winsorized Mean ( 31 / 80 )42.97916666666670.88780377001560948.4106602362266
Winsorized Mean ( 32 / 80 )42.97916666666670.88780377001560948.4106602362266
Winsorized Mean ( 33 / 80 )42.97916666666670.88780377001560948.4106602362266
Winsorized Mean ( 34 / 80 )42.97916666666670.88780377001560948.4106602362266
Winsorized Mean ( 35 / 80 )42.97916666666670.88780377001560948.4106602362266
Winsorized Mean ( 36 / 80 )43.12916666666670.87458892349489249.3136438251708
Winsorized Mean ( 37 / 80 )42.9750.86162420415000449.8767325627709
Winsorized Mean ( 38 / 80 )42.9750.86162420415000449.8767325627709
Winsorized Mean ( 39 / 80 )42.9750.86162420415000449.8767325627709
Winsorized Mean ( 40 / 80 )42.9750.86162420415000449.8767325627709
Winsorized Mean ( 41 / 80 )42.9750.86162420415000449.8767325627709
Winsorized Mean ( 42 / 80 )42.9750.86162420415000449.8767325627709
Winsorized Mean ( 43 / 80 )43.15416666666670.84620425598110750.9973406085423
Winsorized Mean ( 44 / 80 )42.97083333333330.83117009146368351.6992054630624
Winsorized Mean ( 45 / 80 )42.97083333333330.83117009146368351.6992054630624
Winsorized Mean ( 46 / 80 )42.97083333333330.83117009146368351.6992054630624
Winsorized Mean ( 47 / 80 )43.16666666666670.81467251479912552.9865263434232
Winsorized Mean ( 48 / 80 )43.16666666666670.81467251479912552.9865263434232
Winsorized Mean ( 49 / 80 )42.96250.79832310413225153.8159296375353
Winsorized Mean ( 50 / 80 )42.96250.79832310413225153.8159296375353
Winsorized Mean ( 51 / 80 )42.96250.79832310413225153.8159296375353
Winsorized Mean ( 52 / 80 )42.74583333333330.78151472734741354.6961328271056
Winsorized Mean ( 53 / 80 )42.74583333333330.78151472734741354.6961328271056
Winsorized Mean ( 54 / 80 )42.74583333333330.78151472734741354.6961328271056
Winsorized Mean ( 55 / 80 )42.74583333333330.78151472734741354.6961328271056
Winsorized Mean ( 56 / 80 )42.97916666666670.76208185637190656.3970475183341
Winsorized Mean ( 57 / 80 )42.97916666666670.76208185637190656.3970475183341
Winsorized Mean ( 58 / 80 )42.73750.74376139045225857.4613048601685
Winsorized Mean ( 59 / 80 )42.98333333333330.7236290521488959.399678890296
Winsorized Mean ( 60 / 80 )42.98333333333330.7236290521488959.399678890296
Winsorized Mean ( 61 / 80 )42.98333333333330.7236290521488959.399678890296
Winsorized Mean ( 62 / 80 )42.98333333333330.7236290521488959.399678890296
Winsorized Mean ( 63 / 80 )43.24583333333330.70266100902755761.5457991516893
Winsorized Mean ( 64 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 65 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 66 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 67 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 68 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 69 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 70 / 80 )42.97916666666670.68270750460451862.9539976883128
Winsorized Mean ( 71 / 80 )43.2750.6594164245152765.626208858554
Winsorized Mean ( 72 / 80 )43.5750.6363118594107668.4805718383931
Winsorized Mean ( 73 / 80 )43.27083333333330.6137572604696270.501542092104
Winsorized Mean ( 74 / 80 )43.27083333333330.6137572604696270.501542092104
Winsorized Mean ( 75 / 80 )43.27083333333330.6137572604696270.501542092104
Winsorized Mean ( 76 / 80 )43.27083333333330.6137572604696270.501542092104
Winsorized Mean ( 77 / 80 )43.27083333333330.6137572604696270.501542092104
Winsorized Mean ( 78 / 80 )43.27083333333330.6137572604696270.501542092104
Winsorized Mean ( 79 / 80 )43.27083333333330.56467051144419976.630233837896
Winsorized Mean ( 80 / 80 )43.27083333333330.56467051144419976.630233837896
Trimmed Mean ( 1 / 80 )43.01680672268911.1096174127280638.7672419603885
Trimmed Mean ( 2 / 80 )43.02966101694921.0948589198272639.3015577054789
Trimmed Mean ( 3 / 80 )43.04700854700851.0811883167417339.8145335835066
Trimmed Mean ( 4 / 80 )43.06034482758621.0674480547256240.3395225059965
Trimmed Mean ( 5 / 80 )43.07391304347831.0529528802165640.9077308707483
Trimmed Mean ( 6 / 80 )43.08771929824561.0376467741969341.5244574258833
Trimmed Mean ( 7 / 80 )43.10176991150441.0228525413652242.1387914371074
Trimmed Mean ( 8 / 80 )43.11607142857141.0099499204144842.6912964267344
Trimmed Mean ( 9 / 80 )43.13063063063060.99766565125599743.2315481407343
Trimmed Mean ( 10 / 80 )43.150.9853224423931543.7927709179112
Trimmed Mean ( 11 / 80 )43.15596330275230.97439741823470744.289899064939
Trimmed Mean ( 12 / 80 )43.1620370370370.96548230822961644.7051558263997
Trimmed Mean ( 13 / 80 )43.16822429906540.95857720302668845.0336437824336
Trimmed Mean ( 14 / 80 )43.17452830188680.95126884833863245.386252663787
Trimmed Mean ( 15 / 80 )43.18095238095240.94478607595183145.7044758385642
Trimmed Mean ( 16 / 80 )43.18750.9379148716619146.046289812502
Trimmed Mean ( 17 / 80 )43.18932038834950.93128354875679146.3761229820979
Trimmed Mean ( 18 / 80 )43.18627450980390.92489268800181246.6932813612203
Trimmed Mean ( 19 / 80 )43.17326732673270.91934927240135646.9606803668462
Trimmed Mean ( 20 / 80 )43.1650.91412086717183947.220232630228
Trimmed Mean ( 21 / 80 )43.16161616161620.90921025611395547.4715456313622
Trimmed Mean ( 22 / 80 )43.15306122448980.90459910088066747.7040726466325
Trimmed Mean ( 23 / 80 )43.14432989690720.89967260102254847.9555894531748
Trimmed Mean ( 24 / 80 )43.1406250.89509161720487948.1968819401037
Trimmed Mean ( 25 / 80 )43.13684210526320.89150266459612348.3866664883222
Trimmed Mean ( 26 / 80 )43.13297872340430.88764152938805248.5927903273527
Trimmed Mean ( 27 / 80 )43.13440860215050.88416006644848348.7857462002485
Trimmed Mean ( 28 / 80 )43.14130434782610.88105785906844348.9653476259097
Trimmed Mean ( 29 / 80 )43.14285714285710.87837721262754749.1165487021243
Trimmed Mean ( 30 / 80 )43.14444444444440.87545757202223349.2821649195225
Trimmed Mean ( 31 / 80 )43.14606741573030.87228284663852149.4633908966575
Trimmed Mean ( 32 / 80 )43.15340909090910.86952102717876949.6289425350918
Trimmed Mean ( 33 / 80 )43.16091954022990.8665046558899449.8103723353934
Trimmed Mean ( 34 / 80 )43.16860465116280.86321596062607450.0090436463355
Trimmed Mean ( 35 / 80 )43.17647058823530.85963562251279950.2264790540279
Trimmed Mean ( 36 / 80 )43.18452380952380.85574260189335450.464384633857
Trimmed Mean ( 37 / 80 )43.18674698795180.85231490809988450.6699420337849
Trimmed Mean ( 38 / 80 )43.19512195121950.84933708774045650.8574540953277
Trimmed Mean ( 39 / 80 )43.20370370370370.84606736680918451.0641414603189
Trimmed Mean ( 40 / 80 )43.21250.84248376335062651.2917896816674
Trimmed Mean ( 41 / 80 )43.22151898734180.83856222276282851.5424113012616
Trimmed Mean ( 42 / 80 )43.23076923076920.83427636404262251.8182835976408
Trimmed Mean ( 43 / 80 )43.24025974025970.82959718595441552.1219942308672
Trimmed Mean ( 44 / 80 )43.24342105263160.825429992959452.3889626273353
Trimmed Mean ( 45 / 80 )43.25333333333330.82175055500181252.6355997815395
Trimmed Mean ( 46 / 80 )43.26351351351350.81769823258136852.9088993832556
Trimmed Mean ( 47 / 80 )43.27397260273970.81324188094010153.2116872199393
Trimmed Mean ( 48 / 80 )43.27777777777780.80935457107592153.4719631227215
Trimmed Mean ( 49 / 80 )43.28169014084510.80506129186930753.7619813273440
Trimmed Mean ( 50 / 80 )43.29285714285710.80130266683816554.0280956678767
Trimmed Mean ( 51 / 80 )43.30434782608700.79713126128338654.3252409350585
Trimmed Mean ( 52 / 80 )43.31617647058820.7925100224710354.6569446977204
Trimmed Mean ( 53 / 80 )43.33582089552240.78840662772723554.9663325642606
Trimmed Mean ( 54 / 80 )43.35606060606060.78383894400624555.3124604711082
Trimmed Mean ( 55 / 80 )43.37692307692310.77876294305819855.699778043601
Trimmed Mean ( 56 / 80 )43.39843750.77312923845823256.1334836935475
Trimmed Mean ( 57 / 80 )43.41269841269840.76819886985943556.5123174688373
Trimmed Mean ( 58 / 80 )43.42741935483870.762703704165956.938781230034
Trimmed Mean ( 59 / 80 )43.45081967213110.7577538005503757.3416057307427
Trimmed Mean ( 60 / 80 )43.46666666666670.7536032336715357.6784503098514
Trimmed Mean ( 61 / 80 )43.48305084745760.74891713326448758.0612312311744
Trimmed Mean ( 62 / 80 )43.50.74363868965353458.4961495484681
Trimmed Mean ( 63 / 80 )43.51754385964910.73770336178099158.9905727887527
Trimmed Mean ( 64 / 80 )43.52678571428570.73257973828477859.4157651919188
Trimmed Mean ( 65 / 80 )43.54545454545450.72815834318506559.8021775799213
Trimmed Mean ( 66 / 80 )43.56481481481480.7231130955836260.246198113248
Trimmed Mean ( 67 / 80 )43.58490566037740.71737115225380260.7564236775404
Trimmed Mean ( 68 / 80 )43.60576923076920.71084870085683761.3432495244179
Trimmed Mean ( 69 / 80 )43.62745098039220.70344874827779262.019373958945
Trimmed Mean ( 70 / 80 )43.650.69505831453631362.8004860701792
Trimmed Mean ( 71 / 80 )43.67346938775510.6855448229180763.706220115347
Trimmed Mean ( 72 / 80 )43.68750.67689184201722664.5413303694214
Trimmed Mean ( 73 / 80 )43.69148936170210.66912608499917965.2963474914533
Trimmed Mean ( 74 / 80 )43.70652173913040.66218918435828866.0030740029157
Trimmed Mean ( 75 / 80 )43.72222222222220.6541956736864866.8335545171702
Trimmed Mean ( 76 / 80 )43.73863636363640.64498999979729267.8128907074259
Trimmed Mean ( 77 / 80 )43.75581395348840.6343854370700268.9735473052149
Trimmed Mean ( 78 / 80 )43.77380952380950.622155302514170.3583323117582
Trimmed Mean ( 79 / 80 )43.79268292682930.60802071631800572.0249849248967
Trimmed Mean ( 80 / 80 )43.81250.59722293772239973.3603772271134
Median43.5
Midrange41
Midmean - Weighted Average at Xnp43.5528455284553
Midmean - Weighted Average at X(n+1)p43.5528455284553
Midmean - Empirical Distribution Function43.5528455284553
Midmean - Empirical Distribution Function - Averaging43.5528455284553
Midmean - Empirical Distribution Function - Interpolation43.5528455284553
Midmean - Closest Observation43.5528455284553
Midmean - True Basic - Statistics Graphics Toolkit43.5528455284553
Midmean - MS Excel (old versions)43.5528455284553
Number of observations240
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229877981zvw5n3r0n7cn6jd/1vs701229877929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229877981zvw5n3r0n7cn6jd/1vs701229877929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229877981zvw5n3r0n7cn6jd/24g7x1229877929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229877981zvw5n3r0n7cn6jd/24g7x1229877929.ps (open in new window)


 
Parameters (Session):
par1 = Exchange rate of Japanese Yen (JPY refered to 1 EUR) ; par2 = http://www.nbb.be/belgostat/PresentationLinker?TableId=451000038&Lang=N ; par3 = Exchange rate of Japanese Yen (JPY refered to 1 EUR) ;
 
Parameters (R input):
par1 = Exchange rate of Japanese Yen (JPY refered to 1 EUR) ; par2 = http://www.nbb.be/belgostat/PresentationLinker?TableId=451000038&Lang=N ; par3 = Exchange rate of Japanese Yen (JPY refered to 1 EUR) ;
 
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