Home » date » 2009 » Dec » 22 »

paper

*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, 22 Dec 2009 13:33:49 -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/Dec/22/t1261514095f3crxh82g4kqp9w.htm/, Retrieved Tue, 22 Dec 2009 21:34:57 +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/Dec/22/t1261514095f3crxh82g4kqp9w.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 «
-0.0554261742134966 -0.0103723682328288 -0.09774824332988 0.0682838841648196 -0.0598771056498073 -0.0115369164551084 0.0737440480162446 0.0652896783949673 0.0212699541543462 -0.00207374705171083 0.110078189837195 -0.0146254989919655 0.114698886599707 0.122494579401249 -0.093917668042089 0.317437918041701 0.0233064257137833 0.0907672748631918 0.137726863879236 0.0413595313391135 0.0478723668655492 0.0876104346350919 0.0384005884923821 0.0522380787977494 0.0585774158784047 -0.0318052895741221 -0.181701157975095 0.312417016566173 -0.161245884995846 -0.0498906070653545 0.0164895011305049 -0.106532442482812 -0.0111252289051036 -0.0112051724184589 -0.0621266808603795 -0.0194747117256815 -0.005215993087672 0.00868532947685446 0.0189643082939415 0.132126779126779 0.114222267764316 -0.0512424762283885 0.111763287181735 -0.0727789247238114 0.099056920984902 -0.0133229962434981 -0.0540901157284234 0.0131003534096119 -0.105083618822970 -0.0532746009105622 -0.1526034260688 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 Mean1.58441362933677e-180.01187822795686371.33388047029459e-16
Geometric MeanNaN
Harmonic Mean-0.136917376752570
Quadratic Mean0.157134185949981
Winsorized Mean ( 1 / 58 )-0.0004927689678978220.0116815888901826-0.042183385542009
Winsorized Mean ( 2 / 58 )-0.002351726566404450.0112770174088465-0.208541539056203
Winsorized Mean ( 3 / 58 )-0.002604531248032250.0111662771264589-0.233249741031478
Winsorized Mean ( 4 / 58 )-0.002011514991634930.0110269289260503-0.182418423581464
Winsorized Mean ( 5 / 58 )-0.00230254778697010.0109783102564924-0.209736082618762
Winsorized Mean ( 6 / 58 )-0.002357077175655030.0109166293372145-0.215916204795910
Winsorized Mean ( 7 / 58 )-0.002782770412020360.0108127251663837-0.257360690223762
Winsorized Mean ( 8 / 58 )-0.003118008230607770.0107047211851493-0.291274118837713
Winsorized Mean ( 9 / 58 )-0.00364043412727240.0103165815752762-0.352872131210278
Winsorized Mean ( 10 / 58 )-0.002528876944166140.0101395829626164-0.249406405913325
Winsorized Mean ( 11 / 58 )-0.002197879338160020.00997204803597766-0.220404006301454
Winsorized Mean ( 12 / 58 )-0.002604507105979910.00974914481531597-0.267152366214543
Winsorized Mean ( 13 / 58 )-0.001557616091145170.00959958859395594-0.162258629721473
Winsorized Mean ( 14 / 58 )-0.001763298045701850.00951079180601877-0.185399710314968
Winsorized Mean ( 15 / 58 )-0.001590803075049030.00947129295773462-0.167960497278243
Winsorized Mean ( 16 / 58 )-0.004195225860161670.00904031317550016-0.464057580608049
Winsorized Mean ( 17 / 58 )-0.004683633063948940.0089332237540746-0.52429371444017
Winsorized Mean ( 18 / 58 )-0.004978717249747510.00877456069228574-0.567403591398554
Winsorized Mean ( 19 / 58 )-0.003306680101170330.00819960221786449-0.40327323366566
Winsorized Mean ( 20 / 58 )-0.003490449316466010.00815789809051926-0.427861353223137
Winsorized Mean ( 21 / 58 )-0.003155200919359770.00801952961169704-0.39343964947242
Winsorized Mean ( 22 / 58 )-0.001925284638635520.00775349880190027-0.248311721949794
Winsorized Mean ( 23 / 58 )-0.002502295306963490.00767856330875653-0.325880663653564
Winsorized Mean ( 24 / 58 )-0.002003546609813980.00760187707230681-0.263559459164735
Winsorized Mean ( 25 / 58 )-0.001575666057061420.00752831979736594-0.209298502118989
Winsorized Mean ( 26 / 58 )-0.0008215539179952760.00743640899402589-0.110477236883458
Winsorized Mean ( 27 / 58 )-0.001092004095276770.00726317840580074-0.150347965348701
Winsorized Mean ( 28 / 58 )-0.0002201372079737180.00708741486634932-0.0310602966137792
Winsorized Mean ( 29 / 58 )-0.0004523865281330940.00703724212578674-0.0642846331058304
Winsorized Mean ( 30 / 58 )-0.0002601972849779780.00697725059319249-0.0372922373222262
Winsorized Mean ( 31 / 58 )-0.000391782230158980.00695956108979055-0.0562941003181525
Winsorized Mean ( 32 / 58 )-0.0005988230472838920.00684840946013547-0.0874397260808712
Winsorized Mean ( 33 / 58 )-0.0003296870875905790.00680142296188912-0.0484732517648053
Winsorized Mean ( 34 / 58 )0.000482849389575980.006686301001882760.0722147252180267
Winsorized Mean ( 35 / 58 )0.0008763747050690470.006600774211086780.132768471855479
Winsorized Mean ( 36 / 58 )0.0008774241292886660.006575818431503260.133431927664718
Winsorized Mean ( 37 / 58 )0.003091239415938290.006279823907358150.492249378571944
Winsorized Mean ( 38 / 58 )0.00337358924226350.006245733846479210.540142972016848
Winsorized Mean ( 39 / 58 )0.004463045755663310.006063675829187170.736029741923322
Winsorized Mean ( 40 / 58 )0.004291246089300110.006036254869312620.71091201120684
Winsorized Mean ( 41 / 58 )0.002496238512080340.00584397489427570.427147370965857
Winsorized Mean ( 42 / 58 )0.002987759696204840.00571500986523150.522791695318239
Winsorized Mean ( 43 / 58 )0.0026590817652090.005444370733017730.488409385694996
Winsorized Mean ( 44 / 58 )0.004895644945992420.005126777077034060.954916680095763
Winsorized Mean ( 45 / 58 )0.005359819431533010.005048781647388341.06160650348299
Winsorized Mean ( 46 / 58 )0.005894757650277460.004995584713954731.17999353185043
Winsorized Mean ( 47 / 58 )0.004601237399069780.004811545638654190.956290918682166
Winsorized Mean ( 48 / 58 )0.004431794509747950.004760014368421840.931046456319269
Winsorized Mean ( 49 / 58 )0.004564522375370820.004574168093214620.997891262925359
Winsorized Mean ( 50 / 58 )0.004698966555974960.0044164175288621.06397697347827
Winsorized Mean ( 51 / 58 )0.003493750830571060.004243417616577450.823334195748793
Winsorized Mean ( 52 / 58 )0.003273746347147390.004108101479635190.796900067677517
Winsorized Mean ( 53 / 58 )0.003716815646555130.004053846582216630.916861447806145
Winsorized Mean ( 54 / 58 )0.00359448070574870.003901119775056370.921397166201277
Winsorized Mean ( 55 / 58 )0.003642237204123240.003877873352462370.939235728730152
Winsorized Mean ( 56 / 58 )0.003780275732163010.003844532176193630.983286277475187
Winsorized Mean ( 57 / 58 )0.003218330971177430.003751731819362860.857825432662184
Winsorized Mean ( 58 / 58 )0.00387684031224430.003693420632608971.04966119429126
Trimmed Mean ( 1 / 58 )-0.001340441476263470.0112530545129900-0.11911801144446
Trimmed Mean ( 2 / 58 )-0.002207827298777160.0107840621836909-0.204730579365179
Trimmed Mean ( 3 / 58 )-0.002133338266123030.0105079963335156-0.203020461600151
Trimmed Mean ( 4 / 58 )-0.001968794685138860.0102534541208445-0.192012824355106
Trimmed Mean ( 5 / 58 )-0.001957471230404960.0100214413003936-0.195328313735479
Trimmed Mean ( 6 / 58 )-0.001883406018264140.0097830750714122-0.192516770495585
Trimmed Mean ( 7 / 58 )-0.001797638401288020.00953873131098615-0.188456760409804
Trimmed Mean ( 8 / 58 )-0.001642831942458650.00929448745159831-0.176753366015481
Trimmed Mean ( 9 / 58 )-0.001437427649172060.00904890111513453-0.15885107273058
Trimmed Mean ( 10 / 58 )-0.001161267292942960.0088469349194102-0.131262104166171
Trimmed Mean ( 11 / 58 )-0.001004969047088880.00865519042034004-0.116111720052648
Trimmed Mean ( 12 / 58 )-0.0008793995427656030.00847125277793704-0.103809857386850
Trimmed Mean ( 13 / 58 )-0.0007107223588068720.00830175426238896-0.0856111053571887
Trimmed Mean ( 14 / 58 )-0.0006332518302769650.00813702432827624-0.077823514435911
Trimmed Mean ( 15 / 58 )-0.0006332518302769650.0079688916438928-0.0794654838558731
Trimmed Mean ( 16 / 58 )-0.0004499973193723730.00779053460747131-0.0577620589658654
Trimmed Mean ( 17 / 58 )-0.0001598739817055970.00764562755537025-0.0209105113409954
Trimmed Mean ( 18 / 58 )0.0001746561016871880.00749934749482150.0232895064280983
Trimmed Mean ( 19 / 58 )0.0005397904454281330.007356709608929710.0733738959565462
Trimmed Mean ( 20 / 58 )0.0008017791513883990.007260830641516840.110425265506661
Trimmed Mean ( 21 / 58 )0.001083656841814660.007160048343857120.151347699033955
Trimmed Mean ( 22 / 58 )0.001352790667920970.007063253849912270.191525137941598
Trimmed Mean ( 23 / 58 )0.001554518379093680.006982594754315130.222627609619334
Trimmed Mean ( 24 / 58 )0.00179704528423840.006900719494089530.260414190980748
Trimmed Mean ( 25 / 58 )0.002018243754262610.006817764356922030.296027209009285
Trimmed Mean ( 26 / 58 )0.002222285085486170.006733145799571930.330051531874960
Trimmed Mean ( 27 / 58 )0.002391174008756260.006648265191471510.359668866973552
Trimmed Mean ( 28 / 58 )0.002580383683543240.00656989926105760.392758485482145
Trimmed Mean ( 29 / 58 )0.0027295639731640.006498770065208830.420012394003094
Trimmed Mean ( 30 / 58 )0.0027295639731640.006424091480553920.42489494139779
Trimmed Mean ( 31 / 58 )0.003058465600474280.006346347572149040.481925322510914
Trimmed Mean ( 32 / 58 )0.003233362955944170.006261281579119740.516405933048413
Trimmed Mean ( 33 / 58 )0.003424972256105580.006176333070530670.554531664175828
Trimmed Mean ( 34 / 58 )0.003610387532337480.006085731004178410.593254537517124
Trimmed Mean ( 35 / 58 )0.00376311969469210.005995096101713180.627699644984296
Trimmed Mean ( 36 / 58 )0.003902698573311230.00590145670739860.661311057051127
Trimmed Mean ( 37 / 58 )0.004047700834244780.005798579933037470.698050364225034
Trimmed Mean ( 38 / 58 )0.004093197377385840.005711223741046530.716693577939883
Trimmed Mean ( 39 / 58 )0.004127206784416330.005615833935230650.734923224585489
Trimmed Mean ( 40 / 58 )0.004111419482349160.005525513674173910.744079143549281
Trimmed Mean ( 41 / 58 )0.004103002066704650.005425716081959360.756213927291041
Trimmed Mean ( 42 / 58 )0.004177973006687120.00533135225827470.78366103087684
Trimmed Mean ( 43 / 58 )0.004233390346011160.005236812260683180.808390703213579
Trimmed Mean ( 44 / 58 )0.004306614000932190.005156060469730270.835252810981382
Trimmed Mean ( 45 / 58 )0.004279217212789860.005094994872324450.839886461129564
Trimmed Mean ( 46 / 58 )0.004228903458689650.005031820417430.840432111615294
Trimmed Mean ( 47 / 58 )0.004151175373398170.00496361950028190.8363202242159
Trimmed Mean ( 48 / 58 )0.004130108640281630.00490337139266430.842299778976662
Trimmed Mean ( 49 / 58 )0.004130108640281630.004838013516244170.853678607224705
Trimmed Mean ( 50 / 58 )0.004094725747305120.00478108983628910.856441917536376
Trimmed Mean ( 51 / 58 )0.004065983481811630.004730518637200360.859521712870363
Trimmed Mean ( 52 / 58 )0.004093410754855840.004688652297287920.873046345796129
Trimmed Mean ( 53 / 58 )0.004133042880063720.004652347062192430.888378021848614
Trimmed Mean ( 54 / 58 )0.004153369182255040.004613315387758610.900300290172219
Trimmed Mean ( 55 / 58 )0.004180968613193630.004582273747965280.912422269632003
Trimmed Mean ( 56 / 58 )0.004207905183647150.004545125165480280.925806227649289
Trimmed Mean ( 57 / 58 )0.004229582252616390.004501931571458020.939503896378988
Trimmed Mean ( 58 / 58 )0.00428162325423430.004459073006668670.96020478871528
Median-0.0030155289658953
Midrange0.116618408434922
Midmean - Weighted Average at Xnp0.00326109950873947
Midmean - Weighted Average at X(n+1)p0.00430661400093219
Midmean - Empirical Distribution Function0.00326109950873947
Midmean - Empirical Distribution Function - Averaging0.00430661400093219
Midmean - Empirical Distribution Function - Interpolation0.00430661400093219
Midmean - Closest Observation0.00326109950873947
Midmean - True Basic - Statistics Graphics Toolkit0.00430661400093219
Midmean - MS Excel (old versions)0.00423339034601116
Number of observations176
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/22/t1261514095f3crxh82g4kqp9w/10erz1261514026.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/22/t1261514095f3crxh82g4kqp9w/10erz1261514026.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/22/t1261514095f3crxh82g4kqp9w/2zu4o1261514026.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/22/t1261514095f3crxh82g4kqp9w/2zu4o1261514026.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