Home » date » 2010 » Nov » 16 »

WS6 - Mini Tutorial - Hyp 2 - Central tend.

*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: Tue, 16 Nov 2010 17:40:38 +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/16/t1289929174giqcuv2644o6h9u.htm/, Retrieved Tue, 16 Nov 2010 18:39:34 +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/16/t1289929174giqcuv2644o6h9u.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 «
10,47 10,44 10,41 10,37 10,38 10,38 10,37 10,41 10,44 10,43 10,47 10,49 10,53 10,63 10,66 10,66 10,64 10,65 10,61 10,6 10,61 10,63 10,63 10,61 10,7 10,69 10,62 10,62 10,63 10,62 10,53 10,51 10,5 10,52 10,47 10,43 10,35 10,31 10,25 10,26 10,2 10,13 10,06 10,01 9,95 9,92 9,87 9,83 9,7 9,63 9,56 9,53 9,47 9,4 9,32 9,26 9,19 9,1 9,03 8,95 8,85 8,78 8,71 8,61 8,54 8,49 8,42 8,36 8,3 8,19 8,15 8,1 8,04 8,05 8,04 8 8,02 8 8 8,01 8,04 8,1 8,14 8,17 8,17 8,22 8,21 8,29 8,37 8,43 8,47 8,51 8,55 8,59 8,66 8,71 8,78 8,81 8,84 8,81 8,82 8,84 8,83 8,83 8,88 8,88 8,89 8,93 8,95 8,92 8,97 8,99 9,01 8,99 9,03 9,04 9,07 9,04 9,07 9,09 9,04 9,08 9,13 9,09 9,05 9,06 8,99 8,98 8,99 8,94 8,87 8,83 8,8 8,79 8,71 8,6 8,5 8,38 8,26 8,23 8,17 8,1 8,02 7,9 7,82 7,72 7,63 7,53 7,56 7,49 7,53 7,47 7,39 7,37 7,34 7,39 7,32 7,24 7,18 7,31 7,39 7,48 7,51 7,61 7,69 7,86 8,05 8, etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean9.050944444444450.075564611659224119.777555203509
Geometric Mean8.9945324766582
Harmonic Mean8.93835329244322
Quadratic Mean9.10723268738766
Winsorized Mean ( 1 / 60 )9.051222222222220.0755124703714475119.863940057835
Winsorized Mean ( 2 / 60 )9.051666666666670.0753700780510754120.096288881812
Winsorized Mean ( 3 / 60 )9.051833333333330.0753486197226136120.132702717800
Winsorized Mean ( 4 / 60 )9.052055555555550.0752654189190105120.268453767540
Winsorized Mean ( 5 / 60 )9.052611111111110.075127467260575120.496689708874
Winsorized Mean ( 6 / 60 )9.052944444444440.0750052221323781120.697521946762
Winsorized Mean ( 7 / 60 )9.052944444444450.0750052221323781120.697521946762
Winsorized Mean ( 8 / 60 )9.052944444444440.0750052221323781120.697521946762
Winsorized Mean ( 9 / 60 )9.056944444444440.0745195285259724121.537865625221
Winsorized Mean ( 10 / 60 )9.056944444444440.0743882185504366121.752404089415
Winsorized Mean ( 11 / 60 )9.057555555555560.074316025501371121.878901548475
Winsorized Mean ( 12 / 60 )9.058888888888890.0741596784475357122.153831819775
Winsorized Mean ( 13 / 60 )9.059611111111110.0739071155231115122.581040363807
Winsorized Mean ( 14 / 60 )9.059611111111110.0739071155231115122.581040363807
Winsorized Mean ( 15 / 60 )9.062111111111110.0736201007592992123.092891990731
Winsorized Mean ( 16 / 60 )9.065666666666670.073014887557881124.16189314104
Winsorized Mean ( 17 / 60 )9.060944444444440.0720401767871385125.776266085762
Winsorized Mean ( 18 / 60 )9.066944444444440.0713839470111385127.016574791384
Winsorized Mean ( 19 / 60 )9.069055555555550.0709243176082438127.869479205274
Winsorized Mean ( 20 / 60 )9.079055555555560.0696453593899662130.361242085335
Winsorized Mean ( 21 / 60 )9.082555555555550.0690450119118555131.545426730472
Winsorized Mean ( 22 / 60 )9.086222222222220.0684263188733664132.788412000325
Winsorized Mean ( 23 / 60 )9.096444444444440.0669295386379263135.910759726795
Winsorized Mean ( 24 / 60 )9.096444444444440.0669295386379263135.910759726795
Winsorized Mean ( 25 / 60 )9.096444444444440.0669295386379263135.910759726795
Winsorized Mean ( 26 / 60 )9.093555555555560.0663032750656663137.150925750641
Winsorized Mean ( 27 / 60 )9.095055555555560.0661667239970961137.456639926056
Winsorized Mean ( 28 / 60 )9.09350.0659904002856266137.800346120656
Winsorized Mean ( 29 / 60 )9.096722222222220.0656992106897872138.460144752337
Winsorized Mean ( 30 / 60 )9.093388888888890.0653225850947189139.207425359901
Winsorized Mean ( 31 / 60 )9.093388888888890.0653225850947189139.207425359901
Winsorized Mean ( 32 / 60 )9.089833333333330.064564552744799140.786746703911
Winsorized Mean ( 33 / 60 )9.089833333333330.064564552744799140.786746703911
Winsorized Mean ( 34 / 60 )9.097388888888890.0635141671947586143.234010468764
Winsorized Mean ( 35 / 60 )9.097388888888890.0635141671947586143.234010468764
Winsorized Mean ( 36 / 60 )9.093388888888890.0630676660587943144.184642577571
Winsorized Mean ( 37 / 60 )9.093388888888890.0614369703653897148.011674970412
Winsorized Mean ( 38 / 60 )9.084944444444440.060093218359073151.180860212204
Winsorized Mean ( 39 / 60 )9.087111111111110.0594815949860019152.771813083520
Winsorized Mean ( 40 / 60 )9.0760.0582761145283291155.741337140588
Winsorized Mean ( 41 / 60 )9.060055555555560.0565745497976418160.143661557395
Winsorized Mean ( 42 / 60 )9.048388888888890.054453276339353166.167942448482
Winsorized Mean ( 43 / 60 )9.041222222222220.0528006837156626171.233052036034
Winsorized Mean ( 44 / 60 )9.0290.0510947258706211176.710997977809
Winsorized Mean ( 45 / 60 )9.0240.0501213672870293180.042973455261
Winsorized Mean ( 46 / 60 )9.013777777777780.0486280525590873185.361685352817
Winsorized Mean ( 47 / 60 )9.0190.048166062576354187.248023142910
Winsorized Mean ( 48 / 60 )9.0270.0474669279489806190.174514973933
Winsorized Mean ( 49 / 60 )9.0270.0469612212408761192.222428665094
Winsorized Mean ( 50 / 60 )9.035333333333330.0447102819381288202.086252684263
Winsorized Mean ( 51 / 60 )9.035333333333330.0441903787231406204.463813038151
Winsorized Mean ( 52 / 60 )9.003555555555550.0405603689226294221.979133689100
Winsorized Mean ( 53 / 60 )9.015333333333330.0395593669482431227.893771534019
Winsorized Mean ( 54 / 60 )8.997333333333330.0372949057351360241.248319468384
Winsorized Mean ( 55 / 60 )9.003444444444450.0356853031091261252.301190126137
Winsorized Mean ( 56 / 60 )8.994111111111110.0336969726318149266.911547496684
Winsorized Mean ( 57 / 60 )8.987777777777780.0325442501179397276.170990119799
Winsorized Mean ( 58 / 60 )8.974888888888890.0307849400177871291.535045502876
Winsorized Mean ( 59 / 60 )8.981444444444450.0296602029053869302.811294753929
Winsorized Mean ( 60 / 60 )8.961444444444440.0272578922360291328.765128530347
Trimmed Mean ( 1 / 60 )9.052191011235950.0751131619483163120.514045427412
Trimmed Mean ( 2 / 60 )9.053181818181820.0746832745627137121.221007932366
Trimmed Mean ( 3 / 60 )9.053965517241380.0742980715413166121.86003390689
Trimmed Mean ( 4 / 60 )9.054709302325580.0738903324364164122.542543845195
Trimmed Mean ( 5 / 60 )9.055411764705880.0734742286488751123.246095008097
Trimmed Mean ( 6 / 60 )9.05601190476190.0730575441761911123.957245030325
Trimmed Mean ( 7 / 60 )9.056566265060240.0726319330014893124.691246546812
Trimmed Mean ( 8 / 60 )9.057134146341460.0721715791297777125.494471030696
Trimmed Mean ( 9 / 60 )9.057716049382720.0716737829397029126.374187016230
Trimmed Mean ( 10 / 60 )9.05781250.0712075026011322127.203063850409
Trimmed Mean ( 11 / 60 )9.057911392405060.0707203153790799128.080755068077
Trimmed Mean ( 12 / 60 )9.057948717948720.0702015718795877129.027719400432
Trimmed Mean ( 13 / 60 )9.057948717948720.0696582392977329130.034132491252
Trimmed Mean ( 14 / 60 )9.057697368421050.0690981887839837131.084439806916
Trimmed Mean ( 15 / 60 )9.057533333333330.0684903322210909132.245428509458
Trimmed Mean ( 16 / 60 )9.057162162162160.067861175829523133.466036381613
Trimmed Mean ( 17 / 60 )9.056506849315070.0672401903447488134.688893694102
Trimmed Mean ( 18 / 60 )9.056180555555550.0666625141865114135.851170122653
Trimmed Mean ( 19 / 60 )9.055422535211270.0660960715372286137.003944782267
Trimmed Mean ( 20 / 60 )9.05450.0655208654777212138.192619007433
Trimmed Mean ( 21 / 60 )9.052898550724640.0650084585386182139.257240584266
Trimmed Mean ( 22 / 60 )9.05102941176470.0644995211523801140.327079179110
Trimmed Mean ( 23 / 60 )9.048880597014930.0639938714353092141.402299846203
Trimmed Mean ( 24 / 60 )9.04606060606060.0635630284730241142.31638773945
Trimmed Mean ( 25 / 60 )9.043153846153850.0630856375875814143.347268759855
Trimmed Mean ( 26 / 60 )9.043153846153850.0625570590304159144.558487664149
Trimmed Mean ( 27 / 60 )9.037222222222220.0620261735730399145.700140789441
Trimmed Mean ( 28 / 60 )9.03411290322580.0614485526887943147.019132394851
Trimmed Mean ( 29 / 60 )9.030983606557380.0608236616276352148.478131123467
Trimmed Mean ( 30 / 60 )9.027583333333330.0601536310242102150.075451466928
Trimmed Mean ( 31 / 60 )9.02423728813560.0594434819811709151.812057224274
Trimmed Mean ( 32 / 60 )9.020775862068970.0586539608157143153.796533714261
Trimmed Mean ( 33 / 60 )9.017368421052630.0578439743016645155.891232058603
Trimmed Mean ( 34 / 60 )9.013839285714290.056941180439589158.300885512505
Trimmed Mean ( 35 / 60 )9.009818181818180.0560234940914215160.822139495898
Trimmed Mean ( 36 / 60 )9.005648148148150.0549965027913829163.749469349153
Trimmed Mean ( 37 / 60 )9.001509433962260.0538901402288706167.034440729473
Trimmed Mean ( 38 / 60 )8.997211538461540.0528031375538039170.391608439817
Trimmed Mean ( 39 / 60 )8.993137254901960.0517156593621377173.895825090960
Trimmed Mean ( 40 / 60 )8.98880.0505461645179409177.833473335242
Trimmed Mean ( 41 / 60 )8.984795918367350.0493537511631925182.048896114468
Trimmed Mean ( 42 / 60 )8.981354166666670.0481888235458133186.378365475722
Trimmed Mean ( 43 / 60 )8.978297872340430.0470929410790076190.650608490932
Trimmed Mean ( 44 / 60 )8.97543478260870.0460219761594354195.024975709752
Trimmed Mean ( 45 / 60 )8.9730.0449872918662945199.456327059393
Trimmed Mean ( 46 / 60 )8.970681818181820.0439104708792284204.29482168057
Trimmed Mean ( 47 / 60 )8.968720930232560.0428447381505062209.330744389824
Trimmed Mean ( 48 / 60 )8.966428571428570.0416659126232893215.198180164587
Trimmed Mean ( 49 / 60 )8.966428571428570.0403781851728593222.061207878542
Trimmed Mean ( 50 / 60 )8.960750.038942823634891230.100161303444
Trimmed Mean ( 51 / 60 )8.95730769230770.0375470281545805238.562361192225
Trimmed Mean ( 52 / 60 )8.95730769230770.0359750606135637248.986590697515
Trimmed Mean ( 53 / 60 )8.951351351351350.0346625581940016258.242663488709
Trimmed Mean ( 54 / 60 )8.948333333333330.033236361293771269.233242900461
Trimmed Mean ( 55 / 60 )8.9460.0318942351534700280.489560478665
Trimmed Mean ( 56 / 60 )8.943235294117650.0305254259917616292.976592579946
Trimmed Mean ( 57 / 60 )8.940757575757580.0292049350860908306.13858751618
Trimmed Mean ( 58 / 60 )8.93843750.0278051421513993321.467067182397
Trimmed Mean ( 59 / 60 )8.93661290322580.0264214545416127338.233191861221
Trimmed Mean ( 60 / 60 )8.934333333333330.0249183601072210358.544193714589
Median8.945
Midrange8.94
Midmean - Weighted Average at Xnp8.96472527472528
Midmean - Weighted Average at X(n+1)p8.973
Midmean - Empirical Distribution Function8.96472527472528
Midmean - Empirical Distribution Function - Averaging8.973
Midmean - Empirical Distribution Function - Interpolation8.973
Midmean - Closest Observation8.96472527472528
Midmean - True Basic - Statistics Graphics Toolkit8.973
Midmean - MS Excel (old versions)8.9754347826087
Number of observations180
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289929174giqcuv2644o6h9u/1lyib1289929234.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289929174giqcuv2644o6h9u/1lyib1289929234.ps (open in new window)


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