Home » date » 2009 » Nov » 06 »

workshop 2

*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: Fri, 06 Nov 2009 05:41:10 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/06/t12575114595sc9k4cg3iohdgs.htm/, Retrieved Fri, 06 Nov 2009 13:44:21 +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/2009/Nov/06/t12575114595sc9k4cg3iohdgs.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 «
6,9 6,8 6,7 6,6 6,5 6,5 7 7,5 7,6 7,6 7,6 7,8 8 8 8 7,9 7,9 8 8,5 9,2 9,4 9,5 9,5 9,6 9,7 9,7 9,6 9,5 9,4 9,3 9,6 10,2 10,2 10,1 9,9 9,8 9,8 9,7 9,5 9,3 9,1 9 9,5 10 10,2 10,1 10 9,9 10 9,9 9,7 9,5 9,2 9 9,3 9,8 9,8 9,6 9,4 9,3 9,2 9,2 9 8,8 8,7 8,7 9,1 9,7 9,8 9,6 9,4 9,4 9,5 9,4 9,3 9,2 9 8,9 9,2 9,8 9,9 9,6 9,2 9,1 9,1 9 8,9 8,7 8,5 8,3 8,5 8,7 8,4 8,1 7,8 7,7 7,5 7,2 6,8 6,7 6,4 6,3 6,8 7,3 7,1 7 6,8 6,6 6,3 6,1 6,1 6,3 6,3 6 6,2 6,4 6,8 7,5 7,5 7,6 7,6 7,4 7,3 7,1 6,9 6,8 7,5 7,6 7,8 8 8,1 8,2 8,3 8,2 8 7,9 7,6 7,6 8,3 8,4 8,4 8,4 8,4 8,6 8,9 8,8 8,3 7,5 7,2 7,4 8,8 9,3 9,3 8,7 8,2 8,3 8,5 8,6 8,5 8,2 8,1 7,9 8,6 8,7 8,7 8,5 8,4 8,5 8,7 8,7 8,6 8,5 8,3 8 8,2 8,1 8,1 8 7,9 7,9
 
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 Mean8.397222222222220.0802480270445386104.640855750406
Geometric Mean8.32546910637334
Harmonic Mean8.25067328937393
Quadratic Mean8.4655806390085
Winsorized Mean ( 1 / 60 )8.397777777777780.0801571840195336104.766377218682
Winsorized Mean ( 2 / 60 )8.397777777777780.0801571840195336104.766377218682
Winsorized Mean ( 3 / 60 )8.397777777777780.0796911930781842105.378994257732
Winsorized Mean ( 4 / 60 )8.40.0793557234886273105.852478318137
Winsorized Mean ( 5 / 60 )8.397222222222220.0790321283762303106.250741245984
Winsorized Mean ( 6 / 60 )8.397222222222220.0790321283762303106.250741245984
Winsorized Mean ( 7 / 60 )8.397222222222220.0790321283762303106.250741245984
Winsorized Mean ( 8 / 60 )8.397222222222220.0778929160190853107.804697158401
Winsorized Mean ( 9 / 60 )8.397222222222220.0778929160190853107.804697158401
Winsorized Mean ( 10 / 60 )8.402777777777780.0771120193965651108.968457103486
Winsorized Mean ( 11 / 60 )8.402777777777780.0771120193965651108.968457103486
Winsorized Mean ( 12 / 60 )8.402777777777780.0755013475346653111.293083529665
Winsorized Mean ( 13 / 60 )8.402777777777780.0755013475346653111.293083529665
Winsorized Mean ( 14 / 60 )8.410555555555560.0744835194891787112.918342382807
Winsorized Mean ( 15 / 60 )8.410555555555560.0744835194891787112.918342382807
Winsorized Mean ( 16 / 60 )8.419444444444440.0733650567164181114.760961434114
Winsorized Mean ( 17 / 60 )8.419444444444440.0733650567164181114.760961434114
Winsorized Mean ( 18 / 60 )8.409444444444440.0723409114027714116.247421844374
Winsorized Mean ( 19 / 60 )8.409444444444440.0723409114027714116.247421844374
Winsorized Mean ( 20 / 60 )8.409444444444440.0723409114027714116.247421844374
Winsorized Mean ( 21 / 60 )8.409444444444440.0723409114027714116.247421844374
Winsorized Mean ( 22 / 60 )8.421666666666670.0708478186525261118.869808934709
Winsorized Mean ( 23 / 60 )8.408888888888890.0695926289864237120.830165656327
Winsorized Mean ( 24 / 60 )8.422222222222220.0680058946743794123.845473433573
Winsorized Mean ( 25 / 60 )8.422222222222220.0680058946743794123.845473433573
Winsorized Mean ( 26 / 60 )8.436666666666670.0663488701005908127.156146802137
Winsorized Mean ( 27 / 60 )8.436666666666670.0663488701005908127.156146802137
Winsorized Mean ( 28 / 60 )8.452222222222220.0646311962634947130.77619958887
Winsorized Mean ( 29 / 60 )8.436111111111110.0630724012696312133.752813295425
Winsorized Mean ( 30 / 60 )8.452777777777780.0612837553424536137.928521686435
Winsorized Mean ( 31 / 60 )8.452777777777780.0612837553424536137.928521686435
Winsorized Mean ( 32 / 60 )8.470555555555560.059454885755817142.470302446537
Winsorized Mean ( 33 / 60 )8.470555555555560.059454885755817142.470302446537
Winsorized Mean ( 34 / 60 )8.489444444444440.0575977684570907147.391898538030
Winsorized Mean ( 35 / 60 )8.489444444444440.0575977684570907147.391898538030
Winsorized Mean ( 36 / 60 )8.469444444444440.0556832022086326152.100527780556
Winsorized Mean ( 37 / 60 )8.469444444444440.0556832022086326152.100527780556
Winsorized Mean ( 38 / 60 )8.469444444444440.0556832022086326152.100527780556
Winsorized Mean ( 39 / 60 )8.469444444444440.0556832022086326152.100527780556
Winsorized Mean ( 40 / 60 )8.491666666666670.0535683543795897158.520207779653
Winsorized Mean ( 41 / 60 )8.491666666666670.0535683543795897158.520207779653
Winsorized Mean ( 42 / 60 )8.468333333333330.0514077129279178164.728848085643
Winsorized Mean ( 43 / 60 )8.468333333333330.0514077129279178164.728848085643
Winsorized Mean ( 44 / 60 )8.468333333333330.0514077129279178164.728848085643
Winsorized Mean ( 45 / 60 )8.468333333333330.0514077129279178164.728848085643
Winsorized Mean ( 46 / 60 )8.468333333333330.0514077129279178164.728848085643
Winsorized Mean ( 47 / 60 )8.468333333333330.0514077129279178164.728848085643
Winsorized Mean ( 48 / 60 )8.4950.0489382932755884173.585947351325
Winsorized Mean ( 49 / 60 )8.4950.0440308776594472192.932788342395
Winsorized Mean ( 50 / 60 )8.4950.0440308776594472192.932788342395
Winsorized Mean ( 51 / 60 )8.4950.0440308776594472192.932788342395
Winsorized Mean ( 52 / 60 )8.523888888888890.0415434968246854205.179860637633
Winsorized Mean ( 53 / 60 )8.523888888888890.0415434968246854205.179860637633
Winsorized Mean ( 54 / 60 )8.523888888888890.0415434968246854205.179860637633
Winsorized Mean ( 55 / 60 )8.523888888888890.0415434968246854205.179860637633
Winsorized Mean ( 56 / 60 )8.492777777777780.0387661226190431219.077307814269
Winsorized Mean ( 57 / 60 )8.492777777777780.0387661226190431219.077307814269
Winsorized Mean ( 58 / 60 )8.5250.0360776715725335236.295737180839
Winsorized Mean ( 59 / 60 )8.5250.0360776715725335236.295737180839
Winsorized Mean ( 60 / 60 )8.491666666666670.0331641423105669256.049639009088
Trimmed Mean ( 1 / 60 )8.400561797752810.079372967972881105.836558872575
Trimmed Mean ( 2 / 60 )8.40340909090910.0785332162633787107.004519752844
Trimmed Mean ( 3 / 60 )8.406321839080460.0776333901025866108.282297449231
Trimmed Mean ( 4 / 60 )8.40930232558140.0768456030720996109.431144911329
Trimmed Mean ( 5 / 60 )8.411764705882350.0760988582014844110.537331369819
Trimmed Mean ( 6 / 60 )8.414880952380950.0753739838411492111.641716724372
Trimmed Mean ( 7 / 60 )8.418072289156630.0745941393142025112.851657872187
Trimmed Mean ( 8 / 60 )8.421341463414630.0737546375075483114.180501023448
Trimmed Mean ( 9 / 60 )8.424691358024690.0730394477640646115.344401086363
Trimmed Mean ( 10 / 60 )8.4281250.0722676926336029116.623690239158
Trimmed Mean ( 11 / 60 )8.431012658227850.0715460952565538117.84029062656
Trimmed Mean ( 12 / 60 )8.433974358974360.07076620014249119.180828446240
Trimmed Mean ( 13 / 60 )8.433974358974360.0701227372845098120.274459976585
Trimmed Mean ( 14 / 60 )8.440131578947370.0694251395917788121.571690436282
Trimmed Mean ( 15 / 60 )8.442666666666670.0687852194379325122.739546891826
Trimmed Mean ( 16 / 60 )8.445270270270270.068090160502204124.030700001022
Trimmed Mean ( 17 / 60 )8.44726027397260.0674538293115039125.230255423497
Trimmed Mean ( 18 / 60 )8.449305555555560.0667612712182108126.559986072446
Trimmed Mean ( 19 / 60 )8.452112676056340.0661053054399653127.858310612183
Trimmed Mean ( 20 / 60 )8.4550.0653893784335185129.302345465728
Trimmed Mean ( 21 / 60 )8.457971014492750.0646075605608813130.913022269624
Trimmed Mean ( 22 / 60 )8.46102941176470.0637531048764825132.715566216852
Trimmed Mean ( 23 / 60 )8.46343283582090.06296227131739134.420703998385
Trimmed Mean ( 24 / 60 )8.466666666666670.0622062067004162136.106461328561
Trimmed Mean ( 25 / 60 )8.469230769230770.0615235521593115137.658351509032
Trimmed Mean ( 26 / 60 )8.469230769230770.0607727621317806139.358990313226
Trimmed Mean ( 27 / 60 )8.473809523809520.0600970492520073141.002089608027
Trimmed Mean ( 28 / 60 )8.47580645161290.059351895330616142.805994726857
Trimmed Mean ( 29 / 60 )8.477049180327870.0586829536282288144.455053064167
Trimmed Mean ( 30 / 60 )8.479166666666670.0580723955758485146.010278766475
Trimmed Mean ( 31 / 60 )8.480508474576270.0575497879111881147.359508738130
Trimmed Mean ( 32 / 60 )8.481896551724140.0569673245717413148.890554637905
Trimmed Mean ( 33 / 60 )8.482456140350880.056474128102236150.200745463391
Trimmed Mean ( 34 / 60 )8.483035714285710.0559216736090982151.694954152902
Trimmed Mean ( 35 / 60 )8.482727272727270.0554586470816643152.955899920101
Trimmed Mean ( 36 / 60 )8.48240740740740.0549367726144833154.403089291983
Trimmed Mean ( 37 / 60 )8.483018867924530.0545086967370329155.626888473399
Trimmed Mean ( 38 / 60 )8.483653846153850.0540224861372085157.039308124523
Trimmed Mean ( 39 / 60 )8.48431372549020.0534709645124574158.671417335544
Trimmed Mean ( 40 / 60 )8.4850.0528457828750485160.561534684090
Trimmed Mean ( 41 / 60 )8.484693877551020.0523255126066467162.152140607472
Trimmed Mean ( 42 / 60 )8.4843750.0517315973932726164.007597436056
Trimmed Mean ( 43 / 60 )8.485106382978720.0512474772815677165.571201414642
Trimmed Mean ( 44 / 60 )8.48586956521740.0506899723424673167.407263667178
Trimmed Mean ( 45 / 60 )8.486666666666670.0500486654553114169.568290971603
Trimmed Mean ( 46 / 60 )8.48750.0493111508984105172.121312225823
Trimmed Mean ( 47 / 60 )8.488372093023250.0484625062642191175.153386552986
Trimmed Mean ( 48 / 60 )8.489285714285710.0474845705876976178.779877531105
Trimmed Mean ( 49 / 60 )8.489285714285710.0466268412320528182.068643081271
Trimmed Mean ( 50 / 60 )8.488750.0461489659359993183.942366374415
Trimmed Mean ( 51 / 60 )8.488461538461540.0455835281587165186.217738760934
Trimmed Mean ( 52 / 60 )8.488461538461540.0449157927629008188.986123060768
Trimmed Mean ( 53 / 60 )8.486486486486490.0443941621187633191.162217766008
Trimmed Mean ( 54 / 60 )8.484722222222220.0437690142996504193.852257310030
Trimmed Mean ( 55 / 60 )8.482857142857140.0430210805167163197.17908153332
Trimmed Mean ( 56 / 60 )8.480882352941180.0421261824234223201.320933088534
Trimmed Mean ( 57 / 60 )8.480303030303030.0414323779659661204.678163470825
Trimmed Mean ( 58 / 60 )8.47968750.0405920768607501208.900065130673
Trimmed Mean ( 59 / 60 )8.47741935483870.0399245292011559212.336113273272
Trimmed Mean ( 60 / 60 )8.4750.0391018516474589216.741653986372
Median8.5
Midrange8.1
Midmean - Weighted Average at Xnp8.46632653061225
Midmean - Weighted Average at X(n+1)p8.46632653061225
Midmean - Empirical Distribution Function8.46632653061225
Midmean - Empirical Distribution Function - Averaging8.46632653061225
Midmean - Empirical Distribution Function - Interpolation8.46632653061225
Midmean - Closest Observation8.46632653061225
Midmean - True Basic - Statistics Graphics Toolkit8.46632653061225
Midmean - MS Excel (old versions)8.46632653061225
Number of observations180
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/06/t12575114595sc9k4cg3iohdgs/14xlp1257511267.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/06/t12575114595sc9k4cg3iohdgs/14xlp1257511267.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/06/t12575114595sc9k4cg3iohdgs/218ig1257511267.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/06/t12575114595sc9k4cg3iohdgs/218ig1257511267.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