Home » date » 2007 » Oct » 21 » attachments

Workshop2Q8

R Software Module: rwasp_centraltendency.wasp (opens new window with default values)
Title produced by software: Central Tendency
Date of computation: Sun, 21 Oct 2007 09:15:08 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Oct/21/7afc5evunhgwhsy1192983065.htm/, Retrieved Sun, 21 Oct 2007 18:11:05 +0200
 
User-defined keywords:
totale werkloosheid
 
Dataseries X:
» Textbox « » Textfile « » CSV «
580 574 563 556 546 545 605 628 631 626 614 606 602 589 574 558 552 546 607 636 631 623 618 605 619 596 570 546 528 506 555 568 564 553 541 542 540 521 505 491 482 478 523 531 532 540 525 533 531 508 495 482 470 466 515 518 516 511 500 498 494 476 458 443 430 424 476 481 470 460 451 450 444 429 421 400 389 384 432 446 431 423 416 416 413 399 386 374 365 365 418 428 424 421 417 423 423 419 406 398 390 391 444 460 455 456 452 459 461 451 443 439 430 436 488 506 502 501 501 515 521 520 512 509 505 511 570 592 594 586 586 592 594 586 572 563 555 554 601 622 617 606 595 599 600 592 575 567 555 555 608 631 629 624 610 616 621 604 584 574 555 545 599 620 608 590 579 580 579 572 560 551 537 541 588 607 599 578 563 566 561 554 540 526 512 505 554 584 569 540 522 526 527 516 503 489 479 475 524 552 532 511 492 492 493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean526.2154882154883.77048837568314139.561625918061
Geometric Mean522.039579959443
Harmonic Mean517.687921992188
Quadratic Mean530.198876351929
Winsorized Mean ( 1 / 99 )526.1986531986533.76886959289520139.617102748953
Winsorized Mean ( 2 / 99 )526.2592592592593.76034538792565139.949713382462
Winsorized Mean ( 3 / 99 )526.3602693602693.74695321852479140.476872451453
Winsorized Mean ( 4 / 99 )526.3602693602693.74099831291371140.700482954858
Winsorized Mean ( 5 / 99 )526.4107744107743.73465843759307140.952856387595
Winsorized Mean ( 6 / 99 )526.4107744107743.7302882077477141.117990110639
Winsorized Mean ( 7 / 99 )526.4343434343433.72738573583517141.234200252792
Winsorized Mean ( 8 / 99 )526.5690235690243.69981792619166142.322955905843
Winsorized Mean ( 9 / 99 )526.5993265993273.69627209846562142.467684350924
Winsorized Mean ( 10 / 99 )526.5656565656573.68629029229104142.844327172724
Winsorized Mean ( 11 / 99 )526.7508417508423.65770808018794144.011175906574
Winsorized Mean ( 12 / 99 )526.9932659932663.62331667470911145.444992338566
Winsorized Mean ( 13 / 99 )527.0808080808083.60563970607597146.182328531774
Winsorized Mean ( 14 / 99 )527.0808080808083.60563970607597146.182328531774
Winsorized Mean ( 15 / 99 )527.0808080808083.59597311174827146.575291778129
Winsorized Mean ( 16 / 99 )527.134680134683.59042133483858146.816941794487
Winsorized Mean ( 17 / 99 )527.1919191919193.58456410020713147.072811213351
Winsorized Mean ( 18 / 99 )527.2525252525253.56700110917993147.813950462646
Winsorized Mean ( 19 / 99 )527.1885521885523.56146617649209148.02570797059
Winsorized Mean ( 20 / 99 )527.2558922558923.5422044800318148.849648637777
Winsorized Mean ( 21 / 99 )527.1851851851853.53617862573114149.083301773587
Winsorized Mean ( 22 / 99 )527.0370370370373.52371712930013149.568486259768
Winsorized Mean ( 23 / 99 )527.0370370370373.50958185656148150.170891740762
Winsorized Mean ( 24 / 99 )526.9562289562293.50292448146357150.433225650374
Winsorized Mean ( 25 / 99 )527.2087542087543.46301956659196152.239611723474
Winsorized Mean ( 26 / 99 )527.2962962962963.45457556604277152.637071100551
Winsorized Mean ( 27 / 99 )527.2962962962963.43844630324808153.353069902006
Winsorized Mean ( 28 / 99 )527.1077441077443.42325901004394153.978341271050
Winsorized Mean ( 29 / 99 )527.2053872053873.41393219277798154.427609406146
Winsorized Mean ( 30 / 99 )527.1043771043773.40589157477466154.762524153239
Winsorized Mean ( 31 / 99 )527.2087542087543.39597343316019155.245252822296
Winsorized Mean ( 32 / 99 )527.5319865319863.3471083550342157.608278721708
Winsorized Mean ( 33 / 99 )527.5319865319863.3471083550342157.608278721708
Winsorized Mean ( 34 / 99 )527.7609427609433.30661904218294159.607422575214
Winsorized Mean ( 35 / 99 )527.7609427609433.30661904218294159.607422575214
Winsorized Mean ( 36 / 99 )528.0033670033673.26439599971903161.746113844280
Winsorized Mean ( 37 / 99 )527.8787878787883.23388300988698163.233730553919
Winsorized Mean ( 38 / 99 )527.7508417508423.22401898495375163.693465892668
Winsorized Mean ( 39 / 99 )527.6195286195293.21398403952053164.163705274106
Winsorized Mean ( 40 / 99 )527.6195286195293.19182287483698165.303511287880
Winsorized Mean ( 41 / 99 )527.6195286195293.19182287483698165.303511287880
Winsorized Mean ( 42 / 99 )527.9023569023573.1669507328912166.691054401222
Winsorized Mean ( 43 / 99 )527.9023569023573.11995915824684169.201688267931
Winsorized Mean ( 44 / 99 )528.0505050505053.08341401939762171.255141777446
Winsorized Mean ( 45 / 99 )528.0505050505053.0592479658527172.607945137040
Winsorized Mean ( 46 / 99 )528.0505050505053.0592479658527172.607945137040
Winsorized Mean ( 47 / 99 )528.2087542087543.04582694898382173.420474326350
Winsorized Mean ( 48 / 99 )528.5319865319862.99325451587031176.574355347899
Winsorized Mean ( 49 / 99 )528.5319865319862.99325451587031176.574355347899
Winsorized Mean ( 50 / 99 )528.7003367003372.97932926675953177.456161894915
Winsorized Mean ( 51 / 99 )528.7003367003372.97932926675953177.456161894915
Winsorized Mean ( 52 / 99 )528.7003367003372.95200469472843179.098745216926
Winsorized Mean ( 53 / 99 )528.7003367003372.92430424287937180.795256850484
Winsorized Mean ( 54 / 99 )528.8821548821552.90950209195919181.777547554887
Winsorized Mean ( 55 / 99 )529.067340067342.89452449607992182.782125625076
Winsorized Mean ( 56 / 99 )528.8787878787882.88073127213370183.591851483967
Winsorized Mean ( 57 / 99 )528.6868686868692.866806732201184.41664125749
Winsorized Mean ( 58 / 99 )528.6868686868692.866806732201184.41664125749
Winsorized Mean ( 59 / 99 )528.6868686868692.83644679425554186.390546707092
Winsorized Mean ( 60 / 99 )528.6868686868692.83644679425554186.390546707092
Winsorized Mean ( 61 / 99 )528.6868686868692.80520694252636188.466262745926
Winsorized Mean ( 62 / 99 )529.1043771043772.77187558384532190.883162356938
Winsorized Mean ( 63 / 99 )529.1043771043772.70805851166559195.381442027614
Winsorized Mean ( 64 / 99 )529.3198653198652.69114696046327196.689319868561
Winsorized Mean ( 65 / 99 )529.9764309764312.64026574785943200.728442357026
Winsorized Mean ( 66 / 99 )529.5319865319862.60865864809970202.990140897787
Winsorized Mean ( 67 / 99 )529.5319865319862.60865864809970202.990140897787
Winsorized Mean ( 68 / 99 )529.7609427609432.59106161061399204.457099974326
Winsorized Mean ( 69 / 99 )528.831649831652.52639533397193209.322603917351
Winsorized Mean ( 70 / 99 )529.7744107744112.45438846188499215.847824825390
Winsorized Mean ( 71 / 99 )529.7744107744112.45438846188499215.847824825390
Winsorized Mean ( 72 / 99 )530.0168350168352.43616965797356217.56154514202
Winsorized Mean ( 73 / 99 )529.7710437710442.41920219388462218.985847942030
Winsorized Mean ( 74 / 99 )529.7710437710442.41920219388462218.985847942030
Winsorized Mean ( 75 / 99 )530.0235690235692.36412744737146224.194160772877
Winsorized Mean ( 76 / 99 )530.2794612794612.34516375300587226.116176578197
Winsorized Mean ( 77 / 99 )530.0202020202022.25399888015125235.14661284332
Winsorized Mean ( 78 / 99 )529.7575757575762.23636948107729236.882849743766
Winsorized Mean ( 79 / 99 )530.0235690235692.21683973545561239.089709800170
Winsorized Mean ( 80 / 99 )530.0235690235692.21683973545561239.089709800170
Winsorized Mean ( 81 / 99 )530.5690235690242.17716966228731243.696682330037
Winsorized Mean ( 82 / 99 )530.5690235690242.13870008938948248.080142793879
Winsorized Mean ( 83 / 99 )531.4074074074072.07894761878524255.613658855876
Winsorized Mean ( 84 / 99 )531.4074074074072.07894761878524255.613658855876
Winsorized Mean ( 85 / 99 )531.4074074074072.03950681274118260.556818975846
Winsorized Mean ( 86 / 99 )531.9865319865321.99910670891602266.112123787026
Winsorized Mean ( 87 / 99 )531.6936026936031.93947666318983274.142820475671
Winsorized Mean ( 88 / 99 )531.6936026936031.93947666318983274.142820475671
Winsorized Mean ( 89 / 99 )531.6936026936031.89885855743708280.006955026307
Winsorized Mean ( 90 / 99 )531.9966329966331.87807138145824283.267525531198
Winsorized Mean ( 91 / 99 )532.303030303031.85720420846356286.61524019666
Winsorized Mean ( 92 / 99 )532.9225589225591.77407525539959300.394561786796
Winsorized Mean ( 93 / 99 )532.9225589225591.73244224025918307.613464124976
Winsorized Mean ( 94 / 99 )533.2390572390571.71159092248726311.545854931365
Winsorized Mean ( 95 / 99 )533.2390572390571.66940134278673319.419329296166
Winsorized Mean ( 96 / 99 )533.2390572390571.66940134278673319.419329296166
Winsorized Mean ( 97 / 99 )532.9124579124581.64783147644903323.402280833262
Winsorized Mean ( 98 / 99 )532.9124579124581.64783147644903323.402280833262
Winsorized Mean ( 99 / 99 )532.9124579124581.60419970168439332.198327523005
Trimmed Mean ( 1 / 99 )526.3898305084753.73785927318998140.826551251952
Trimmed Mean ( 2 / 99 )526.583617747443.70551394843088142.108119163989
Trimmed Mean ( 3 / 99 )526.7491408934713.67632659916373143.281377942127
Trimmed Mean ( 4 / 99 )526.8823529411763.6507466069502144.321808568722
Trimmed Mean ( 5 / 99 )527.0174216027873.62570928289203145.355675395578
Trimmed Mean ( 6 / 99 )527.1438596491233.60102033311609146.387359938334
Trimmed Mean ( 7 / 99 )527.2720848056543.57608899759674147.443781505438
Trimmed Mean ( 8 / 99 )527.3985765124563.55054890861945148.540011723855
Trimmed Mean ( 9 / 99 )527.5089605734773.52800779675040149.520350000178
Trimmed Mean ( 10 / 99 )527.6173285198563.50494160650831150.535269272426
Trimmed Mean ( 11 / 99 )527.7309090909093.48206912698173151.556700871228
Trimmed Mean ( 12 / 99 )527.8278388278393.46144715600627152.487620072997
Trimmed Mean ( 13 / 99 )527.904059040593.44354795076299153.302369122992
Trimmed Mean ( 14 / 99 )527.9739776951673.42657224514762154.082254778907
Trimmed Mean ( 15 / 99 )528.0449438202253.40879521736241154.906619538385
Trimmed Mean ( 16 / 99 )528.1169811320753.3910372178971155.739069552170
Trimmed Mean ( 17 / 99 )528.1863117870723.3729083969944156.596696268935
Trimmed Mean ( 18 / 99 )528.2528735632183.35439260590732157.480931907889
Trimmed Mean ( 19 / 99 )528.3166023166023.33636547302651158.350938045571
Trimmed Mean ( 20 / 99 )528.3852140077823.31787305542982159.254198451945
Trimmed Mean ( 21 / 99 )528.4509803921573.29988733194077160.142128271197
Trimmed Mean ( 22 / 99 )528.5217391304353.28143087800247161.064413294046
Trimmed Mean ( 23 / 99 )528.6015936254983.26289817978957162.003704835064
Trimmed Mean ( 24 / 99 )528.6827309236953.24438071351989162.95335769954
Trimmed Mean ( 25 / 99 )528.7692307692313.22534972508621163.941673256874
Trimmed Mean ( 26 / 99 )528.8448979591843.20792267951383164.855874281649
Trimmed Mean ( 27 / 99 )528.9176954732513.19012425000886165.798462386467
Trimmed Mean ( 28 / 99 )528.9917012448133.17238141818130166.749085785554
Trimmed Mean ( 29 / 99 )529.0753138075313.15459263086442167.715890993682
Trimmed Mean ( 30 / 99 )529.156118143463.13641670852554168.713588569110
Trimmed Mean ( 31 / 99 )529.2425531914893.11772170999826169.752980676324
Trimmed Mean ( 32 / 99 )529.3261802575113.09860044905231170.827503887893
Trimmed Mean ( 33 / 99 )529.3982683982683.08124310746219171.813209777627
Trimmed Mean ( 34 / 99 )529.4716157205243.06292402634644172.864756411244
Trimmed Mean ( 35 / 99 )529.5374449339213.04584169098252173.855866016170
Trimmed Mean ( 36 / 99 )529.6044444444443.02779385462457174.914300600598
Trimmed Mean ( 37 / 99 )529.6636771300453.01102143239642175.908305212060
Trimmed Mean ( 38 / 99 )529.728506787332.994887012725176.877626613813
Trimmed Mean ( 39 / 99 )529.7990867579912.97830944856437177.885842927896
Trimmed Mean ( 40 / 99 )529.8755760368662.96126080445350178.935801682843
Trimmed Mean ( 41 / 99 )529.9534883720932.94434920454248179.990025488312
Trimmed Mean ( 42 / 99 )530.0328638497652.92641911275192181.119943326005
Trimmed Mean ( 43 / 99 )530.1042654028442.90872859033161182.246039443098
Trimmed Mean ( 44 / 99 )530.1770334928232.89236287736717183.302391840759
Trimmed Mean ( 45 / 99 )530.2463768115942.87684145427372184.315467237126
Trimmed Mean ( 46 / 99 )530.3170731707322.86154432460200185.325479186659
Trimmed Mean ( 47 / 99 )530.3891625615762.84525999982528186.411492304445
Trimmed Mean ( 48 / 99 )530.4577114427862.82862012378090187.532326091827
Trimmed Mean ( 49 / 99 )530.5175879396992.81356330679647188.557188906386
Trimmed Mean ( 50 / 99 )530.5786802030462.79750128281479189.661639643356
Trimmed Mean ( 51 / 99 )530.6358974358972.78108271370697190.801911363722
Trimmed Mean ( 52 / 99 )530.6943005181352.76356250780135192.032674860807
Trimmed Mean ( 53 / 99 )530.7539267015712.74624137316134193.265578142023
Trimmed Mean ( 54 / 99 )530.8148148148152.72913429471827194.49933843201
Trimmed Mean ( 55 / 99 )530.8716577540112.71161439345109195.776972948712
Trimmed Mean ( 56 / 99 )530.9243243243242.69365654126423197.101715155988
Trimmed Mean ( 57 / 99 )530.9243243243242.67512180497651198.467345799601
Trimmed Mean ( 58 / 99 )531.0497237569062.65596698101492199.945905786064
Trimmed Mean ( 59 / 99 )531.1173184357542.63544960806445201.528163092377
Trimmed Mean ( 60 / 99 )531.1864406779662.61505193908649203.126535553066
Trimmed Mean ( 61 / 99 )531.2571428571432.59317931023334204.867106860165
Trimmed Mean ( 62 / 99 )531.3294797687862.57137799596457206.632195111973
Trimmed Mean ( 63 / 99 )531.3918128654972.54981837335872208.403790018003
Trimmed Mean ( 64 / 99 )531.4556213017752.53005265276148210.057138819505
Trimmed Mean ( 65 / 99 )531.514970059882.50971499991758211.782999295672
Trimmed Mean ( 66 / 99 )531.5575757575762.49062323588202213.423519101368
Trimmed Mean ( 67 / 99 )531.6134969325152.47167281186899215.082471425709
Trimmed Mean ( 68 / 99 )531.6708074534162.45121304102233216.901101028604
Trimmed Mean ( 69 / 99 )531.7232704402522.43012224888985218.805152984859
Trimmed Mean ( 70 / 99 )531.8025477707012.41073595472707220.597592501958
Trimmed Mean ( 71 / 99 )531.8580645161292.39386239904502222.175704304601
Trimmed Mean ( 72 / 99 )531.9150326797392.37553875106114223.913431192034
Trimmed Mean ( 73 / 99 )531.9668874172192.3566994771244225.725381017318
Trimmed Mean ( 74 / 99 )532.0268456375842.33714914507243227.639235929505
Trimmed Mean ( 75 / 99 )532.088435374152.31588706184948229.755778742173
Trimmed Mean ( 76 / 99 )532.1448275862072.29602728930895231.767640595582
Trimmed Mean ( 77 / 99 )532.1958041958042.27554409535355233.876287118539
Trimmed Mean ( 78 / 99 )532.2553191489362.25852890441745235.664603675384
Trimmed Mean ( 79 / 99 )532.3237410071942.24087058361465237.552201764605
Trimmed Mean ( 80 / 99 )532.3868613138692.2227368393533239.518620417865
Trimmed Mean ( 81 / 99 )532.4518518518522.20283546404387241.712039116349
Trimmed Mean ( 82 / 99 )532.5037593984962.18357818211128243.867503238938
Trimmed Mean ( 83 / 99 )532.5572519083972.16482205456529246.005093483463
Trimmed Mean ( 84 / 99 )532.5891472868222.14806261871982247.939302441857
Trimmed Mean ( 85 / 99 )532.5891472868222.12953616456677250.09631493869
Trimmed Mean ( 86 / 99 )532.6562.11162997736117252.248739462224
Trimmed Mean ( 87 / 99 )532.6747967479672.09451139890139254.319359172438
Trimmed Mean ( 88 / 99 )532.7024793388432.07940327807069256.180455689718
Trimmed Mean ( 89 / 99 )532.7310924369752.06253527733696258.289445174877
Trimmed Mean ( 90 / 99 )532.7606837606842.04649209881189260.328727420928
Trimmed Mean ( 91 / 99 )532.7826086956522.03001063783724262.453111705501
Trimmed Mean ( 92 / 99 )532.7964601769912.01304058047528264.672488644615
Trimmed Mean ( 93 / 99 )532.7927927927931.99992289438252266.406667121681
Trimmed Mean ( 94 / 99 )532.7889908256881.98798948028316268.003928647449
Trimmed Mean ( 95 / 99 )532.7757009345791.97584194809371269.644898190668
Trimmed Mean ( 96 / 99 )532.7619047619051.96501096612268271.124138209335
Trimmed Mean ( 97 / 99 )532.7475728155341.95249689783029272.854504100646
Trimmed Mean ( 98 / 99 )532.7425742574261.93976896987870274.642280874686
Trimmed Mean ( 99 / 99 )532.7373737373741.92508561351815276.734380017407
Median532
Midrange500.5
Midmean - Weighted Average at Xnp530.966666666667
Midmean - Weighted Average at X(n+1)p531.598684210526
Midmean - Empirical Distribution Function531.598684210526
Midmean - Empirical Distribution Function - Averaging531.598684210526
Midmean - Empirical Distribution Function - Interpolation531.598684210526
Midmean - Closest Observation531.598684210526
Midmean - True Basic - Statistics Graphics Toolkit531.598684210526
Midmean - MS Excel (old versions)531.598684210526
Number of observations297
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/7afc5evunhgwhsy1192983065/1c4xs1192983300.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/7afc5evunhgwhsy1192983065/1c4xs1192983300.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/7afc5evunhgwhsy1192983065/22saa1192983300.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/7afc5evunhgwhsy1192983065/22saa1192983300.ps (open in new window)


 
Parameters:
 
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:

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