Home » date » 2009 » Jun » 01 »

Gabriels Wim OPG5OEF2 centrummaten aantal kinderen

*Unverified author*
R Software Module: rwasp_centraltendency.wasp (opens new window with default values)
Title produced by software: Central Tendency
Date of computation: Mon, 01 Jun 2009 09:26:33 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243870084rlyu7wqzhnquduj.htm/, Retrieved Mon, 01 Jun 2009 17:28:06 +0200
 
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/Jun/01/t1243870084rlyu7wqzhnquduj.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 «
374 572 402 589 507 628 698 451 694 0 488 526 343 494 447 0 470 366 517 483 485 530 308 481 437 468 502 408 479 436 410 451 344 411 0 427 454 365 499 416 430 470 325 452 442 488 446 523 594 439 588 503 444 525 375 472 436 458 514 0 472 360 450 549 361 466 387 457 470 396 471 422 404 414 342 459 379 0 410 319 411 371 365 429 333 392 469 432 534 379 436 448 358 492 387 529 475 439 459 361 0 0 394 425 341 455 403 471 523 389 531 468 398 446 355 435 353 0 400 332 389 355 384 406 356 336 351 278 265 229 387 435 317 490 472 440 429 350 489 494 436 436 375 429 0 434 472 362 440 433 400 442 316 432 401 434 488 377 484 377 0 0 300 389 337 376 377 331 339 356 280 249 196 268 379 401 404 397 419 421 407 296 468 475 422 456 339 446 419 346 327 326 403 359 358 421 322 367 394 356 418 344 372 358 373 379 0 348 369 341 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'George Udny Yule' @ 72.249.76.132


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean383.7083333333337.1668313314925353.5394675255213
Geometric Mean0
Harmonic Mean0
Quadratic Mean400.924778518743
Winsorized Mean ( 1 / 88 )383.6931818181827.164320485093153.5561163988319
Winsorized Mean ( 2 / 88 )383.1931818181827.0902848246429954.0448220763087
Winsorized Mean ( 3 / 88 )382.8068181818187.0428862016764754.3536850120758
Winsorized Mean ( 4 / 88 )382.7310606060617.0343439928639554.4089201486771
Winsorized Mean ( 5 / 88 )382.7121212121217.0322370557319554.4225284470713
Winsorized Mean ( 6 / 88 )382.3484848484856.993303649599754.6735139793867
Winsorized Mean ( 7 / 88 )381.7386363636366.9338792034972655.0541226866337
Winsorized Mean ( 8 / 88 )381.2840909090916.8938857678573355.3075730797316
Winsorized Mean ( 9 / 88 )381.1818181818186.8853478229859155.3613017063986
Winsorized Mean ( 10 / 88 )381.1439393939396.882223321280555.3809316555313
Winsorized Mean ( 11 / 88 )381.1022727272736.8788068455967155.4023802792523
Winsorized Mean ( 12 / 88 )380.9659090909096.8677580437167655.4716556212185
Winsorized Mean ( 13 / 88 )380.9166666666676.8638158530570455.4963412220641
Winsorized Mean ( 14 / 88 )391.2045454545454.9226020072457779.4710896551695
Winsorized Mean ( 15 / 88 )393.0795454545454.6551664322994084.439418261655
Winsorized Mean ( 16 / 88 )393.928030303034.4605619581099188.3135430025393
Winsorized Mean ( 17 / 88 )394.3143939393944.3701894120860290.2282159324476
Winsorized Mean ( 18 / 88 )394.3143939393944.2655389282631792.4418697310893
Winsorized Mean ( 19 / 88 )394.2424242424244.2122004773784293.595360989986
Winsorized Mean ( 20 / 88 )394.9242424242424.1206815213895695.839545078715
Winsorized Mean ( 21 / 88 )394.7651515151524.0887532299572696.5490283499643
Winsorized Mean ( 22 / 88 )394.4318181818184.0400596090037397.6301976591588
Winsorized Mean ( 23 / 88 )394.9545454545453.9847319481929399.1169671108384
Winsorized Mean ( 24 / 88 )395.2272727272733.92100378802088100.797472814165
Winsorized Mean ( 25 / 88 )395.5113636363643.85613051736568102.566902716394
Winsorized Mean ( 26 / 88 )395.4128787878793.84698770242275102.785064412568
Winsorized Mean ( 27 / 88 )395.3106060606063.83756134709774103.010889027108
Winsorized Mean ( 28 / 88 )395.5227272727273.81682096041585103.626219666755
Winsorized Mean ( 29 / 88 )395.7424242424243.79561302803146104.263111471000
Winsorized Mean ( 30 / 88 )395.7424242424243.73189929033149106.043168224744
Winsorized Mean ( 31 / 88 )395.9772727272733.68824865293594107.361870087600
Winsorized Mean ( 32 / 88 )395.9772727272733.66606405958312108.011553069343
Winsorized Mean ( 33 / 88 )395.8522727272733.63212349739169108.986457374465
Winsorized Mean ( 34 / 88 )395.9810606060613.57403409146185110.793867789911
Winsorized Mean ( 35 / 88 )396.1136363636363.46859436812864114.200045990776
Winsorized Mean ( 36 / 88 )396.253.45666283782798114.633685317422
Winsorized Mean ( 37 / 88 )396.253.43237363773686115.444890860212
Winsorized Mean ( 38 / 88 )396.1060606060613.39528859615985116.663443883405
Winsorized Mean ( 39 / 88 )396.5492424242423.35744396844898118.110457285586
Winsorized Mean ( 40 / 88 )396.5492424242423.35744396844898118.110457285586
Winsorized Mean ( 41 / 88 )396.8598484848483.33141683814396119.126446123731
Winsorized Mean ( 42 / 88 )396.8598484848483.30461723653301120.092531170481
Winsorized Mean ( 43 / 88 )396.8598484848483.30461723653301120.092531170481
Winsorized Mean ( 44 / 88 )396.8598484848483.27669317256967121.115962827127
Winsorized Mean ( 45 / 88 )397.0303030303033.26272968013912121.686545301961
Winsorized Mean ( 46 / 88 )397.2045454545453.24856264701730122.270859027220
Winsorized Mean ( 47 / 88 )397.2045454545453.21904760197548123.391945248274
Winsorized Mean ( 48 / 88 )397.3863636363643.17454324862361125.179067511100
Winsorized Mean ( 49 / 88 )397.571969696973.15984150696124125.820225103413
Winsorized Mean ( 50 / 88 )397.7613636363643.14495493290016126.476013845312
Winsorized Mean ( 51 / 88 )397.7613636363643.08220224901628129.051026344333
Winsorized Mean ( 52 / 88 )396.5795454545452.95340668336625134.278678140773
Winsorized Mean ( 53 / 88 )396.7803030303032.93781141957254135.059827321400
Winsorized Mean ( 54 / 88 )396.5757575757582.92139918144227135.748568732046
Winsorized Mean ( 55 / 88 )396.7840909090912.87267916610891138.123357314051
Winsorized Mean ( 56 / 88 )396.571969696972.85583392832946138.863806387001
Winsorized Mean ( 57 / 88 )396.571969696972.82229121385693140.514192068442
Winsorized Mean ( 58 / 88 )396.571969696972.78834502266673142.224856132651
Winsorized Mean ( 59 / 88 )396.1252.7535992718193143.857170523683
Winsorized Mean ( 60 / 88 )395.8977272727272.73613000432542144.692586480493
Winsorized Mean ( 61 / 88 )396.1287878787882.71856972410117145.712204607795
Winsorized Mean ( 62 / 88 )396.1287878787882.68286078297356147.651637532879
Winsorized Mean ( 63 / 88 )395.8901515151522.6287117038033150.602346747407
Winsorized Mean ( 64 / 88 )395.6477272727272.61050903865454151.559608265768
Winsorized Mean ( 65 / 88 )395.6477272727272.57367037858375153.728981988146
Winsorized Mean ( 66 / 88 )395.8977272727272.55503496854054154.948066131113
Winsorized Mean ( 67 / 88 )395.8977272727272.55503496854054154.948066131113
Winsorized Mean ( 68 / 88 )395.8977272727272.47876753505882159.715552859754
Winsorized Mean ( 69 / 88 )396.1590909090912.42136177184107163.610037754859
Winsorized Mean ( 70 / 88 )396.1590909090912.38274790684912166.261436961227
Winsorized Mean ( 71 / 88 )396.696969696972.34430419307481169.217361325732
Winsorized Mean ( 72 / 88 )396.4242424242422.28519661875403173.474894532439
Winsorized Mean ( 73 / 88 )396.7007575757582.26576157979482175.084952059114
Winsorized Mean ( 74 / 88 )396.7007575757582.26576157979482175.084952059114
Winsorized Mean ( 75 / 88 )396.4166666666672.24519614517460176.562153609007
Winsorized Mean ( 76 / 88 )396.7045454545452.22508790108431178.287134302077
Winsorized Mean ( 77 / 88 )396.1212121212122.18323977352223181.437337724087
Winsorized Mean ( 78 / 88 )395.8257575757582.16228601900455183.058926569753
Winsorized Mean ( 79 / 88 )395.8257575757582.16228601900455183.058926569753
Winsorized Mean ( 80 / 88 )395.8257575757582.16228601900455183.058926569753
Winsorized Mean ( 81 / 88 )396.4393939393942.11963939359394187.031527691705
Winsorized Mean ( 82 / 88 )396.4393939393942.11963939359394187.031527691705
Winsorized Mean ( 83 / 88 )396.1252.09740509205426188.864326448270
Winsorized Mean ( 84 / 88 )396.1252.09740509205426188.864326448270
Winsorized Mean ( 85 / 88 )396.1252.09740509205426188.864326448270
Winsorized Mean ( 86 / 88 )396.1252.05203254898520193.040310299121
Winsorized Mean ( 87 / 88 )396.1252.05203254898520193.040310299121
Winsorized Mean ( 88 / 88 )396.4583333333332.02918113278033195.378483925738
Trimmed Mean ( 1 / 88 )383.9732824427486.9680901656014655.1045226622157
Trimmed Mean ( 2 / 88 )384.2576923076926.7593292453889556.848494629822
Trimmed Mean ( 3 / 88 )384.8023255813956.5785258502074358.4937012247603
Trimmed Mean ( 4 / 88 )385.488281256.4044255111696960.1909227576597
Trimmed Mean ( 5 / 88 )386.2047244094496.2215326657810162.0754957268986
Trimmed Mean ( 6 / 88 )386.9365079365086.0267340391907464.2033488487017
Trimmed Mean ( 7 / 88 )387.7445.8265113743286266.5482267327899
Trimmed Mean ( 8 / 88 )388.6572580645165.6228864195308769.1205955564976
Trimmed Mean ( 9 / 88 )389.6463414634155.4104812458982872.0169470615591
Trimmed Mean ( 10 / 88 )390.6639344262305.1821123082345575.3870065311883
Trimmed Mean ( 11 / 88 )391.7024793388434.934241597363779.3845359230332
Trimmed Mean ( 12 / 88 )392.76254.6633520727095784.2232140906727
Trimmed Mean ( 13 / 88 )393.8529411764714.3657830826775490.213584531763
Trimmed Mean ( 14 / 88 )394.9661016949154.0339564130159597.9103543163032
Trimmed Mean ( 15 / 88 )395.2692307692313.94025676699533100.315602292753
Trimmed Mean ( 16 / 88 )395.4353448275863.86970829657417102.187378097120
Trimmed Mean ( 17 / 88 )395.5434782608703.81431821588216103.699653745169
Trimmed Mean ( 18 / 88 )395.6271929824563.76421055158422105.102301680747
Trimmed Mean ( 19 / 88 )395.7123893805313.72051186809872106.359663242453
Trimmed Mean ( 20 / 88 )395.8035714285713.67886665160669107.588452888258
Trimmed Mean ( 21 / 88 )395.8558558558563.64236647594019108.680951922520
Trimmed Mean ( 22 / 88 )395.9181818181823.60630682067730109.784941078259
Trimmed Mean ( 23 / 88 )3963.57187584397503110.866115536453
Trimmed Mean ( 24 / 88 )396.0555555555563.53961015938062111.892422533011
Trimmed Mean ( 25 / 88 )396.0981308411213.51006919321162112.846245768364
Trimmed Mean ( 26 / 88 )396.1273584905663.48332970437780113.720891247452
Trimmed Mean ( 27 / 88 )396.1619047619053.45563456336829114.642303026323
Trimmed Mean ( 28 / 88 )396.2019230769233.42692439851231115.614433527895
Trimmed Mean ( 29 / 88 )396.2330097087383.39788213744758116.611758054204
Trimmed Mean ( 30 / 88 )396.2549019607843.36848345630111117.635994684655
Trimmed Mean ( 31 / 88 )396.2772277227723.34138899721448118.596556118765
Trimmed Mean ( 32 / 88 )396.293.31537904182233119.530827395885
Trimmed Mean ( 33 / 88 )396.303030303033.28912313229273120.488961453621
Trimmed Mean ( 34 / 88 )396.3214285714293.26329647324882121.448183399918
Trimmed Mean ( 35 / 88 )396.3350515463923.23934906146413122.350214202373
Trimmed Mean ( 36 / 88 )396.343753.22009039086284123.084665922622
Trimmed Mean ( 37 / 88 )396.3473684210533.20022048149258123.850019307481
Trimmed Mean ( 38 / 88 )396.3510638297873.18039934218069124.623049241993
Trimmed Mean ( 39 / 88 )396.3602150537633.1613349274373125.377482662069
Trimmed Mean ( 40 / 88 )396.3532608695653.14307985885707126.103464966905
Trimmed Mean ( 41 / 88 )396.3461538461543.12351326935219126.891138172867
Trimmed Mean ( 42 / 88 )396.3277777777783.10400944691335127.682529501284
Trimmed Mean ( 43 / 88 )396.3089887640453.08460034231674128.479849829230
Trimmed Mean ( 44 / 88 )396.2897727272733.06376085410291129.347488788680
Trimmed Mean ( 45 / 88 )396.2701149425293.04296905018974130.224825953396
Trimmed Mean ( 46 / 88 )396.2441860465123.02140998061822131.145454800356
Trimmed Mean ( 47 / 88 )396.2117647058822.99902743529061132.113417851241
Trimmed Mean ( 48 / 88 )396.1785714285712.97663797605187133.095987693489
Trimmed Mean ( 49 / 88 )396.1385542168672.95505960408751134.05433638933
Trimmed Mean ( 50 / 88 )396.0914634146342.93261665798578135.064179744066
Trimmed Mean ( 51 / 88 )396.0370370370372.90924095161755136.130710251703
Trimmed Mean ( 52 / 88 )395.981252.88762911000797137.130232074336
Trimmed Mean ( 53 / 88 )395.9620253164562.87165158345051137.886513669836
Trimmed Mean ( 54 / 88 )395.9358974358972.85512728588854138.675392649851
Trimmed Mean ( 55 / 88 )395.9155844155842.83807331760007139.501535059136
Trimmed Mean ( 56 / 88 )395.8881578947372.82223639012238140.274627341748
Trimmed Mean ( 57 / 88 )395.8666666666672.80590088762960141.083624304738
Trimmed Mean ( 58 / 88 )395.8445945945952.78995507383424141.882067674511
Trimmed Mean ( 59 / 88 )395.8219178082192.77443087707858142.667788582649
Trimmed Mean ( 60 / 88 )395.81252.75940450172804143.441275011376
Trimmed Mean ( 61 / 88 )395.809859154932.74388620522084144.251557663658
Trimmed Mean ( 62 / 88 )395.82.72782472846574145.097298909896
Trimmed Mean ( 63 / 88 )395.7898550724642.71223729286734145.927443779833
Trimmed Mean ( 64 / 88 )395.7867647058822.69822842081965146.683935893631
Trimmed Mean ( 65 / 88 )395.7910447761192.68375986445971147.476326037017
Trimmed Mean ( 66 / 88 )395.7954545454552.66989753321848148.243687115713
Trimmed Mean ( 67 / 88 )395.7923076923082.65557538746367149.042015361623
Trimmed Mean ( 68 / 88 )395.78906252.63959786944353149.942939067245
Trimmed Mean ( 69 / 88 )395.7857142857142.62654597602485150.686764251779
Trimmed Mean ( 70 / 88 )395.7741935483872.61541454110629151.323695470844
Trimmed Mean ( 71 / 88 )395.7622950819672.60516649453697151.914396224533
Trimmed Mean ( 72 / 88 )395.7333333333332.59580391128548152.451166135026
Trimmed Mean ( 73 / 88 )395.711864406782.58871568370294152.860303237607
Trimmed Mean ( 74 / 88 )395.6810344827592.58152236903319153.274300168449
Trimmed Mean ( 75 / 88 )395.6491228070182.57298320626961153.770581107151
Trimmed Mean ( 76 / 88 )395.6252.5643307723785154.280018888922
Trimmed Mean ( 77 / 88 )395.5909090909092.55544996289335154.802838965788
Trimmed Mean ( 78 / 88 )395.5740740740742.54785298084376155.257810026022
Trimmed Mean ( 79 / 88 )395.5660377358492.54017207883703155.724110595276
Trimmed Mean ( 80 / 88 )395.5576923076922.53090778135762156.290835731482
Trimmed Mean ( 81 / 88 )395.5490196078432.51987354006638156.971773907917
Trimmed Mean ( 82 / 88 )395.522.50995915295348157.580253660539
Trimmed Mean ( 83 / 88 )395.4897959183672.49810552658539158.315888464069
Trimmed Mean ( 84 / 88 )395.468752.48583500765980159.088897204123
Trimmed Mean ( 85 / 88 )395.4468085106382.47127709555588160.017186750030
Trimmed Mean ( 86 / 88 )395.4239130434782.45412928031975161.125950541594
Trimmed Mean ( 87 / 88 )395.42.43793367408774162.186528781574
Trimmed Mean ( 88 / 88 )395.3752.41881300392618163.458274516564
Median395
Midrange349
Midmean - Weighted Average at Xnp395.791044776119
Midmean - Weighted Average at X(n+1)p396.172932330827
Midmean - Empirical Distribution Function395.791044776119
Midmean - Empirical Distribution Function - Averaging396.172932330827
Midmean - Empirical Distribution Function - Interpolation396.172932330827
Midmean - Closest Observation395.791044776119
Midmean - True Basic - Statistics Graphics Toolkit396.172932330827
Midmean - MS Excel (old versions)395.791044776119
Number of observations264
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243870084rlyu7wqzhnquduj/1kx621243869990.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243870084rlyu7wqzhnquduj/1kx621243869990.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243870084rlyu7wqzhnquduj/287pd1243869990.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243870084rlyu7wqzhnquduj/287pd1243869990.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