Home » date » 2009 » Apr » 22 »

TRIMMED MEAN PLOT YANNICK ROEY

*Unverified author*
R Software Module: rwasp_centraltendency.wasp (opens new window with default values)
Title produced by software: Central Tendency
Date of computation: Wed, 22 Apr 2009 11:00:21 -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/Apr/22/t1240419683ursort586qlxs2u.htm/, Retrieved Wed, 22 Apr 2009 19:01:30 +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/Apr/22/t1240419683ursort586qlxs2u.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 «
3.594 3.617 3.647 3.761 3.767 3.692 3.709 3.716 3.755 3.702 3.698 3.765 3.809 3.777 3.747 3.695 3.719 3.714 3.740 3.632 3.643 3.615 3.747 3.687 3.700 3.578 3.608 3.711 3.599 3.721 3.683 3.668 3.715 3.673 3.701 3.846 3.853 3.807 3.860 3.854 3.842 3.826 3.863 3.763 3.789 3.822 3.877 3.867 3.940 3.864 3.859 3.868 3.887 3.908 3.936 3.891 3.962 3.947 3.909 3.897 3.878 3.841 3.841 3.842 3.836 3.821 3.815 3.805 3.815 3.803 3.722 3.745 3.681 3.684 3.676 3.725 3.734 3.747 3.683 3.715 3.717 3.772 3.655 3.615 3.634 3.540 3.580 3.598 3.577 3.568 3.493 3.446 3.376 3.345 3.336 3.341 3.196 3.191 3.157 3.111 3.054 3.109 3.041 3.017 3.045 3.037 3.043 2.992 2.946 2.883 2.988 2.950 3.054 3.083 3.125 3.175 3.066 3.054 2.969 3.007 3.021 2.982 2.987 2.964 3.084 3.060 3.026 3.083 3.089 3.090 3.065 3.072 3.070 3.057 3.009 2.990 2.984 3.014 2.987 3.025 3.030 3.097 3.118 3.153 3.189 3.173 3. 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'George Udny Yule' @ 72.249.76.132


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean2.931244094488190.047545390002147261.6514891213598
Geometric Mean2.82546799055594
Harmonic Mean2.71531923203185
Quadratic Mean3.02722887496425
Winsorized Mean ( 1 / 84 )2.931255905511810.047533541402014461.6671053545274
Winsorized Mean ( 2 / 84 )2.931381889763780.047511762630520261.6980243936634
Winsorized Mean ( 3 / 84 )2.931440944881890.047497883143874861.7172966635655
Winsorized Mean ( 4 / 84 )2.931094488188980.047455486978958861.7651334921205
Winsorized Mean ( 5 / 84 )2.931074803149610.047453884413335761.7668045384689
Winsorized Mean ( 6 / 84 )2.931169291338580.047400229577881461.8387150746285
Winsorized Mean ( 7 / 84 )2.931031496062990.047384430012274961.8564261573625
Winsorized Mean ( 8 / 84 )2.9310.047365732223712361.8801792434379
Winsorized Mean ( 9 / 84 )2.930716535433070.047337169262276261.9115291663334
Winsorized Mean ( 10 / 84 )2.930834645669290.04731972403715961.9368499141664
Winsorized Mean ( 11 / 84 )2.930574803149610.047277255645319661.9869906395409
Winsorized Mean ( 12 / 84 )2.930574803149610.047269272432039861.997459498937
Winsorized Mean ( 13 / 84 )2.930472440944880.047252630350961462.0171283414121
Winsorized Mean ( 14 / 84 )2.930692913385830.047223421516736362.0601561525391
Winsorized Mean ( 15 / 84 )2.930988188976380.047167124690405762.1404889149957
Winsorized Mean ( 16 / 84 )2.930925196850390.047162222941353362.1456117642086
Winsorized Mean ( 17 / 84 )2.930590551181100.04713625245760962.1727523590609
Winsorized Mean ( 18 / 84 )2.930661417322830.047118064400068162.1982556931731
Winsorized Mean ( 19 / 84 )2.930287401574800.047064281475726262.2613861232775
Winsorized Mean ( 20 / 84 )2.930287401574800.047011958496675662.3306812836146
Winsorized Mean ( 21 / 84 )2.930370078740160.04700458393767962.3422192743028
Winsorized Mean ( 22 / 84 )2.930543307086610.046974801000479162.3854331401367
Winsorized Mean ( 23 / 84 )2.930633858267720.046966746153996762.3980602926722
Winsorized Mean ( 24 / 84 )2.930161417322830.04693062693368262.4360169205382
Winsorized Mean ( 25 / 84 )2.929275590551180.046847093420747762.52843830123
Winsorized Mean ( 26 / 84 )2.929275590551180.046779784208413762.6184075048455
Winsorized Mean ( 27 / 84 )2.929169291338580.046771769485952162.6268649557584
Winsorized Mean ( 28 / 84 )2.928838582677170.046692709480577462.7258219807412
Winsorized Mean ( 29 / 84 )2.929066929133860.046672487168712862.7578924291264
Winsorized Mean ( 30 / 84 )2.928358267716540.046619446840519362.8140929628396
Winsorized Mean ( 31 / 84 )2.928114173228350.046601236366792962.8334010321422
Winsorized Mean ( 32 / 84 )2.927988188976380.046571313011491462.8710680382556
Winsorized Mean ( 33 / 84 )2.927858267716540.04654048815844362.9099174411085
Winsorized Mean ( 34 / 84 )2.926118110236220.046390108624778463.0763366799552
Winsorized Mean ( 35 / 84 )2.924464566929130.04626911117834963.2055488521594
Winsorized Mean ( 36 / 84 )2.92460629921260.046142328155098263.3822872868946
Winsorized Mean ( 37 / 84 )2.924023622047240.046076687408763863.459935739458
Winsorized Mean ( 38 / 84 )2.923874015748030.04604184963940663.504703626102
Winsorized Mean ( 39 / 84 )2.923720472440940.046006131613636263.5506696584408
Winsorized Mean ( 40 / 84 )2.923562992125980.045969534508797263.5978376410686
Winsorized Mean ( 41 / 84 )2.922917322834650.045871457174327863.7197399621845
Winsorized Mean ( 42 / 84 )2.921594488188980.045776896444753863.8224675566402
Winsorized Mean ( 43 / 84 )2.922440944881890.045702249391972663.9452321004402
Winsorized Mean ( 44 / 84 )2.923133858267720.045641275935743264.0458400502014
Winsorized Mean ( 45 / 84 )2.92419685039370.045491623944177564.2798958766995
Winsorized Mean ( 46 / 84 )2.923834645669290.045379577741398764.4306269734623
Winsorized Mean ( 47 / 84 )2.924574803149610.045139139422404664.790220650463
Winsorized Mean ( 48 / 84 )2.925141732283460.044821632345504365.2618295945856
Winsorized Mean ( 49 / 84 )2.930736220472440.044248807646101666.2331117238736
Winsorized Mean ( 50 / 84 )2.930736220472440.044218060377752566.2791672776987
Winsorized Mean ( 51 / 84 )2.930535433070870.044172541186459766.3429215154407
Winsorized Mean ( 52 / 84 )2.930740157480320.044091183279358466.4699819669471
Winsorized Mean ( 53 / 84 )2.930948818897640.044040848950869566.5506884794002
Winsorized Mean ( 54 / 84 )2.931161417322830.043989597172429766.6330588532856
Winsorized Mean ( 55 / 84 )2.931377952755910.043971133826055666.6659623641291
Winsorized Mean ( 56 / 84 )2.932921259842520.043805466922117666.9533157826397
Winsorized Mean ( 57 / 84 )2.934716535433070.043548640685390967.3893946916595
Winsorized Mean ( 58 / 84 )2.934488188976380.043497151646653767.4639160930468
Winsorized Mean ( 59 / 84 )2.934023622047240.043284660723469367.7843737944882
Winsorized Mean ( 60 / 84 )2.939456692913390.042790754381525168.6937338543977
Winsorized Mean ( 61 / 84 )2.939456692913390.0427537366678168.7532113450695
Winsorized Mean ( 62 / 84 )2.938968503937010.042719431485694268.7969947568522
Winsorized Mean ( 63 / 84 )2.939960629921260.042521801112597769.1400776306781
Winsorized Mean ( 64 / 84 )2.939708661417320.042426634723852969.2892255195668
Winsorized Mean ( 65 / 84 )2.940988188976380.04212326704935469.8186155772427
Winsorized Mean ( 66 / 84 )2.944885826771650.041679555302267570.6554042003285
Winsorized Mean ( 67 / 84 )2.946996062992130.041464359357740671.0729915676842
Winsorized Mean ( 68 / 84 )2.950208661417320.041199041507624271.6086722763044
Winsorized Mean ( 69 / 84 )2.950751968503940.041071323202285971.8445800728356
Winsorized Mean ( 70 / 84 )2.957641732283460.040296268749328173.3974093403569
Winsorized Mean ( 71 / 84 )2.958200787401570.040123111399077273.7281004451118
Winsorized Mean ( 72 / 84 )2.957350393700790.039977159575339973.976000924414
Winsorized Mean ( 73 / 84 )2.960224409448820.039176724293647475.5607943956872
Winsorized Mean ( 74 / 84 )2.959933070866140.038847949012559376.1927758376436
Winsorized Mean ( 75 / 84 )2.960523622047240.038621655539226276.6544981232195
Winsorized Mean ( 76 / 84 )2.958429133858270.038385386115517977.0717565522228
Winsorized Mean ( 77 / 84 )2.958125984251970.038318613529175377.1981476312991
Winsorized Mean ( 78 / 84 )2.957204724409450.037700040321964978.4403597225468
Winsorized Mean ( 79 / 84 )2.962492125984250.037178216886246879.6835452073592
Winsorized Mean ( 80 / 84 )2.974145669291340.036239875638030882.068318859522
Winsorized Mean ( 81 / 84 )2.974783464566930.035853908297383482.9695730767523
Winsorized Mean ( 82 / 84 )3.006098425196850.032938060382819191.265192614829
Winsorized Mean ( 83 / 84 )3.014267716535430.032252105029705493.4595653139284
Winsorized Mean ( 84 / 84 )3.033779527559050.030550514052910299.3037145726868
Trimmed Mean ( 1 / 84 )2.931785714285710.047521805069564461.6934838648078
Trimmed Mean ( 2 / 84 )2.9323240.047506607573563861.724550536666
Trimmed Mean ( 3 / 84 )2.93280645161290.047499220299354261.7443072355606
Trimmed Mean ( 4 / 84 )2.933276422764230.047493353250821761.7618302770289
Trimmed Mean ( 5 / 84 )2.933844262295080.04749553146391261.7709534322039
Trimmed Mean ( 6 / 84 )2.934425619834710.047494847681008461.7840831818919
Trimmed Mean ( 7 / 84 )2.9350.047500807818132761.788422867192
Trimmed Mean ( 8 / 84 )2.935605042016810.047506128361768161.7942388329696
Trimmed Mean ( 9 / 84 )2.936224576271190.047510869388124961.8011123367294
Trimmed Mean ( 10 / 84 )2.936888888888890.047515962020095161.8084694917225
Trimmed Mean ( 11 / 84 )2.937551724137930.047519735566507161.8175099065235
Trimmed Mean ( 12 / 84 )2.938252173913040.047524661565137261.8258410927532
Trimmed Mean ( 13 / 84 )2.93896491228070.047526863982891561.8379725903787
Trimmed Mean ( 14 / 84 )2.939699115044250.047526958977949661.8532971235997
Trimmed Mean ( 15 / 84 )2.940428571428570.047525883667497461.8700452157927
Trimmed Mean ( 16 / 84 )2.941148648648650.047525746171459861.8853755191512
Trimmed Mean ( 17 / 84 )2.941886363636360.047522007346222561.9057680413875
Trimmed Mean ( 18 / 84 )2.942660550458720.047516089232019761.9297715367481
Trimmed Mean ( 19 / 84 )2.943444444444440.047507187754219661.9578759254805
Trimmed Mean ( 20 / 84 )2.944266355140190.047497640357565161.9876341851
Trimmed Mean ( 21 / 84 )2.945103773584910.047487131621205662.0189864714793
Trimmed Mean ( 22 / 84 )2.945952380952380.04747233020850362.05619922202
Trimmed Mean ( 23 / 84 )2.946807692307690.047454477175760962.0975694536338
Trimmed Mean ( 24 / 84 )2.947674757281550.047431877246550662.1454373808474
Trimmed Mean ( 25 / 84 )2.948583333333330.047405970921338862.198564358611
Trimmed Mean ( 26 / 84 )2.949554455445540.047379389599430262.2539564224571
Trimmed Mean ( 27 / 84 )2.9505450.047350980630907162.3122258649509
Trimmed Mean ( 28 / 84 )2.951560606060610.047316894971883162.3785776267546
Trimmed Mean ( 29 / 84 )2.952612244897960.047280956161626262.4482346508537
Trimmed Mean ( 30 / 84 )2.953675257731960.047239517275772262.525517364819
Trimmed Mean ( 31 / 84 )2.954791666666670.047193975410866262.6095098143891
Trimmed Mean ( 32 / 84 )2.955942105263160.047142043592809262.7028843041935
Trimmed Mean ( 33 / 84 )2.957122340425530.047083959629122962.8053027765418
Trimmed Mean ( 34 / 84 )2.958333333333330.047019329634680962.9173864518754
Trimmed Mean ( 35 / 84 )2.959641304347830.046954071726416363.0326869540206
Trimmed Mean ( 36 / 84 )2.961043956043960.04688627711015763.1537443053355
Trimmed Mean ( 37 / 84 )2.962472222222220.046816207880737663.2787736625102
Trimmed Mean ( 38 / 84 )2.963955056179780.046740086403730263.4135553489954
Trimmed Mean ( 39 / 84 )2.965477272727270.046655822533411563.560711433254
Trimmed Mean ( 40 / 84 )2.967040229885060.046562857354519263.7211803239367
Trimmed Mean ( 41 / 84 )2.968645348837210.04646058688570863.895993310201
Trimmed Mean ( 42 / 84 )2.970311764705880.046351525561839664.082287016488
Trimmed Mean ( 43 / 84 )2.972065476190480.046234723307102864.282107982982
Trimmed Mean ( 44 / 84 )2.973831325301200.046108944943876964.4957573616335
Trimmed Mean ( 45 / 84 )2.975615853658540.045972697138550664.7257184996293
Trimmed Mean ( 46 / 84 )2.977407407407410.045830076890865964.96623198991
Trimmed Mean ( 47 / 84 )2.979256250.045678070277914265.22290087724
Trimmed Mean ( 48 / 84 )2.981126582278480.045523187686310565.4858926580607
Trimmed Mean ( 49 / 84 )2.983025641025640.045369179451062365.7500461132055
Trimmed Mean ( 50 / 84 )2.984785714285710.045231155130871365.9895973394792
Trimmed Mean ( 51 / 84 )2.986592105263160.045078596359128566.2529969094383
Trimmed Mean ( 52 / 84 )2.988453333333330.044911066569085866.5415800966618
Trimmed Mean ( 53 / 84 )2.990358108108110.04472942906852766.8543768695723
Trimmed Mean ( 54 / 84 )2.992308219178080.04453070736522967.1965121648746
Trimmed Mean ( 55 / 84 )2.994305555555560.044313478428278967.5709888223246
Trimmed Mean ( 56 / 84 )2.996352112676060.044074209354168767.984251029852
Trimmed Mean ( 57 / 84 )2.998407142857140.043820098323767968.4253860113047
Trimmed Mean ( 58 / 84 )3.000463768115940.043555310532425868.8885862926445
Trimmed Mean ( 59 / 84 )3.002588235294120.043265621394098369.3989393552011
Trimmed Mean ( 60 / 84 )3.004791044776120.0429585040316569.9463613202713
Trimmed Mean ( 61 / 84 )3.006886363636360.042652143816737970.4978951715993
Trimmed Mean ( 62 / 84 )3.009046153846150.042315390008234771.1099709410827
Trimmed Mean ( 63 / 84 )3.01128906250.041944804834464971.7917051797964
Trimmed Mean ( 64 / 84 )3.013571428571430.041548399665200572.5315885294012
Trimmed Mean ( 65 / 84 )3.015935483870970.041115953140680173.3519535240205
Trimmed Mean ( 66 / 84 )3.018336065573770.040658808170423374.2357240999852
Trimmed Mean ( 67 / 84 )3.020691666666670.040185596726817275.16851590388
Trimmed Mean ( 68 / 84 )3.02305932203390.039677116158158176.1915082231177
Trimmed Mean ( 69 / 84 )3.025405172413790.039133728705632477.3094022082888
Trimmed Mean ( 70 / 84 )3.027815789473680.038539358932068578.5642489489944
Trimmed Mean ( 71 / 84 )3.030089285714290.037942590993776679.859841048053
Trimmed Mean ( 72 / 84 )3.032427272727270.037290992097173881.317956487328
Trimmed Mean ( 73 / 84 )3.034879629629630.036574200688994882.9787000797757
Trimmed Mean ( 74 / 84 )3.037330188679250.035842780187786284.7403625713791
Trimmed Mean ( 75 / 84 )3.039884615384620.035050623018043686.7284046226432
Trimmed Mean ( 76 / 84 )3.042519607843140.03418000737809489.0145977497094
Trimmed Mean ( 77 / 84 )3.045330.033217401594448591.6787543222212
Trimmed Mean ( 78 / 84 )3.048265306122450.032131218809434694.8692710413898
Trimmed Mean ( 79 / 84 )3.051354166666670.03095887190802198.5615424144736
Trimmed Mean ( 80 / 84 )3.054393617021280.0296805080754494102.909074509670
Trimmed Mean ( 81 / 84 )3.057163043478260.0283341870038832107.896621246245
Trimmed Mean ( 82 / 84 )3.060033333333330.0268215374077225114.088662660041
Trimmed Mean ( 83 / 84 )3.061931818181820.0254865598375869120.139078702421
Trimmed Mean ( 84 / 84 )3.063627906976740.024028084608116127.501961015317
Median3.0525
Midrange2.863
Midmean - Weighted Average at Xnp3.00590551181102
Midmean - Weighted Average at X(n+1)p3.0112890625
Midmean - Empirical Distribution Function3.0112890625
Midmean - Empirical Distribution Function - Averaging3.0112890625
Midmean - Empirical Distribution Function - Interpolation3.01357142857143
Midmean - Closest Observation3.0112890625
Midmean - True Basic - Statistics Graphics Toolkit3.0112890625
Midmean - MS Excel (old versions)3.0112890625
Number of observations254
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Apr/22/t1240419683ursort586qlxs2u/1ehjx1240419618.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Apr/22/t1240419683ursort586qlxs2u/1ehjx1240419618.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Apr/22/t1240419683ursort586qlxs2u/2fcp51240419618.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Apr/22/t1240419683ursort586qlxs2u/2fcp51240419618.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