Home » date » 2010 » Nov » 07 »

Tutorial Mean2

*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 10:00:41 +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/t128912408324zrfnxrvwpjoks.htm/, Retrieved Sun, 07 Nov 2010 11:01:25 +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/t128912408324zrfnxrvwpjoks.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 «
56,3 62,3 63,3 59 62,5 62,5 59 56,5 62 53,8 61,5 61,5 64,5 58,3 51,3 58,8 65,3 59,5 61,3 63,3 61,8 53,5 58 61,3 63,3 61,5 60,8 59 65,5 56,3 64,3 58 64,3 57,5 57,8 61,5 62,3 61,8 65,3 58,3 62,8 59,3 61,5 62 61,3 62,3 52,8 59,8 59,5 61,3 63,5 64,8 60 59 55,8 57,8 61,3 62,3 64,3 55,5 64,5 60 56,3 58,3 60 54,5 55,8 62,8 60,5 63,3 66,8 60 60,5 64,3 58,3 66,5 65,3 60,5 59,5 59 61,3 61,5 64,8 56,8 66,5 61,5 63 57 65,5 62 56 61,3 55,5 61 54,5 66 56,5 56 51,5 62 63 61 64 61 59,8 61,3 63,3 63,5 61,5 60,3 61,3 64,8 60,5 57,3 59,5 60,8 60,5 67 64,8 50,5 57,5 60,5 61,8 61,3 66,3 53,3 59 57,8 60 68,3 67,5 63,8 65 59,5 66 61,8 57,3 66 56,5 58,3 61 62,8 59,3 67,3 66,3 64,5 60,5 66 57,5 64 68 63,5 69 63,8 66 63,5 59,5 66,3 57 60 57 67,3 62 65 59,5 67,8 58 60 58,5 58,3 61,5 65 66,5 68,5 57 61,5 66,5 52,5 55 71 66,5 58,8 66,3 65,8 71 59,5 69,8 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 Mean61.36455696202530.256281392810069239.442108103037
Geometric Mean61.2372724731216
Harmonic Mean61.1088975575365
Quadratic Mean61.4907258624307
Winsorized Mean ( 1 / 79 )61.36371308016880.254987015853283240.654265766523
Winsorized Mean ( 2 / 79 )61.36540084388190.254707389714766240.925090208815
Winsorized Mean ( 3 / 79 )61.36286919831220.250415989775183245.043734041913
Winsorized Mean ( 4 / 79 )61.36286919831220.248955238420601246.481534542534
Winsorized Mean ( 5 / 79 )61.36286919831220.246029517848452249.412630382466
Winsorized Mean ( 6 / 79 )61.35527426160340.243713269976746251.751881493599
Winsorized Mean ( 7 / 79 )61.35822784810130.241795075058484253.761280428314
Winsorized Mean ( 8 / 79 )61.37172995780590.237566470510858258.334982313932
Winsorized Mean ( 9 / 79 )61.3641350210970.236679950068022259.270525464708
Winsorized Mean ( 10 / 79 )61.37257383966240.232723572526047263.714471093354
Winsorized Mean ( 11 / 79 )61.36329113924050.231701827441175264.837320520571
Winsorized Mean ( 12 / 79 )61.36329113924050.231701827441175264.837320520571
Winsorized Mean ( 13 / 79 )61.36329113924050.231701827441175264.837320520571
Winsorized Mean ( 14 / 79 )61.37510548523210.226463910865101271.014950023501
Winsorized Mean ( 15 / 79 )61.37510548523210.226463910865101271.014950023501
Winsorized Mean ( 16 / 79 )61.38185654008440.222869660955275.415937176295
Winsorized Mean ( 17 / 79 )61.36033755274260.220699348288351278.026818060982
Winsorized Mean ( 18 / 79 )61.37552742616030.219098899446197280.127045737315
Winsorized Mean ( 19 / 79 )61.37552742616030.219098899446197280.127045737315
Winsorized Mean ( 20 / 79 )61.37552742616030.219098899446197280.127045737315
Winsorized Mean ( 21 / 79 )61.40210970464130.21638891030065283.758116898548
Winsorized Mean ( 22 / 79 )61.40210970464130.21638891030065283.758116898548
Winsorized Mean ( 23 / 79 )61.40210970464130.21638891030065283.758116898548
Winsorized Mean ( 24 / 79 )61.38185654008440.214393562332267286.304569373939
Winsorized Mean ( 25 / 79 )61.40295358649790.212301707040808289.224964049372
Winsorized Mean ( 26 / 79 )61.40295358649790.212301707040808289.224964049372
Winsorized Mean ( 27 / 79 )61.40295358649790.212301707040808289.224964049372
Winsorized Mean ( 28 / 79 )61.36751054852320.208903917113973293.759501479537
Winsorized Mean ( 29 / 79 )61.40421940928270.205347404869224299.026030781290
Winsorized Mean ( 30 / 79 )61.40421940928270.205347404869224299.026030781290
Winsorized Mean ( 31 / 79 )61.40421940928270.205347404869224299.026030781290
Winsorized Mean ( 32 / 79 )61.4312236286920.202814395944624302.893802693695
Winsorized Mean ( 33 / 79 )61.4312236286920.202814395944624302.893802693695
Winsorized Mean ( 34 / 79 )61.4312236286920.202814395944624302.893802693695
Winsorized Mean ( 35 / 79 )61.40168776371310.200028573948173306.964582868156
Winsorized Mean ( 36 / 79 )61.40168776371310.191647783719567320.388196367355
Winsorized Mean ( 37 / 79 )61.40168776371310.191647783719567320.388196367355
Winsorized Mean ( 38 / 79 )61.40168776371310.191647783719567320.388196367355
Winsorized Mean ( 39 / 79 )61.40168776371310.185735274419268330.587110906615
Winsorized Mean ( 40 / 79 )61.40168776371310.185735274419268330.587110906615
Winsorized Mean ( 41 / 79 )61.40168776371310.185735274419268330.587110906615
Winsorized Mean ( 42 / 79 )61.40168776371310.185735274419268330.587110906615
Winsorized Mean ( 43 / 79 )61.40168776371310.185735274419268330.587110906615
Winsorized Mean ( 44 / 79 )61.40168776371310.175947660657443348.977005629292
Winsorized Mean ( 45 / 79 )61.40168776371310.175947660657443348.977005629292
Winsorized Mean ( 46 / 79 )61.40168776371310.175947660657443348.977005629291
Winsorized Mean ( 47 / 79 )61.40168776371310.175947660657443348.977005629292
Winsorized Mean ( 48 / 79 )61.40168776371310.168981245888514363.363919119303
Winsorized Mean ( 49 / 79 )61.40168776371310.168981245888514363.363919119303
Winsorized Mean ( 50 / 79 )61.40168776371310.168981245888514363.363919119303
Winsorized Mean ( 51 / 79 )61.40168776371310.168981245888514363.363919119303
Winsorized Mean ( 52 / 79 )61.46751054852320.163470014590335376.017037146319
Winsorized Mean ( 53 / 79 )61.40042194092830.157778254673969389.156427593938
Winsorized Mean ( 54 / 79 )61.40042194092830.157778254673969389.156427593938
Winsorized Mean ( 55 / 79 )61.40042194092830.157778254673969389.156427593938
Winsorized Mean ( 56 / 79 )61.40042194092830.157778254673969389.156427593938
Winsorized Mean ( 57 / 79 )61.35232067510550.153822729663056398.850812292149
Winsorized Mean ( 58 / 79 )61.40126582278480.149755433670040410.010270198755
Winsorized Mean ( 59 / 79 )61.47594936708860.143741950723924427.682726284699
Winsorized Mean ( 60 / 79 )61.47594936708860.143741950723924427.682726284699
Winsorized Mean ( 61 / 79 )61.45021097046410.133361879863422460.777930195617
Winsorized Mean ( 62 / 79 )61.45021097046410.133361879863422460.777930195617
Winsorized Mean ( 63 / 79 )61.45021097046410.133361879863422460.777930195617
Winsorized Mean ( 64 / 79 )61.39620253164560.129041722376235475.785671494978
Winsorized Mean ( 65 / 79 )61.39620253164560.129041722376235475.785671494978
Winsorized Mean ( 66 / 79 )61.39620253164560.129041722376235475.785671494978
Winsorized Mean ( 67 / 79 )61.31139240506330.122480270775974500.581783634418
Winsorized Mean ( 68 / 79 )61.39746835443040.115729767654229530.524424259367
Winsorized Mean ( 69 / 79 )61.39746835443040.115729767654229530.524424259367
Winsorized Mean ( 70 / 79 )61.39746835443040.115729767654229530.524424259367
Winsorized Mean ( 71 / 79 )61.45738396624470.111193229945289552.707966091854
Winsorized Mean ( 72 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 73 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 74 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 75 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 76 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 77 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 78 / 79 )61.39662447257380.106527072745243576.34761652939
Winsorized Mean ( 79 / 79 )61.39662447257380.0915528018836951670.61436907818
Trimmed Mean ( 1 / 79 )61.36455696202530.250203438175468245.258647960666
Trimmed Mean ( 2 / 79 )61.36553191489360.245136656977854250.331927796655
Trimmed Mean ( 3 / 79 )61.36839826839830.239917299704547255.789800668698
Trimmed Mean ( 4 / 79 )61.36839826839830.236017793740164260.015981405028
Trimmed Mean ( 5 / 79 )61.37224669603520.232319737042685264.171471082368
Trimmed Mean ( 6 / 79 )61.37422222222220.229109321348451267.881821049430
Trimmed Mean ( 7 / 79 )61.37757847533630.226187592092229271.356964843188
Trimmed Mean ( 8 / 79 )61.37757847533630.223442381930587274.690852939455
Trimmed Mean ( 9 / 79 )61.38173515981740.221213143653825277.477794248398
Trimmed Mean ( 10 / 79 )61.3838709677420.218984683117892280.311253251879
Trimmed Mean ( 11 / 79 )61.38511627906980.217149559399564282.685889157705
Trimmed Mean ( 12 / 79 )61.3873239436620.215332423035839285.081656901455
Trimmed Mean ( 13 / 79 )61.38957345971560.213409473281288287.660957668923
Trimmed Mean ( 14 / 79 )61.39186602870810.211373569082949290.44249143854
Trimmed Mean ( 15 / 79 )61.39323671497580.209754085099576292.691494832298
Trimmed Mean ( 16 / 79 )61.39323671497580.20803699234891295.107307704247
Trimmed Mean ( 17 / 79 )61.39556650246310.206549470466504297.243882367733
Trimmed Mean ( 18 / 79 )61.39800995024880.205160973322485299.267492037774
Trimmed Mean ( 19 / 79 )61.39949748743720.203821788331444301.241089041926
Trimmed Mean ( 20 / 79 )61.40101522842640.202396792826517303.369506853085
Trimmed Mean ( 21 / 79 )61.40256410256410.20088021465129305.667555210220
Trimmed Mean ( 22 / 79 )61.40259067357510.199479075524983307.814694408312
Trimmed Mean ( 23 / 79 )61.40261780104710.197985771447772310.136518155017
Trimmed Mean ( 24 / 79 )61.40264550264550.196393856917750312.650540430910
Trimmed Mean ( 25 / 79 )61.4037433155080.194843787526193315.143449504406
Trimmed Mean ( 26 / 79 )61.40378378378380.193341523002134317.592324868084
Trimmed Mean ( 27 / 79 )61.4038251366120.191736708284252320.250752639293
Trimmed Mean ( 28 / 79 )61.40386740331490.190021750299254323.141257811875
Trimmed Mean ( 29 / 79 )61.40558659217880.188425548231678325.887795834766
Trimmed Mean ( 30 / 79 )61.40564971751410.186962236041196328.438785381148
Trimmed Mean ( 31 / 79 )61.40571428571430.18539393868984331.217485963469
Trimmed Mean ( 32 / 79 )61.40571428571430.183712573989424334.248837476141
Trimmed Mean ( 33 / 79 )61.40467836257310.182079515673405337.241002292176
Trimmed Mean ( 34 / 79 )61.4035502958580.180326192127346340.513763261272
Trimmed Mean ( 35 / 79 )61.40239520958080.178442774836517344.101324729094
Trimmed Mean ( 36 / 79 )61.40242424242420.176606660202977347.678984313804
Trimmed Mean ( 37 / 79 )61.402453987730.175183332886923350.503971901049
Trimmed Mean ( 38 / 79 )61.40248447204970.173648173411977353.602823833761
Trimmed Mean ( 39 / 79 )61.40251572327040.171991870376095357.008244569941
Trimmed Mean ( 40 / 79 )61.40254777070060.170587434218353359.947659990623
Trimmed Mean ( 41 / 79 )61.40258064516130.169067895839264363.182970606896
Trimmed Mean ( 42 / 79 )61.4026143790850.167423328088153366.750649866156
Trimmed Mean ( 43 / 79 )61.40264900662250.165642629815652370.693516970596
Trimmed Mean ( 44 / 79 )61.40268456375840.163713333062362375.062210359915
Trimmed Mean ( 45 / 79 )61.40272108843540.162268725562613378.401450282806
Trimmed Mean ( 46 / 79 )61.40275862068970.160697548027754382.101403377261
Trimmed Mean ( 47 / 79 )61.40279720279720.158988058835574386.210119505266
Trimmed Mean ( 48 / 79 )61.40283687943260.157127015337099390.784721186865
Trimmed Mean ( 49 / 79 )61.40287769784170.155569263989655394.698002183291
Trimmed Mean ( 50 / 79 )61.40291970802920.153867912459307399.062538294124
Trimmed Mean ( 51 / 79 )61.4029629629630.15200862890734403.943930054079
Trimmed Mean ( 52 / 79 )61.4030075187970.149975086598288409.421383988037
Trimmed Mean ( 53 / 79 )61.40076335877860.148135787731455414.48973471615
Trimmed Mean ( 54 / 79 )61.40077519379840.146521753269742419.055695305267
Trimmed Mean ( 55 / 79 )61.40078740157480.144747197243509424.193273312780
Trimmed Mean ( 56 / 79 )61.40080.142794668735758429.993644325913
Trimmed Mean ( 57 / 79 )61.40081300813010.140644050521285436.568861466614
Trimmed Mean ( 58 / 79 )61.4024793388430.138570341009899443.114153370357
Trimmed Mean ( 59 / 79 )61.40252100840340.136592623419586449.530285539555
Trimmed Mean ( 60 / 79 )61.40.134855371109221455.302591917319
Trimmed Mean ( 61 / 79 )61.39739130434780.132927266116248461.887113894708
Trimmed Mean ( 62 / 79 )61.3955752212390.131583215154216466.591237714347
Trimmed Mean ( 63 / 79 )61.3955752212390.130080799430484471.980303703846
Trimmed Mean ( 64 / 79 )61.39369369369370.128400921082258478.140601922651
Trimmed Mean ( 65 / 79 )61.39158878504670.126870567445798483.89149683022
Trimmed Mean ( 66 / 79 )61.39142857142860.125152758569273490.531964882325
Trimmed Mean ( 67 / 79 )61.39126213592230.123223000510380498.212686605947
Trimmed Mean ( 68 / 79 )61.39405940594060.121604958391109504.86477046835
Trimmed Mean ( 69 / 79 )61.39393939393940.120354884618498510.10758382218
Trimmed Mean ( 70 / 79 )61.39381443298970.118931873141143516.209934406146
Trimmed Mean ( 71 / 79 )61.39368421052630.117312291049005523.335480549779
Trimmed Mean ( 72 / 79 )61.39139784946240.11587074977949529.826534878685
Trimmed Mean ( 73 / 79 )61.39120879120880.114649205924706535.46998687044
Trimmed Mean ( 74 / 79 )61.39101123595510.113240418416850542.129851639795
Trimmed Mean ( 75 / 79 )61.39080459770110.111616541318622550.015292289465
Trimmed Mean ( 76 / 79 )61.39058823529410.109744081333382559.397714112717
Trimmed Mean ( 77 / 79 )61.39036144578310.107582284151035570.636345288942
Trimmed Mean ( 78 / 79 )61.39012345679010.105080876234551584.217848733592
Trimmed Mean ( 79 / 79 )61.38987341772150.102176809557056600.820026421369
Median61.5
Midrange61.25
Midmean - Weighted Average at Xnp61.4504132231406
Midmean - Weighted Average at X(n+1)p61.4504132231406
Midmean - Empirical Distribution Function61.4504132231406
Midmean - Empirical Distribution Function - Averaging61.4504132231406
Midmean - Empirical Distribution Function - Interpolation61.4504132231406
Midmean - Closest Observation61.4262295081968
Midmean - True Basic - Statistics Graphics Toolkit61.4504132231406
Midmean - MS Excel (old versions)61.4504132231406
Number of observations237
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/07/t128912408324zrfnxrvwpjoks/1ydwv1289124038.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/07/t128912408324zrfnxrvwpjoks/1ydwv1289124038.ps (open in new window)


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