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:18:53 -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/o1pu9pczpb714hz1192983270.htm/, Retrieved Sun, 21 Oct 2007 18:14:32 +0200
 
User-defined keywords:
werkloosheid onder 25
 
Dataseries X:
» Textbox « » Textfile « » CSV «
221 213 203 195 185 183 230 250 251 244 232 225 217 206 193 180 173 169 215 239 237 230 224 213 214 197 186 177 169 159 203 217 216 206 197 195 189 175 163 153 146 144 184 194 195 196 184 185 179 163 153 143 135 132 171 177 177 171 162 158 151 139 127 117 109 109 149 157 153 145 138 134 129 116 109 97 90 89 125 136 132 125 118 115 111 101 92 85 79 81 120 128 129 124 118 117 114 109 101 95 89 90 128 139 139 135 129 128 125 117 109 104 98 100 135 146 145 140 136 139 137 131 124 119 114 116 155 167 169 163 159 158 155 147 137 129 121 119 153 166 165 158 150 147 143 138 130 124 116 114 151 164 164 160 152 151 150 143 134 128 120 119 155 169 167 158 150 146 142 136 130 124 116 116 148 160 163 151 141 139 134 130 123 117 110 105 137 160 155 142 132 131 128 123 118 112 105 102 131 149 145 132 122 119 116 111 104 100 93 91 119 139 134 124 113 109 109 106 101 98 93 91 122 139 140 132 117 114 113 110 107 103 98 98 137 148 147 139 130 128 127 123 118 114 108 111 151 159 158 148 138 137 136 133 126 120 114 116 153 162 161 149 139 135 130 127 122 117 112 113 149 157 157 147 137 132 125 123 117 114 111 112 144 150 149 134 123 116 117 111 105 102 95 93 124 130 124
 
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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean140.8686868686871.9670709165101671.6134256707971
Geometric Mean137.155715072968
Harmonic Mean133.737557471298
Quadratic Mean144.876912809874
Winsorized Mean ( 1 / 99 )140.8720538720541.9657325121670371.663897809146
Winsorized Mean ( 2 / 99 )140.8585858585861.9556579491291372.0261873612977
Winsorized Mean ( 3 / 99 )140.8484848484851.9430775444464872.4873205657925
Winsorized Mean ( 4 / 99 )140.8215488215491.9385216787831172.6437833338796
Winsorized Mean ( 5 / 99 )140.7542087542091.9232091604471373.1871559521298
Winsorized Mean ( 6 / 99 )140.7138047138051.9167918076889673.4111050294299
Winsorized Mean ( 7 / 99 )140.7373737373741.9147042593938373.5034525811987
Winsorized Mean ( 8 / 99 )140.6026936026941.8939580387551574.2374913940057
Winsorized Mean ( 9 / 99 )140.6026936026941.8867552240111874.5208980016902
Winsorized Mean ( 10 / 99 )140.5353535353541.8689546848984275.194628671798
Winsorized Mean ( 11 / 99 )140.3872053872051.8478025533933975.9752199332075
Winsorized Mean ( 12 / 99 )140.3872053872051.8478025533933975.9752199332075
Winsorized Mean ( 13 / 99 )140.4309764309761.8342353618704176.5610451909379
Winsorized Mean ( 14 / 99 )140.3838383838381.8277041194017476.808842795512
Winsorized Mean ( 15 / 99 )140.4343434343431.8124319477466277.4839262842086
Winsorized Mean ( 16 / 99 )140.4343434343431.8007458240930577.9867661251269
Winsorized Mean ( 17 / 99 )140.4343434343431.8007458240930577.9867661251269
Winsorized Mean ( 18 / 99 )140.0101010101011.7447351014992580.2471967749088
Winsorized Mean ( 19 / 99 )140.0101010101011.7447351014992580.2471967749088
Winsorized Mean ( 20 / 99 )139.9427609427611.7084312175602981.9130202634702
Winsorized Mean ( 21 / 99 )139.9427609427611.7084312175602981.9130202634702
Winsorized Mean ( 22 / 99 )139.5723905723911.6486905737315484.656510321698
Winsorized Mean ( 23 / 99 )139.5723905723911.6486905737315484.656510321698
Winsorized Mean ( 24 / 99 )139.4915824915831.6392303198309785.0957798938017
Winsorized Mean ( 25 / 99 )139.4915824915831.6228411776851785.9551657978965
Winsorized Mean ( 26 / 99 )139.4915824915831.6228411776851785.9551657978965
Winsorized Mean ( 27 / 99 )139.5824915824921.6158166558247286.3851050670401
Winsorized Mean ( 28 / 99 )139.5824915824921.5977785851842987.3603469697223
Winsorized Mean ( 29 / 99 )139.4848484848481.5865976444813987.9144431923328
Winsorized Mean ( 30 / 99 )139.1818181818181.5337757889111490.7445659190033
Winsorized Mean ( 31 / 99 )138.8686868686871.4999692067238492.5810251611746
Winsorized Mean ( 32 / 99 )138.7609427609431.4885969139824593.2159280041195
Winsorized Mean ( 33 / 99 )138.8720538720541.4801717421281293.8215815905191
Winsorized Mean ( 34 / 99 )138.8720538720541.4596490420171395.1407152503884
Winsorized Mean ( 35 / 99 )138.9898989898991.4510507867926095.78568872639
Winsorized Mean ( 36 / 99 )138.9898989898991.4297284093233897.2141968247496
Winsorized Mean ( 37 / 99 )138.6161616161621.3915109391874999.615574489914
Winsorized Mean ( 38 / 99 )138.4882154882161.37873248873101100.446037661505
Winsorized Mean ( 39 / 99 )138.2255892255891.35298060901403102.163762218528
Winsorized Mean ( 40 / 99 )138.2255892255891.35298060901403102.163762218528
Winsorized Mean ( 41 / 99 )138.2255892255891.35298060901403102.163762218528
Winsorized Mean ( 42 / 99 )137.9427609427611.32593337483322104.034458714874
Winsorized Mean ( 43 / 99 )137.7979797979801.28827725310602106.962984455210
Winsorized Mean ( 44 / 99 )137.5016835016831.26130455285956109.015450067113
Winsorized Mean ( 45 / 99 )137.6531986531991.25026741821127110.099004939388
Winsorized Mean ( 46 / 99 )137.3434343434341.22276020766361112.322459859782
Winsorized Mean ( 47 / 99 )137.3434343434341.22276020766361112.322459859782
Winsorized Mean ( 48 / 99 )137.3434343434341.22276020766361112.322459859782
Winsorized Mean ( 49 / 99 )137.3434343434341.22276020766361112.322459859782
Winsorized Mean ( 50 / 99 )137.1750841750841.18148469461797116.103987465906
Winsorized Mean ( 51 / 99 )137.1750841750841.18148469461797116.103987465906
Winsorized Mean ( 52 / 99 )1371.16666666666667117.428571428571
Winsorized Mean ( 53 / 99 )1371.13894964647534120.286265880119
Winsorized Mean ( 54 / 99 )136.8181818181821.12397101007662121.727500613077
Winsorized Mean ( 55 / 99 )136.8181818181821.12397101007662121.727500613077
Winsorized Mean ( 56 / 99 )136.8181818181821.09526744121816124.917601554933
Winsorized Mean ( 57 / 99 )136.8181818181821.09526744121816124.917601554933
Winsorized Mean ( 58 / 99 )136.8181818181821.09526744121816124.917601554933
Winsorized Mean ( 59 / 99 )136.8181818181821.09526744121816124.917601554933
Winsorized Mean ( 60 / 99 )136.6161616161621.07908163360931126.604102378435
Winsorized Mean ( 61 / 99 )136.6161616161621.07908163360931126.604102378435
Winsorized Mean ( 62 / 99 )136.4074074074071.06262470270594128.368376022174
Winsorized Mean ( 63 / 99 )136.4074074074071.03113611752829132.288458418454
Winsorized Mean ( 64 / 99 )136.6228956228961.01619073094925134.446114751778
Winsorized Mean ( 65 / 99 )136.6228956228961.01619073094925134.446114751778
Winsorized Mean ( 66 / 99 )136.4006734006730.999062941758313136.528608658643
Winsorized Mean ( 67 / 99 )136.4006734006730.999062941758313136.528608658643
Winsorized Mean ( 68 / 99 )136.4006734006730.999062941758313136.528608658643
Winsorized Mean ( 69 / 99 )136.1683501683500.981455023980067138.741304330127
Winsorized Mean ( 70 / 99 )136.1683501683500.981455023980067138.741304330127
Winsorized Mean ( 71 / 99 )136.1683501683500.981455023980067138.741304330127
Winsorized Mean ( 72 / 99 )136.4107744107740.964799786821119141.387649825493
Winsorized Mean ( 73 / 99 )136.4107744107740.964799786821119141.387649825493
Winsorized Mean ( 74 / 99 )136.1616161616160.946110539366786143.917238521354
Winsorized Mean ( 75 / 99 )136.1616161616160.946110539366786143.917238521354
Winsorized Mean ( 76 / 99 )136.1616161616160.946110539366786143.917238521354
Winsorized Mean ( 77 / 99 )135.6430976430980.9081370985133149.364118991678
Winsorized Mean ( 78 / 99 )135.6430976430980.9081370985133149.364118991678
Winsorized Mean ( 79 / 99 )135.6430976430980.9081370985133149.364118991678
Winsorized Mean ( 80 / 99 )135.9124579124580.889633295732017152.773573746051
Winsorized Mean ( 81 / 99 )135.3670033670030.850752937391871159.114353201053
Winsorized Mean ( 82 / 99 )135.3670033670030.850752937391871159.114353201053
Winsorized Mean ( 83 / 99 )135.3670033670030.850752937391871159.114353201053
Winsorized Mean ( 84 / 99 )135.6498316498320.8314309605248163.152249663892
Winsorized Mean ( 85 / 99 )135.6498316498320.8314309605248163.152249663892
Winsorized Mean ( 86 / 99 )135.3602693602690.811188504714947166.866601996333
Winsorized Mean ( 87 / 99 )135.067340067340.79107035460001170.739984480438
Winsorized Mean ( 88 / 99 )135.067340067340.79107035460001170.739984480438
Winsorized Mean ( 89 / 99 )135.3670033670030.770693798255356175.643042247697
Winsorized Mean ( 90 / 99 )135.3670033670030.770693798255356175.643042247697
Winsorized Mean ( 91 / 99 )135.3670033670030.770693798255356175.643042247697
Winsorized Mean ( 92 / 99 )135.3670033670030.728820188989853185.734431361764
Winsorized Mean ( 93 / 99 )135.6801346801350.708172628705172191.591893248138
Winsorized Mean ( 94 / 99 )135.6801346801350.708172628705172191.591893248138
Winsorized Mean ( 95 / 99 )135.6801346801350.708172628705172191.591893248138
Winsorized Mean ( 96 / 99 )135.6801346801350.665237110419385203.957555216061
Winsorized Mean ( 97 / 99 )135.6801346801350.665237110419385203.957555216061
Winsorized Mean ( 98 / 99 )135.6801346801350.665237110419385203.957555216061
Winsorized Mean ( 99 / 99 )135.6801346801350.665237110419385203.957555216061
Trimmed Mean ( 1 / 99 )140.7050847457631.9333985635280572.7760366641656
Trimmed Mean ( 2 / 99 )140.5358361774741.8994576914789073.9873474454986
Trimmed Mean ( 3 / 99 )140.3711340206191.8693044950584175.0927066145169
Trimmed Mean ( 4 / 99 )140.2076124567471.8423468504064276.1027232335853
Trimmed Mean ( 5 / 99 )140.0487804878051.8153850495182377.1454962268039
Trimmed Mean ( 6 / 99 )139.9017543859651.7907086926624578.1264730322815
Trimmed Mean ( 7 / 99 )139.7597173144881.7661284901127779.1333802137826
Trimmed Mean ( 8 / 99 )139.6120996441281.7407052856455880.2043291276329
Trimmed Mean ( 9 / 99 )139.4802867383511.7173227150609681.2196132474731
Trimmed Mean ( 10 / 99 )139.3465703971121.6938197636238782.2676493625181
Trimmed Mean ( 11 / 99 )139.2181818181821.6715064354193983.2890492481122
Trimmed Mean ( 12 / 99 )139.1025641025641.6506983702119884.2689170915584
Trimmed Mean ( 13 / 99 )138.9852398523991.6288700762458685.3261668191027
Trimmed Mean ( 14 / 99 )138.8624535315991.6073969989048486.3896433962542
Trimmed Mean ( 15 / 99 )138.7415730337081.5855236974640887.5052030162743
Trimmed Mean ( 16 / 99 )138.6150943396231.5640085153590288.6280943987083
Trimmed Mean ( 17 / 99 )138.4866920152091.5424775463955789.7819824598563
Trimmed Mean ( 18 / 99 )138.3563218390801.5198260544916591.0343137164848
Trimmed Mean ( 19 / 99 )138.2509652509651.5009534111418992.1087651520024
Trimmed Mean ( 20 / 99 )138.1439688715951.4811132279353593.2703633092019
Trimmed Mean ( 21 / 99 )138.0392156862751.4631683536252694.3426744736913
Trimmed Mean ( 22 / 99 )137.9328063241111.4442928485649795.5019658659658
Trimmed Mean ( 23 / 99 )137.8446215139441.4290048371249896.4619698497831
Trimmed Mean ( 24 / 99 )137.7550200803211.4129308184118297.4959412628304
Trimmed Mean ( 25 / 99 )137.6680161943321.3967119982923698.5657861911737
Trimmed Mean ( 26 / 99 )137.5795918367351.3807796075078799.6390670087081
Trimmed Mean ( 27 / 99 )137.4897119341561.36400247161597100.798726391799
Trimmed Mean ( 28 / 99 )137.3941908713691.34676981429546102.017575247812
Trimmed Mean ( 29 / 99 )137.2970711297071.32979733677337103.246613098840
Trimmed Mean ( 30 / 99 )137.2025316455701.31265439000965104.522967118985
Trimmed Mean ( 31 / 99 )137.1191489361701.29803706931323105.635772797088
Trimmed Mean ( 32 / 99 )137.0472103004291.28479744214527106.668339930376
Trimmed Mean ( 33 / 99 )136.9783549783551.27155158620499107.725362041484
Trimmed Mean ( 34 / 99 )136.9039301310041.25805370321813108.822007980106
Trimmed Mean ( 35 / 99 )136.8281938325991.24502283495778109.900148005911
Trimmed Mean ( 36 / 99 )136.7466666666671.23172804151483111.020178203047
Trimmed Mean ( 37 / 99 )136.6636771300451.21891540840652112.11908241336
Trimmed Mean ( 38 / 99 )136.5927601809951.20765885490783113.105418492890
Trimmed Mean ( 39 / 99 )136.5251141552511.19650507526164114.103247013305
Trimmed Mean ( 40 / 99 )136.4654377880181.18619806760683115.044393946231
Trimmed Mean ( 41 / 99 )136.4046511627911.17528888501661116.060530225182
Trimmed Mean ( 42 / 99 )136.3427230046951.16373644542443117.159450957101
Trimmed Mean ( 43 / 99 )136.2890995260661.15305140027833118.198633203314
Trimmed Mean ( 44 / 99 )136.2392344497611.14378549899066119.112573616281
Trimmed Mean ( 45 / 99 )136.1980676328501.13543782817646119.952025776336
Trimmed Mean ( 46 / 99 )136.1512195121951.12712217814861120.795440061196
Trimmed Mean ( 47 / 99 )136.1133004926111.11976555515831121.555177211508
Trimmed Mean ( 48 / 99 )136.0746268656721.11194196801103122.375655187359
Trimmed Mean ( 49 / 99 )136.0351758793971.10362022883004123.262669825841
Trimmed Mean ( 50 / 99 )135.9949238578681.09476631481476124.222788021094
Trimmed Mean ( 51 / 99 )135.9589743589741.08749739739628125.020045734814
Trimmed Mean ( 52 / 99 )135.9222797927461.07974654747371125.883504893593
Trimmed Mean ( 53 / 99 )135.8900523560211.07226734711758126.731502848906
Trimmed Mean ( 54 / 99 )135.8571428571431.06568500686686127.483395169991
Trimmed Mean ( 55 / 99 )135.8288770053481.05942305451886128.210233320847
Trimmed Mean ( 56 / 99 )135.81.05271737234642128.999486060834
Trimmed Mean ( 57 / 99 )135.81.04697166265152129.707426518190
Trimmed Mean ( 58 / 99 )135.7403314917131.0408004955711130.419164930576
Trimmed Mean ( 59 / 99 )135.7094972067041.03417368818572131.225053157930
Trimmed Mean ( 60 / 99 )135.6779661016951.02705823370804132.103479285542
Trimmed Mean ( 61 / 99 )135.6514285714291.02028260264321132.95476000473
Trimmed Mean ( 62 / 99 )135.6242774566471.01299822960521133.884022195679
Trimmed Mean ( 63 / 99 )135.6023391812871.00605253077526134.786539502855
Trimmed Mean ( 64 / 99 )135.5798816568051.00019671912700135.553215746541
Trimmed Mean ( 65 / 99 )135.5508982035930.994598306120164136.287079285671
Trimmed Mean ( 66 / 99 )135.5212121212120.988536955580819137.092711968048
Trimmed Mean ( 67 / 99 )135.4969325153370.982902163167436137.853936630574
Trimmed Mean ( 68 / 99 )135.4720496894410.976790524717104138.690994907712
Trimmed Mean ( 69 / 99 )135.4465408805030.970164252462849139.611968320478
Trimmed Mean ( 70 / 99 )135.4267515923570.96395955092204140.490077060619
Trimmed Mean ( 71 / 99 )135.4064516129030.95722055984177141.457943230227
Trimmed Mean ( 72 / 99 )135.3856209150330.949902869358164142.525752139807
Trimmed Mean ( 73 / 99 )135.3576158940400.942840776758645143.563599740966
Trimmed Mean ( 74 / 99 )135.3288590604030.935157034327293144.712443036641
Trimmed Mean ( 75 / 99 )135.3061224489800.927911966385134145.817844095805
Trimmed Mean ( 76 / 99 )135.2827586206900.920014963660786147.044085111826
Trimmed Mean ( 77 / 99 )135.2587412587410.91140671330442148.406566776696
Trimmed Mean ( 78 / 99 )135.2482269503550.9043492809318149.553087288355
Trimmed Mean ( 79 / 99 )135.2374100719420.896626675167155150.829117421396
Trimmed Mean ( 80 / 99 )135.2262773722630.88817627495798152.251620747988
Trimmed Mean ( 81 / 99 )135.2074074074070.880040723233343153.637671346212
Trimmed Mean ( 82 / 99 )135.2030075187970.873573399968691154.770059989971
Trimmed Mean ( 83 / 99 )135.1984732824430.866443642547449156.038392624064
Trimmed Mean ( 84 / 99 )135.1937984496120.858586187970052157.460951904258
Trimmed Mean ( 85 / 99 )135.1937984496120.851153104707593158.836051589164
Trimmed Mean ( 86 / 99 )135.1680.842939250862813160.353192548152
Trimmed Mean ( 87 / 99 )135.1626016260160.835246955202377161.823519121081
Trimmed Mean ( 88 / 99 )135.1652892561980.828083777205756163.226587667607
Trimmed Mean ( 89 / 99 )135.1680672268910.820121484337237164.814688809334
Trimmed Mean ( 90 / 99 )135.1623931623930.812693765234045166.314052038369
Trimmed Mean ( 91 / 99 )135.1565217391300.80441111343164168.019212418074
Trimmed Mean ( 92 / 99 )135.1504424778760.795175604064084169.963014190994
Trimmed Mean ( 93 / 99 )135.1441441441440.787998308662428171.503089103759
Trimmed Mean ( 94 / 99 )135.1284403669720.781420867681677172.926582787419
Trimmed Mean ( 95 / 99 )135.1121495327100.773996253061854174.564345755189
Trimmed Mean ( 96 / 99 )135.0952380952380.765621657145883176.451693645726
Trimmed Mean ( 97 / 99 )135.0776699029130.759568610270358177.83471838684
Trimmed Mean ( 98 / 99 )135.0594059405940.752661519414649179.442421934405
Trimmed Mean ( 99 / 99 )135.0404040404040.744791464288559181.313039307449
Median135
Midrange165
Midmean - Weighted Average at Xnp135.086092715232
Midmean - Weighted Average at X(n+1)p135.086092715232
Midmean - Empirical Distribution Function135.086092715232
Midmean - Empirical Distribution Function - Averaging135.086092715232
Midmean - Empirical Distribution Function - Interpolation135.086092715232
Midmean - Closest Observation135.086092715232
Midmean - True Basic - Statistics Graphics Toolkit135.086092715232
Midmean - MS Excel (old versions)135.086092715232
Number of observations297
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/o1pu9pczpb714hz1192983270/1ca1z1192983530.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/o1pu9pczpb714hz1192983270/1ca1z1192983530.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/o1pu9pczpb714hz1192983270/2x0n61192983530.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Oct/21/o1pu9pczpb714hz1192983270/2x0n61192983530.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