Home » date » 2010 » Nov » 25 »

mini tutorial 1

*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: Thu, 25 Nov 2010 22: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/25/t1290722346wm0t5okvj37f7ex.htm/, Retrieved Thu, 25 Nov 2010 22:59:08 +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/25/t1290722346wm0t5okvj37f7ex.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 «
1687 1508 1507 1385 1632 1511 1559 1630 1579 1653 2152 2148 1752 1765 1717 1558 1575 1520 1805 1800 1719 2008 2242 2478 2030 1655 1693 1623 1805 1746 1795 1926 1619 1992 2233 2192 2080 1768 1835 1569 1976 1853 1965 1689 1778 1976 2397 2654 2097 1963 1677 1941 2003 1813 2012 1912 2084 2080 2118 2150 1608 1503 1548 1382 1731 1798 1779 1887 2004 2077 2092 2051 1577 1356 1652 1382 1519 1421 1442 1543 1656 1561 1905 2199 1473 1655 1407 1395 1530 1309 1526 1327 1627 1748 1958 2274 1648 1401 1411 1403 1394 1520 1528 1643 1515 1685 2000 2215 1956 1462 1563 1459 1446 1622 1657 1638 1643 1683 2050 2262 1813 1445 1762 1461 1556 1431 1427 1554 1645 1653 2016 2207 1665 1361 1506 1360 1453 1522 1460 1552 1548 1827 1737 1941 1474 1458 1542 1404 1522 1385 1641 1510 1681 1938 1868 1726 1456 1445 1456 1365 1487 1558 1488 1684 1594 1850 1998 2079 1494 1057 1218 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'George Udny Yule' @ 72.249.76.132
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean1670.3072916666720.900870592374679.9156802720006
Geometric Mean1646.00694926890
Harmonic Mean1622.25780784952
Quadratic Mean1695.10002931243
Winsorized Mean ( 1 / 64 )1669.4895833333320.678970437798180.7336897334962
Winsorized Mean ( 2 / 64 )166920.462042659289381.5656592936634
Winsorized Mean ( 3 / 64 )1667.5312520.067074896135483.097873438502
Winsorized Mean ( 4 / 64 )1667.8229166666719.954726229851983.5803457013423
Winsorized Mean ( 5 / 64 )1667.3802083333319.864390302599683.9381517848613
Winsorized Mean ( 6 / 64 )1667.2864583333319.797483928395184.217088614073
Winsorized Mean ( 7 / 64 )1667.0312519.648563301830184.8423991307664
Winsorized Mean ( 8 / 64 )1668.0729166666719.428304467561285.8578739823538
Winsorized Mean ( 9 / 64 )1667.8854166666719.351449741271886.189171300664
Winsorized Mean ( 10 / 64 )1668.2519.212305289060786.8323699264703
Winsorized Mean ( 11 / 64 )1668.5937518.593820394516889.7391560527315
Winsorized Mean ( 12 / 64 )1668.5937518.563244091728689.8869692040246
Winsorized Mean ( 13 / 64 )1669.3385416666718.450612254658790.4760513432374
Winsorized Mean ( 14 / 64 )1668.0260416666718.067624380885192.32127071622
Winsorized Mean ( 15 / 64 )1667.7916666666717.712558268197994.1587116560748
Winsorized Mean ( 16 / 64 )1669.7916666666717.423980726242295.8329610725408
Winsorized Mean ( 17 / 64 )1669.17187517.326301806692796.3374581386574
Winsorized Mean ( 18 / 64 )1669.07812517.252962024796396.7415405309053
Winsorized Mean ( 19 / 64 )1669.1770833333317.243691447015096.7992896684705
Winsorized Mean ( 20 / 64 )1669.4895833333317.191886818534297.1091539256466
Winsorized Mean ( 21 / 64 )1671.1302083333316.995536756898798.3275922518304
Winsorized Mean ( 22 / 64 )1668.1510416666716.6296736759734100.311712314404
Winsorized Mean ( 23 / 64 )1668.39062516.5829724251287100.608659426571
Winsorized Mean ( 24 / 64 )1665.89062516.2860141787223102.289645994321
Winsorized Mean ( 25 / 64 )1665.2395833333315.9694681857355104.276458299393
Winsorized Mean ( 26 / 64 )1664.8333333333315.8953141819711104.737365633303
Winsorized Mean ( 27 / 64 )1665.1145833333315.7565876891397105.677359602487
Winsorized Mean ( 28 / 64 )1664.8229166666715.6647321876384106.278415534000
Winsorized Mean ( 29 / 64 )1664.8229166666715.6344133766142106.484514421046
Winsorized Mean ( 30 / 64 )1664.8229166666715.5405755672271107.127494053537
Winsorized Mean ( 31 / 64 )1665.1458333333315.4482665597044107.788522867461
Winsorized Mean ( 32 / 64 )1665.812515.1935692847749109.639313105266
Winsorized Mean ( 33 / 64 )1664.0937514.8005208909569112.434809711107
Winsorized Mean ( 34 / 64 )1664.0937514.8005208909569112.434809711107
Winsorized Mean ( 35 / 64 )1662.8177083333314.5195832542902114.522412882754
Winsorized Mean ( 36 / 64 )1664.5052083333314.3084934270233116.329871961902
Winsorized Mean ( 37 / 64 )1663.9270833333314.1721863725573117.407931252960
Winsorized Mean ( 38 / 64 )1663.7291666666714.1131559679284117.88498408488
Winsorized Mean ( 39 / 64 )1660.6822916666713.7857575073348120.463622748557
Winsorized Mean ( 40 / 64 )1660.89062513.7687131735077120.627875972877
Winsorized Mean ( 41 / 64 )1661.7447916666713.5792472508874122.373851875926
Winsorized Mean ( 42 / 64 )1659.7760416666713.2485113196437125.280191986982
Winsorized Mean ( 43 / 64 )1656.64062512.9213330426200128.209730337861
Winsorized Mean ( 44 / 64 )1655.4947916666712.7186955237776130.162310165513
Winsorized Mean ( 45 / 64 )1651.5104166666712.2708689585983134.587894487247
Winsorized Mean ( 46 / 64 )1647.1979166666711.7992872922710139.601475569261
Winsorized Mean ( 47 / 64 )1643.7708333333311.4228670337337143.901774263763
Winsorized Mean ( 48 / 64 )1643.2708333333311.3301391298353145.035362276016
Winsorized Mean ( 49 / 64 )1642.2510.7337583788451152.998599561983
Winsorized Mean ( 50 / 64 )1640.4270833333310.5175295416995155.970760702827
Winsorized Mean ( 51 / 64 )1639.098958333339.9781353461252164.269064457002
Winsorized Mean ( 52 / 64 )1640.182291666679.88984185728128165.845148520661
Winsorized Mean ( 53 / 64 )1637.973958333339.68915444943557169.052311724554
Winsorized Mean ( 54 / 64 )1638.255208333339.66623763696663169.482198747954
Winsorized Mean ( 55 / 64 )1638.541666666679.39798907156718174.350241757988
Winsorized Mean ( 56 / 64 )1640.583333333339.13624374018374179.568691465355
Winsorized Mean ( 57 / 64 )1640.583333333338.98597697197025182.571504295055
Winsorized Mean ( 58 / 64 )1636.052083333338.53263656541053191.740509605851
Winsorized Mean ( 59 / 64 )1636.052083333338.48138469361463192.899171825688
Winsorized Mean ( 60 / 64 )1633.552083333338.16017102274104200.186010658465
Winsorized Mean ( 61 / 64 )1632.916666666678.05295225331572202.77242622348
Winsorized Mean ( 62 / 64 )1632.916666666677.94643640335133205.490434174745
Winsorized Mean ( 63 / 64 )1633.244791666677.86656813129194207.618463910569
Winsorized Mean ( 64 / 64 )1631.244791666677.47792981405108218.141227883892
Trimmed Mean ( 1 / 64 )1668.3578947368420.215706485953082.5278055899808
Trimmed Mean ( 2 / 64 )1667.2021276595719.718155980002484.551624875592
Trimmed Mean ( 3 / 64 )1666.2741935483919.306196833038686.3077388031648
Trimmed Mean ( 4 / 64 )1665.8369565217419.017683425352987.5941048793028
Trimmed Mean ( 5 / 64 )1665.3131868131918.742518106004588.8521583596427
Trimmed Mean ( 6 / 64 )1664.8722222222218.470376622399590.1374268786264
Trimmed Mean ( 7 / 64 )1664.4382022471918.193199379362491.486833488741
Trimmed Mean ( 8 / 64 )1664.0340909090917.924120181141592.8376999312841
Trimmed Mean ( 9 / 64 )1663.4770114942517.672552032573894.127718986378
Trimmed Mean ( 10 / 64 )1662.9302325581417.414564978726895.4907707766193
Trimmed Mean ( 11 / 64 )1662.3294117647117.157412482532496.886952706714
Trimmed Mean ( 12 / 64 )1661.6785714285716.963019627690397.9588898615707
Trimmed Mean ( 13 / 64 )1661.0120481927716.757809180353599.1186873126652
Trimmed Mean ( 14 / 64 )1660.2621951219516.5500656572981100.317559428523
Trimmed Mean ( 15 / 64 )1659.6049382716016.3696102774403101.383289531259
Trimmed Mean ( 16 / 64 )1658.9516.2128040672572102.323447142025
Trimmed Mean ( 17 / 64 )1658.1265822784816.0719947954135103.168685865408
Trimmed Mean ( 18 / 64 )1657.3269230769215.9292640359292104.042906146746
Trimmed Mean ( 19 / 64 )1656.5129870129915.7815794352336104.964968418478
Trimmed Mean ( 20 / 64 )1655.6710526315815.6222363225182105.981692918386
Trimmed Mean ( 21 / 64 )1654.7866666666715.4539355533308107.078657145688
Trimmed Mean ( 22 / 64 )1653.7770270270315.2880229584387108.174682332890
Trimmed Mean ( 23 / 64 )1652.9178082191815.1408674599479109.169293806424
Trimmed Mean ( 24 / 64 )1652.0208333333314.9843951098948110.249417558566
Trimmed Mean ( 25 / 64 )1651.2394366197214.8399207338052111.270098152088
Trimmed Mean ( 26 / 64 )1650.4714285714314.7085507038778112.211696570233
Trimmed Mean ( 27 / 64 )1649.7028985507214.5709011895179113.219002523845
Trimmed Mean ( 28 / 64 )1648.8970588235314.4311840065653114.259305270682
Trimmed Mean ( 29 / 64 )1648.0820895522414.2854024988713115.368264190137
Trimmed Mean ( 30 / 64 )1647.2424242424214.127710195746116.596561043447
Trimmed Mean ( 31 / 64 )1646.3769230769213.9619905931052117.918495367698
Trimmed Mean ( 32 / 64 )1645.4687513.7869713113669119.349544786778
Trimmed Mean ( 33 / 64 )1644.513.6145615322083120.789787912712
Trimmed Mean ( 34 / 64 )1643.5806451612913.4571475405610122.134400340592
Trimmed Mean ( 35 / 64 )1642.6311475409813.2828962984975123.66513376505
Trimmed Mean ( 36 / 64 )1641.7083333333313.1137204210697125.190127638806
Trimmed Mean ( 37 / 64 )1640.6779661016912.9421364669263126.770257004665
Trimmed Mean ( 38 / 64 )1639.6379310344812.7629429649355128.468640464756
Trimmed Mean ( 39 / 64 )1638.5701754386012.5683658733474130.372571259512
Trimmed Mean ( 40 / 64 )1637.5982142857112.3815199652873132.261484767368
Trimmed Mean ( 41 / 64 )1636.5818181818212.1739366783402134.433245500087
Trimmed Mean ( 42 / 64 )1635.4907407407411.9574755310153136.775587497428
Trimmed Mean ( 43 / 64 )1634.4433962264211.7458951189475139.150177970674
Trimmed Mean ( 44 / 64 )1633.4903846153811.5402176517126141.547623616351
Trimmed Mean ( 45 / 64 )1632.5490196078411.3279729759362144.116606128549
Trimmed Mean ( 46 / 64 )1631.7411.1330486263724146.567221141447
Trimmed Mean ( 47 / 64 )1631.0816326530610.9591429268065148.832955601243
Trimmed Mean ( 48 / 64 )1630.5416666666710.7986650071049150.994744775753
Trimmed Mean ( 49 / 64 )163010.6250439055978153.411130766361
Trimmed Mean ( 50 / 64 )1629.4782608695710.4839818010796155.425514063919
Trimmed Mean ( 51 / 64 )1629.0111111111110.3436036245201157.489707673006
Trimmed Mean ( 52 / 64 )1628.5795454545510.2337074120645159.138763683493
Trimmed Mean ( 53 / 64 )1628.0813953488410.113760791642160.976854099049
Trimmed Mean ( 54 / 64 )1627.654761904769.99502879946467162.846430416683
Trimmed Mean ( 55 / 64 )1627.195121951229.85849045713708165.055200796305
Trimmed Mean ( 56 / 64 )1626.79.72658499660608167.242665392592
Trimmed Mean ( 57 / 64 )1626.089743589749.59761850763653169.426378251638
Trimmed Mean ( 58 / 64 )1625.447368421059.46141554515973171.797482169843
Trimmed Mean ( 59 / 64 )1624.972972972979.35369765096348173.725197628725
Trimmed Mean ( 60 / 64 )1624.472222222229.23006188172444175.997977374202
Trimmed Mean ( 61 / 64 )1624.057142857149.12071983543374178.062386758963
Trimmed Mean ( 62 / 64 )1623.647058823539.00123795763238180.380417278803
Trimmed Mean ( 63 / 64 )1623.212121212128.86920013453002183.016742952112
Trimmed Mean ( 64 / 64 )1622.7343758.7184306403791186.126889337671
Median1631
Midrange1855.5
Midmean - Weighted Average at Xnp1628.79381443299
Midmean - Weighted Average at X(n+1)p1630.54166666667
Midmean - Empirical Distribution Function1628.79381443299
Midmean - Empirical Distribution Function - Averaging1630.54166666667
Midmean - Empirical Distribution Function - Interpolation1630.54166666667
Midmean - Closest Observation1628.79381443299
Midmean - True Basic - Statistics Graphics Toolkit1630.54166666667
Midmean - MS Excel (old versions)1631.08163265306
Number of observations192
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/25/t1290722346wm0t5okvj37f7ex/11kph1290722438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/25/t1290722346wm0t5okvj37f7ex/11kph1290722438.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/25/t1290722346wm0t5okvj37f7ex/2prhd1290722438.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/25/t1290722346wm0t5okvj37f7ex/2prhd1290722438.ps (open in new window)


 
Parameters (Session):
par1 = 5 ; par2 = 6 ; par3 = Pearson Chi-Squared ;
 
Parameters (R input):
par1 = 5 ; par2 = 6 ; par3 = Pearson Chi-Squared ;
 
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