Home » date » 2010 » Nov » 07 »

Tutorial Mean

*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, 07 Nov 2010 09:33:08 +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/07/t12891236229nx4wfwegjnk2r4.htm/, Retrieved Sun, 07 Nov 2010 10:53:44 +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/07/t12891236229nx4wfwegjnk2r4.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 «
85 105 108 92 112,5 112 104 69 94,5 68,5 104 103,5 123,5 93 50,5 89 107 78,5 115 114 85 81 83,5 112 101 103,5 93,5 112 140 83,5 90 84 110,5 96 95 121 99,5 142,5 118 104,5 102,5 89,5 95 98,5 94 108 63,5 84,5 93,5 112 148,5 112 109 91,5 75 84 107 92,5 109,5 84 102,5 106 77 111,5 114 75 73,5 93,5 105 113,5 140 77 84,5 113,5 77,5 117,5 98 112 101 95 81 91 142 98,5 112 116,5 98,5 83,5 133 91,5 72,5 106,5 67 122,5 74 144,5 84 72,5 64 116 84 93,5 111,5 92 115 85 108 108 85 86 110,5 98 105 76,5 84 128 87 128 111 79 90 84 112 93 117 84 99,5 95 84 134 171,5 98,5 118,5 94,5 105 104 83 105,5 84 86 81 94 78,5 119,5 133 119 95 112 75 92 112 98,5 112,5 112,5 108 108 88 106 92 117,5 84 112 100 112 84 127,5 80,5 93,5 86,5 92,5 108,5 121 112 114 84 81 111,5 81 70 140 117 84 112 150,5 147 105 119,5 84 91 101 117,5 121 133 112 91,5 105 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time12 seconds
R Server'George Udny Yule' @ 72.249.76.132


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean101.3080168776371.2628090389896580.2243361820502
Geometric Mean99.495165034419
Harmonic Mean97.7029259587095
Quadratic Mean103.148729209587
Winsorized Mean ( 1 / 79 )101.3628691983121.2546223856163380.7915356527916
Winsorized Mean ( 2 / 79 )101.1898734177221.2178017555949383.0922380862287
Winsorized Mean ( 3 / 79 )101.2215189873421.2119900017056783.5167937399564
Winsorized Mean ( 4 / 79 )101.2215189873421.2047548489652884.0183536711036
Winsorized Mean ( 5 / 79 )101.2004219409281.1983536433725484.4495466764875
Winsorized Mean ( 6 / 79 )101.1624472573841.1854742837140485.334999372948
Winsorized Mean ( 7 / 79 )101.1476793248951.1716378739103486.3301550566252
Winsorized Mean ( 8 / 79 )101.1476793248951.1673267042904586.6489894843759
Winsorized Mean ( 9 / 79 )101.0907172995781.1542692379524787.579841839067
Winsorized Mean ( 10 / 79 )101.0907172995781.1542692379524787.579841839067
Winsorized Mean ( 11 / 79 )101.1371308016881.1494691339970387.9859474347127
Winsorized Mean ( 12 / 79 )101.1371308016881.1494691339970387.9859474347127
Winsorized Mean ( 13 / 79 )100.8628691983121.1055614875218791.2322564929405
Winsorized Mean ( 14 / 79 )100.8924050632911.0957682764763092.074581121963
Winsorized Mean ( 15 / 79 )100.8291139240511.0877506839094692.695059093563
Winsorized Mean ( 16 / 79 )100.8291139240511.0877506839094692.695059093563
Winsorized Mean ( 17 / 79 )100.8291139240511.0877506839094692.695059093563
Winsorized Mean ( 18 / 79 )100.5253164556961.0349014577927397.1351578440132
Winsorized Mean ( 19 / 79 )100.5654008438821.0309063670475897.5504702060299
Winsorized Mean ( 20 / 79 )100.6075949367091.0267641174262297.9851099480383
Winsorized Mean ( 21 / 79 )100.5632911392411.0217854272594598.4191870977872
Winsorized Mean ( 22 / 79 )100.2383966244730.977732306175238102.521309760738
Winsorized Mean ( 23 / 79 )100.2383966244730.95861944328845104.565369841253
Winsorized Mean ( 24 / 79 )100.0864978902950.944013807158032106.022281804974
Winsorized Mean ( 25 / 79 )100.1392405063290.938942744905611106.651061579261
Winsorized Mean ( 26 / 79 )100.1940928270040.933750695874448107.302830690984
Winsorized Mean ( 27 / 79 )100.1371308016880.907378288308996110.358746833479
Winsorized Mean ( 28 / 79 )100.1371308016880.907378288308996110.358746833479
Winsorized Mean ( 29 / 79 )100.1371308016880.896311117213077111.721397714051
Winsorized Mean ( 30 / 79 )100.0738396624470.890715073823246112.352246642573
Winsorized Mean ( 31 / 79 )100.0084388185650.885031741186243112.999832847261
Winsorized Mean ( 32 / 79 )100.0084388185650.885031741186243112.999832847261
Winsorized Mean ( 33 / 79 )100.0084388185650.885031741186243112.999832847261
Winsorized Mean ( 34 / 79 )100.2236286919830.853529296017296117.422599504953
Winsorized Mean ( 35 / 79 )100.2974683544300.847270760056225118.377115183079
Winsorized Mean ( 36 / 79 )100.2974683544300.847270760056225118.377115183079
Winsorized Mean ( 37 / 79 )100.2194092827000.840611399401248119.222044043282
Winsorized Mean ( 38 / 79 )100.2194092827000.840611399401248119.222044043282
Winsorized Mean ( 39 / 79 )100.2194092827000.826811611632477121.211903500998
Winsorized Mean ( 40 / 79 )100.1350210970460.819831033154015122.141047420237
Winsorized Mean ( 41 / 79 )100.1350210970460.819831033154015122.141047420237
Winsorized Mean ( 42 / 79 )100.0464135021100.812627948341958123.114659920618
Winsorized Mean ( 43 / 79 )99.95569620253160.805382477834374124.109598797464
Winsorized Mean ( 44 / 79 )99.95569620253160.805382477834374124.109598797464
Winsorized Mean ( 45 / 79 )99.76582278481010.79062316000095126.186314583411
Winsorized Mean ( 46 / 79 )99.76582278481010.79062316000095126.186314583411
Winsorized Mean ( 47 / 79 )99.76582278481010.79062316000095126.186314583411
Winsorized Mean ( 48 / 79 )99.76582278481010.79062316000095126.186314583411
Winsorized Mean ( 49 / 79 )99.76582278481010.79062316000095126.186314583411
Winsorized Mean ( 50 / 79 )99.66033755274260.782647289584118127.337485070318
Winsorized Mean ( 51 / 79 )99.66033755274260.782647289584118127.337485070318
Winsorized Mean ( 52 / 79 )99.44092827004220.766504414405297129.733014450014
Winsorized Mean ( 53 / 79 )99.44092827004220.766504414405297129.733014450014
Winsorized Mean ( 54 / 79 )99.44092827004220.766504414405297129.733014450014
Winsorized Mean ( 55 / 79 )99.44092827004220.748328526683232132.884053893799
Winsorized Mean ( 56 / 79 )99.44092827004220.748328526683232132.884053893799
Winsorized Mean ( 57 / 79 )99.56118143459910.738216000425321134.86727648444
Winsorized Mean ( 58 / 79 )99.56118143459910.738216000425321134.86727648444
Winsorized Mean ( 59 / 79 )99.56118143459910.738216000425321134.86727648444
Winsorized Mean ( 60 / 79 )99.56118143459910.738216000425321134.86727648444
Winsorized Mean ( 61 / 79 )99.56118143459910.738216000425321134.86727648444
Winsorized Mean ( 62 / 79 )99.82278481012660.71658883074587139.302736139809
Winsorized Mean ( 63 / 79 )99.82278481012660.71658883074587139.302736139809
Winsorized Mean ( 64 / 79 )99.9578059071730.705614406716097141.660664742338
Winsorized Mean ( 65 / 79 )100.0949367088610.69459548094089144.105367016315
Winsorized Mean ( 66 / 79 )100.0949367088610.69459548094089144.105367016315
Winsorized Mean ( 67 / 79 )100.2362869198310.683367754916057146.679860439338
Winsorized Mean ( 68 / 79 )100.3797468354430.672104105615443149.351485873644
Winsorized Mean ( 69 / 79 )100.6708860759490.649656898344682154.96008174847
Winsorized Mean ( 70 / 79 )100.6708860759490.649656898344682154.96008174847
Winsorized Mean ( 71 / 79 )100.8206751054850.638326999500969157.945183556868
Winsorized Mean ( 72 / 79 )100.9725738396620.626986890157815161.044154869406
Winsorized Mean ( 73 / 79 )100.9725738396620.626986890157815161.044154869406
Winsorized Mean ( 74 / 79 )101.2848101265820.604142611482769167.650498742334
Winsorized Mean ( 75 / 79 )101.2848101265820.604142611482769167.650498742334
Winsorized Mean ( 76 / 79 )101.2848101265820.604142611482769167.650498742334
Winsorized Mean ( 77 / 79 )101.2848101265820.604142611482769167.650498742334
Winsorized Mean ( 78 / 79 )101.2848101265820.58000000796003174.628980580225
Winsorized Mean ( 79 / 79 )101.2848101265820.58000000796003174.628980580225
Trimmed Mean ( 1 / 79 )101.3080168776371.2187840524225683.1222041971004
Trimmed Mean ( 2 / 79 )101.2255319148941.1803935066347485.755751235437
Trimmed Mean ( 3 / 79 )101.0324675324681.1600671600390287.0919124450256
Trimmed Mean ( 4 / 79 )101.0324675324681.1407414144402388.5673705307218
Trimmed Mean ( 5 / 79 )100.9008810572691.1223930183121389.8979942061691
Trimmed Mean ( 6 / 79 )100.8377777777781.1045076193167591.2965886465831
Trimmed Mean ( 7 / 79 )100.7802690582961.0882255761256192.6097229005605
Trimmed Mean ( 8 / 79 )100.7802690582961.0734843418356693.881452323712
Trimmed Mean ( 9 / 79 )100.6666666666671.0585738830543195.0964956515007
Trimmed Mean ( 10 / 79 )100.6152073732721.0447164245582196.3086297947506
Trimmed Mean ( 11 / 79 )100.5627906976741.0300358012779997.630383888505
Trimmed Mean ( 12 / 79 )100.5046948356811.0150671454619999.0128537653906
Trimmed Mean ( 13 / 79 )100.4454976303320.999177310233844100.528201152630
Trimmed Mean ( 14 / 79 )100.4090909090910.987334364906136101.697149899808
Trimmed Mean ( 15 / 79 )100.3695652173910.975804544562975102.858267853572
Trimmed Mean ( 16 / 79 )100.3695652173910.964393106807297104.075365645938
Trimmed Mean ( 17 / 79 )100.2980295566500.95227939888922105.324161872705
Trimmed Mean ( 18 / 79 )100.2611940298510.939408585432293106.727994170623
Trimmed Mean ( 19 / 79 )100.2437185929650.930533904132348107.727099622914
Trimmed Mean ( 20 / 79 )100.2233502538070.92144125591823108.768030094260
Trimmed Mean ( 21 / 79 )100.20.912113388056815109.854762918751
Trimmed Mean ( 22 / 79 )100.1787564766840.90260075228505110.989001751958
Trimmed Mean ( 23 / 79 )100.1753926701570.895948972732344111.809261150951
Trimmed Mean ( 24 / 79 )100.1719576719580.890280825726614112.517258349579
Trimmed Mean ( 25 / 79 )100.1764705882350.885276814641944113.158357850761
Trimmed Mean ( 26 / 79 )100.1783783783780.88027599416115113.803374217699
Trimmed Mean ( 27 / 79 )100.1775956284150.87527570082535114.452618225265
Trimmed Mean ( 28 / 79 )100.1795580110500.871684974659593114.926333392601
Trimmed Mean ( 29 / 79 )100.181564245810.867805694153331115.442390987710
Trimmed Mean ( 30 / 79 )100.1836158192090.864333186272073115.908560969766
Trimmed Mean ( 31 / 79 )100.1885714285710.860924716558606116.373208367228
Trimmed Mean ( 32 / 79 )100.1885714285710.857579263865549116.827185136182
Trimmed Mean ( 33 / 79 )100.2046783625730.853941996575876117.343658895302
Trimmed Mean ( 34 / 79 )100.2130177514790.84999194800329117.898784790714
Trimmed Mean ( 35 / 79 )100.2125748502990.847632017597334118.226509581785
Trimmed Mean ( 36 / 79 )100.2090909090910.845393945169387118.535378070413
Trimmed Mean ( 37 / 79 )100.2055214723930.842909419738516118.880533454565
Trimmed Mean ( 38 / 79 )100.2049689440990.84055392544773119.213016453078
Trimmed Mean ( 39 / 79 )100.2044025157230.837936658734175119.584698283873
Trimmed Mean ( 40 / 79 )100.2038216560510.835844111772823119.883385244551
Trimmed Mean ( 41 / 79 )100.2064516129030.83389882205749120.166198778963
Trimmed Mean ( 42 / 79 )100.2091503267970.83170137389145120.486936143833
Trimmed Mean ( 43 / 79 )100.2152317880790.829645392662897120.792850384452
Trimmed Mean ( 44 / 79 )100.2248322147650.827732137591571121.083654558087
Trimmed Mean ( 45 / 79 )100.2346938775510.825552710634965121.415256211147
Trimmed Mean ( 46 / 79 )100.2517241379310.82391406728865121.677403163950
Trimmed Mean ( 47 / 79 )100.2692307692310.822013339331926121.980053086149
Trimmed Mean ( 48 / 79 )100.2872340425530.819828268685334122.327123707716
Trimmed Mean ( 49 / 79 )100.3057553956830.817334336973918122.723041059371
Trimmed Mean ( 50 / 79 )100.3248175182480.814504475625238123.172825344190
Trimmed Mean ( 51 / 79 )100.3481481481480.811765236489504123.617203148666
Trimmed Mean ( 52 / 79 )100.3721804511280.808656989073838124.122071295130
Trimmed Mean ( 53 / 79 )100.4045801526720.806063969080287124.561553430099
Trimmed Mean ( 54 / 79 )100.4379844961240.803091164716075125.064237920776
Trimmed Mean ( 55 / 79 )100.4724409448820.799702073294136125.637339579495
Trimmed Mean ( 56 / 79 )100.5080.79698998253307126.10948970846
Trimmed Mean ( 57 / 79 )100.5447154471540.793860725649459126.652839973786
Trimmed Mean ( 58 / 79 )100.5785123966940.790961515688142127.159805378382
Trimmed Mean ( 59 / 79 )100.6134453781510.787612327313799127.744883985374
Trimmed Mean ( 60 / 79 )100.6495726495730.783766010959015128.417883963121
Trimmed Mean ( 61 / 79 )100.6869565217390.779369302151898129.190303292335
Trimmed Mean ( 62 / 79 )100.7256637168140.774361792969724130.075714777359
Trimmed Mean ( 63 / 79 )100.7256637168140.770299006605082130.761772835122
Trimmed Mean ( 64 / 79 )100.7567567567570.765631463767306131.599550860908
Trimmed Mean ( 65 / 79 )100.8177570093460.761133565482309132.457378811642
Trimmed Mean ( 66 / 79 )100.8428571428570.756816226456558133.246161508729
Trimmed Mean ( 67 / 79 )100.8689320388350.751828824428541134.164757670078
Trimmed Mean ( 68 / 79 )100.8910891089110.746994107111435135.062764415972
Trimmed Mean ( 69 / 79 )100.9090909090910.742320111839728135.937433594522
Trimmed Mean ( 70 / 79 )100.9175257731960.738699240918571136.615174597587
Trimmed Mean ( 71 / 79 )100.9263157894740.734411283947564137.424789073202
Trimmed Mean ( 72 / 79 )100.9301075268820.730304401151259138.202792380512
Trimmed Mean ( 73 / 79 )100.9285714285710.726381107507484138.947131726621
Trimmed Mean ( 74 / 79 )100.9269662921350.721697444460288139.846644971303
Trimmed Mean ( 75 / 79 )100.9137931034480.718088682795314140.531100853198
Trimmed Mean ( 76 / 79 )100.90.713701441710159141.375642675213
Trimmed Mean ( 77 / 79 )100.8855421686750.708421140898089142.408994232977
Trimmed Mean ( 78 / 79 )100.8703703703700.702111991270141143.667066827748
Trimmed Mean ( 79 / 79 )100.8544303797470.69700243210116144.697386601241
Median101
Midrange111
Midmean - Weighted Average at Xnp100.728
Midmean - Weighted Average at X(n+1)p100.728
Midmean - Empirical Distribution Function100.728
Midmean - Empirical Distribution Function - Averaging100.728
Midmean - Empirical Distribution Function - Interpolation100.728
Midmean - Closest Observation100.728
Midmean - True Basic - Statistics Graphics Toolkit100.728
Midmean - MS Excel (old versions)100.728
Number of observations237
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/07/t12891236229nx4wfwegjnk2r4/1ehy01289122375.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/07/t12891236229nx4wfwegjnk2r4/1ehy01289122375.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/07/t12891236229nx4wfwegjnk2r4/278fl1289122375.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/07/t12891236229nx4wfwegjnk2r4/278fl1289122375.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