Home » date » 2009 » Jun » 01 »

Kristof Nollekens - Datareeks - Central Tendency 2a

*Unverified author*
R Software Module: rwasp_centraltendency.wasp (opens new window with default values)
Title produced by software: Central Tendency
Date of computation: Mon, 01 Jun 2009 06:42:40 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243861182yw9w3fhjro4adoi.htm/, Retrieved Mon, 01 Jun 2009 14:59:44 +0200
 
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/2009/Jun/01/t1243861182yw9w3fhjro4adoi.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
4000 3600 1600 2500 3800 3500 4100 2000 3300 4000 4100 4200 1100 1900 4800 4000 3250 1200 3600 3400 3600 3300 1300 2500 3800 3800 3000 1600 2100 3900 4000 3900 2300 3600 3600 4200 4400 1900 2700 3600 4100 5250 1200 3000 4000 5200 2100 3400 5200 6900 2300 4100 4300 4500 4700 2200 2900 4400 5100 2300 3500 4100 4700 5400 2500 3500 3900 4100 4500 1800 4900 4500 3700 3100 1700 4000 4200 4300 3600 2600 4600 4000 2900 1800 3000 4200 4400 4900 2300 2400 3600 3900 2800 3800 4400 4200 5400 2300 3500 3800 4400 4400 2500 3700 3500 3300 3700 2200 3200 3100 4800 4400 2500 3100 4700 4300 4600 3100 3200 4300 4000 4500 2600 3600 4700 3800 4100 1700 3200 4000 3700 3600 2500 3800 4500 3500 4100 2300 3400 4800 4900 2600 3300 3900 3800 5000 1700 2700 4000 3300 4000 2500 3600 3800 5900 3600 3300 4000 4200 4300 2900 3900 5200 4000 4700 2200 2400 3700 3700 3000 2100 etc...
 
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 Mean3873.412698412774.836915068321151.7580487500926
Geometric Mean3665.38256710701
Harmonic Mean3413.62984882109
Quadratic Mean4050.81071642671
Winsorized Mean ( 1 / 84 )3871.0317460317573.98563945653252.3213933739946
Winsorized Mean ( 2 / 84 )3870.2380952381073.618066445082652.5718520212047
Winsorized Mean ( 3 / 84 )3866.6666666666773.097943216431552.8970651775806
Winsorized Mean ( 4 / 84 )3868.2539682539772.871147457841153.083478210521
Winsorized Mean ( 5 / 84 )3872.2222222222271.806750223477753.9256018434346
Winsorized Mean ( 6 / 84 )3872.2222222222271.806750223477753.9256018434346
Winsorized Mean ( 7 / 84 )387571.463225957576154.2236926485852
Winsorized Mean ( 8 / 84 )3868.6507936507970.634321104324854.7701277957625
Winsorized Mean ( 9 / 84 )3868.6507936507970.634321104324854.7701277957625
Winsorized Mean ( 10 / 84 )3864.6825396825469.190817077293955.8554256609697
Winsorized Mean ( 11 / 84 )3864.6825396825469.190817077293955.8554256609697
Winsorized Mean ( 12 / 84 )3859.9206349206367.557157234859457.1356284501699
Winsorized Mean ( 13 / 84 )3849.6031746031766.48678068061357.9002793517071
Winsorized Mean ( 14 / 84 )3849.6031746031766.48678068061357.9002793517071
Winsorized Mean ( 15 / 84 )3855.5555555555665.804665033321958.5909153036976
Winsorized Mean ( 16 / 84 )3855.5555555555665.804665033321958.5909153036976
Winsorized Mean ( 17 / 84 )3855.5555555555664.401031985002359.8679157261554
Winsorized Mean ( 18 / 84 )3855.5555555555664.401031985002359.8679157261554
Winsorized Mean ( 19 / 84 )3855.5555555555664.401031985002359.8679157261554
Winsorized Mean ( 20 / 84 )3863.4920634920663.55614967502960.7886425349335
Winsorized Mean ( 21 / 84 )3863.4920634920663.55614967502960.7886425349335
Winsorized Mean ( 22 / 84 )3863.4920634920663.55614967502960.7886425349335
Winsorized Mean ( 23 / 84 )3863.4920634920661.757078499814262.5595017987078
Winsorized Mean ( 24 / 84 )3863.4920634920661.757078499814262.5595017987078
Winsorized Mean ( 25 / 84 )3863.4920634920661.757078499814262.5595017987078
Winsorized Mean ( 26 / 84 )3858.3333333333361.284664419098262.9575664630866
Winsorized Mean ( 27 / 84 )3852.9761904761960.805901671885563.3651682573053
Winsorized Mean ( 28 / 84 )3852.9761904761960.805901671885563.3651682573053
Winsorized Mean ( 29 / 84 )3852.9761904761960.805901671885563.3651682573053
Winsorized Mean ( 30 / 84 )3864.8809523809559.617302311583164.8281757564538
Winsorized Mean ( 31 / 84 )3864.8809523809559.617302311583164.8281757564538
Winsorized Mean ( 32 / 84 )3864.8809523809559.617302311583164.8281757564538
Winsorized Mean ( 33 / 84 )3877.9761904761958.360127171303266.4490702546492
Winsorized Mean ( 34 / 84 )3877.9761904761958.360127171303266.4490702546492
Winsorized Mean ( 35 / 84 )3877.9761904761958.360127171303266.4490702546492
Winsorized Mean ( 36 / 84 )3877.9761904761958.360127171303266.4490702546492
Winsorized Mean ( 37 / 84 )3877.9761904761958.360127171303266.4490702546492
Winsorized Mean ( 38 / 84 )3862.8968253968357.027707155193967.7371933415528
Winsorized Mean ( 39 / 84 )3862.8968253968357.027707155193967.7371933415528
Winsorized Mean ( 40 / 84 )3878.7698412698455.543701193009569.8327579538039
Winsorized Mean ( 41 / 84 )3878.7698412698455.543701193009569.8327579538039
Winsorized Mean ( 42 / 84 )3878.7698412698455.543701193009569.8327579538039
Winsorized Mean ( 43 / 84 )3878.7698412698455.543701193009569.8327579538039
Winsorized Mean ( 44 / 84 )3861.3095238095254.045717139798571.4452453988461
Winsorized Mean ( 45 / 84 )3879.1666666666752.414829143782274.0089537643153
Winsorized Mean ( 46 / 84 )3879.1666666666752.414829143782274.0089537643153
Winsorized Mean ( 47 / 84 )3879.1666666666752.414829143782274.0089537643153
Winsorized Mean ( 48 / 84 )3879.1666666666752.414829143782274.0089537643153
Winsorized Mean ( 49 / 84 )3859.7222222222250.792692008100675.989715638751
Winsorized Mean ( 50 / 84 )3879.5634920634949.019226076505579.1437116124307
Winsorized Mean ( 51 / 84 )3879.5634920634949.019226076505579.1437116124307
Winsorized Mean ( 52 / 84 )3900.1984126984147.243047675275482.5560289739643
Winsorized Mean ( 53 / 84 )3900.1984126984147.243047675275482.5560289739643
Winsorized Mean ( 54 / 84 )3900.1984126984147.243047675275482.5560289739643
Winsorized Mean ( 55 / 84 )3900.1984126984143.605976875193989.4418309641657
Winsorized Mean ( 56 / 84 )3900.1984126984143.605976875193989.4418309641657
Winsorized Mean ( 57 / 84 )3900.1984126984143.605976875193989.4418309641657
Winsorized Mean ( 58 / 84 )3877.1825396825441.755511351021392.8543900968826
Winsorized Mean ( 59 / 84 )3900.5952380952439.837463581671197.9127406065548
Winsorized Mean ( 60 / 84 )3900.5952380952439.837463581671197.9127406065548
Winsorized Mean ( 61 / 84 )3900.5952380952439.837463581671197.9127406065548
Winsorized Mean ( 62 / 84 )3900.5952380952439.837463581671197.9127406065548
Winsorized Mean ( 63 / 84 )3900.5952380952439.837463581671197.9127406065548
Winsorized Mean ( 64 / 84 )3925.9920634920637.8491674430131103.727303101268
Winsorized Mean ( 65 / 84 )3925.9920634920637.8491674430131103.727303101268
Winsorized Mean ( 66 / 84 )3899.8015873015935.7593919471388109.056708600260
Winsorized Mean ( 67 / 84 )3899.8015873015935.7593919471388109.056708600260
Winsorized Mean ( 68 / 84 )3886.3095238095232.6444824996604119.049506263423
Winsorized Mean ( 69 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 70 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 71 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 72 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 73 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 74 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 75 / 84 )390031.5947670509250123.438162836077
Winsorized Mean ( 76 / 84 )390027.0904012055099143.962430471749
Winsorized Mean ( 77 / 84 )390027.0904012055099143.962430471749
Winsorized Mean ( 78 / 84 )390027.0904012055099143.962430471749
Winsorized Mean ( 79 / 84 )390027.0904012055099143.962430471749
Winsorized Mean ( 80 / 84 )3931.7460317460324.8202389867576158.408870834956
Winsorized Mean ( 81 / 84 )3931.7460317460324.8202389867576158.408870834956
Winsorized Mean ( 82 / 84 )3931.7460317460324.8202389867576158.408870834956
Winsorized Mean ( 83 / 84 )3931.7460317460324.8202389867576158.408870834956
Winsorized Mean ( 84 / 84 )3931.7460317460324.8202389867576158.408870834956
Trimmed Mean ( 1 / 84 )387072.740944315561953.2024987634381
Trimmed Mean ( 2 / 84 )3868.9516129032371.428036070374754.1657285535798
Trimmed Mean ( 3 / 84 )3868.2926829268370.244268268685955.069157644728
Trimmed Mean ( 4 / 84 )3868.8524590163969.191497883423255.91514242884
Trimmed Mean ( 5 / 84 )3869.0082644628168.147553565914356.7739861816256
Trimmed Mean ( 6 / 84 )3868.3333333333367.299256397593257.4795850711907
Trimmed Mean ( 7 / 84 )3867.6470588235366.405884969438458.2425346880553
Trimmed Mean ( 8 / 84 )3866.5254237288165.525222850144459.0081995229764
Trimmed Mean ( 9 / 84 )3866.2393162393264.728949918309959.7296776962803
Trimmed Mean ( 10 / 84 )3865.9482758620763.889574512317360.5098453913909
Trimmed Mean ( 11 / 84 )3866.0869565217463.196073090731261.1760631229596
Trimmed Mean ( 12 / 84 )3866.2280701754462.464914975011761.8943941846727
Trimmed Mean ( 13 / 84 )3866.8141592920461.88073443243562.4881749507037
Trimmed Mean ( 14 / 84 )3868.3035714285761.377647675286863.0246305934287
Trimmed Mean ( 15 / 84 )3869.8198198198260.846620401094663.5995852244606
Trimmed Mean ( 16 / 84 )3870.9090909090960.351952762079864.1389203456106
Trimmed Mean ( 17 / 84 )3872.0183486238559.82936176145464.7176943665553
Trimmed Mean ( 18 / 84 )3873.1481481481559.400402541734865.2040724038337
Trimmed Mean ( 19 / 84 )3874.2990654205658.946561699102865.7256157737785
Trimmed Mean ( 20 / 84 )3875.4716981132158.466240510242566.2856319183765
Trimmed Mean ( 21 / 84 )3876.1904761904858.025526940616566.8014696386537
Trimmed Mean ( 22 / 84 )3876.9230769230857.558605756628167.3560977712986
Trimmed Mean ( 23 / 84 )3877.6699029126257.063736182067167.9533126001522
Trimmed Mean ( 24 / 84 )3878.4313725490256.671261206971168.4373576650159
Trimmed Mean ( 25 / 84 )3879.2079207920856.254467613949668.958219414917
Trimmed Mean ( 26 / 84 )388055.811734865919769.519430086185
Trimmed Mean ( 27 / 84 )3881.0606060606155.373575081701270.0886767801117
Trimmed Mean ( 28 / 84 )3882.3979591836754.939616003136170.6666380588109
Trimmed Mean ( 29 / 84 )3883.7628865979454.477759870580471.290796387817
Trimmed Mean ( 30 / 84 )3885.1562553.986021262211371.9659674701662
Trimmed Mean ( 31 / 84 )3886.0526315789553.542181798960572.5792730331807
Trimmed Mean ( 32 / 84 )3886.9680851063853.06901861151773.2436398260969
Trimmed Mean ( 33 / 84 )3887.9032258064552.564371424150673.9646098767989
Trimmed Mean ( 34 / 84 )3888.3152173913052.107912532636474.6204372504072
Trimmed Mean ( 35 / 84 )3888.7362637362651.620397641181575.3333263871242
Trimmed Mean ( 36 / 84 )3889.1666666666751.099449962480376.1097559664983
Trimmed Mean ( 37 / 84 )3889.6067415730350.542437062944776.9572455860998
Trimmed Mean ( 38 / 84 )3890.0568181818249.946432159350977.8845785374787
Trimmed Mean ( 39 / 84 )3891.0919540229949.392930347290978.7783175985713
Trimmed Mean ( 40 / 84 )3892.151162790748.799648432407779.7577705540585
Trimmed Mean ( 41 / 84 )3892.6470588235348.260124728682980.6596974356756
Trimmed Mean ( 42 / 84 )3893.1547619047647.680976046716581.6500643378264
Trimmed Mean ( 43 / 84 )3893.6746987951847.058747137350582.740721665001
Trimmed Mean ( 44 / 84 )3894.2073170731746.389546345549483.9457943405127
Trimmed Mean ( 45 / 84 )3895.3703703703745.765824460095885.1152670431368
Trimmed Mean ( 46 / 84 )3895.937545.202140059939986.1892267674456
Trimmed Mean ( 47 / 84 )3896.5189873417744.594342505495787.376980316765
Trimmed Mean ( 48 / 84 )3897.1153846153843.938261221112288.6952573066963
Trimmed Mean ( 49 / 84 )3897.7272727272743.229147709313690.1643330776915
Trimmed Mean ( 50 / 84 )3899.0131578947442.569296413150691.5921447245308
Trimmed Mean ( 51 / 84 )3899.6666666666741.977134147063992.8997833202349
Trimmed Mean ( 52 / 84 )3900.3378378378441.335315928378894.3584862057401
Trimmed Mean ( 53 / 84 )3900.3424657534240.76064844699195.688920916599
Trimmed Mean ( 54 / 84 )3900.3472222222240.13652076465297.1770135506423
Trimmed Mean ( 55 / 84 )3900.3521126760639.457718092276498.8489020970406
Trimmed Mean ( 56 / 84 )3900.3571428571438.9695655242112100.087262723879
Trimmed Mean ( 57 / 84 )3900.3623188405838.4374825632778101.472886847353
Trimmed Mean ( 58 / 84 )3900.3676470588237.8568580353359103.029354507397
Trimmed Mean ( 59 / 84 )3901.1194029850737.3501810961857104.447134886408
Trimmed Mean ( 60 / 84 )3901.1363636363636.9292713405013105.638054097154
Trimmed Mean ( 61 / 84 )3901.1538461538536.4677154604591106.975548012701
Trimmed Mean ( 62 / 84 )3901.17187535.9611456947223108.482969594947
Trimmed Mean ( 63 / 84 )3901.1904761904835.4045297331229110.189021167557
Trimmed Mean ( 64 / 84 )3901.2096774193534.7920261999201112.129418821497
Trimmed Mean ( 65 / 84 )3900.4098360655734.2655531634842113.828888664261
Trimmed Mean ( 66 / 84 )3899.5833333333333.6842306224102115.768811140336
Trimmed Mean ( 67 / 84 )3899.5762711864433.2054029356654117.438004855468
Trimmed Mean ( 68 / 84 )3899.5689655172432.6749454106949119.344314627098
Trimmed Mean ( 69 / 84 )390032.3244305315828120.651777490387
Trimmed Mean ( 70 / 84 )390032.0121035668507121.828919860129
Trimmed Mean ( 71 / 84 )390031.6623133246908123.174828067876
Trimmed Mean ( 72 / 84 )390031.2705453403740124.718004037001
Trimmed Mean ( 73 / 84 )390030.8315424068888126.493833767091
Trimmed Mean ( 74 / 84 )390030.3391336744067128.546847838636
Trimmed Mean ( 75 / 84 )390029.7860095967149130.93395365152
Trimmed Mean ( 76 / 84 )390029.1634197326900133.729172907264
Trimmed Mean ( 77 / 84 )390028.8644765320667135.114177306051
Trimmed Mean ( 78 / 84 )390028.5236128712348136.72882245338
Trimmed Mean ( 79 / 84 )390028.1350470755229138.617148552524
Trimmed Mean ( 80 / 84 )390027.6919095368733140.835358240895
Trimmed Mean ( 81 / 84 )3898.8888888888927.3915723957793142.338995095063
Trimmed Mean ( 82 / 84 )3897.7272727272727.0442800689815144.123905786561
Trimmed Mean ( 83 / 84 )3896.5116279069826.6428819474177146.249630036162
Trimmed Mean ( 84 / 84 )3895.238095238126.1787383074718148.793958268277
Median3900
Midrange4300
Midmean - Weighted Average at Xnp3907.03703703704
Midmean - Weighted Average at X(n+1)p3907.03703703704
Midmean - Empirical Distribution Function3907.03703703704
Midmean - Empirical Distribution Function - Averaging3907.03703703704
Midmean - Empirical Distribution Function - Interpolation3907.03703703704
Midmean - Closest Observation3907.03703703704
Midmean - True Basic - Statistics Graphics Toolkit3907.03703703704
Midmean - MS Excel (old versions)3907.03703703704
Number of observations252
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861182yw9w3fhjro4adoi/12dg91243860158.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861182yw9w3fhjro4adoi/12dg91243860158.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861182yw9w3fhjro4adoi/2kz3w1243860158.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243861182yw9w3fhjro4adoi/2kz3w1243860158.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