Home » date » 2008 » Nov » 29 »

Verbetering seatbelt case Q2

*The author of this computation has been verified*
R Software Module: rwasp_centraltendency.wasp (opens new window with default values)
Title produced by software: Central Tendency
Date of computation: Sat, 29 Nov 2008 04:05:22 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/29/t1227956784m3ny5uhbqwq44ex.htm/, Retrieved Sat, 29 Nov 2008 11:06:24 +0000
 
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/2008/Nov/29/t1227956784m3ny5uhbqwq44ex.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-183923544514060,0000 -177072609114252,0000 -228635109114254,0000 -237447609114242,0000 -127760109114251,0000 -193010109114250,0000 -220635109114248,0000 -164510109114256,0000 -268322609114246,0000 -333697609114249,0000 -342601091142503,0000 -154885109114249,0000 -977452805255622,0000 101105654874272,0000 254315487427317,0000 -432693451257275,0000 -163581845125727,0000 -162831845125727,0000 465431548742728,0000 266681548742733,0000 -107144345125727,0000 424806548742729,0000 76918154874273,0000 196293154874273,0000 20143298346296,0000 122839188627955,0000 -0.278581137204542 429089188627948,0000 875964188627952,0000 843464188627952,0000 57721418862795,0000 173846418862796,0000 -185966081137205,0000 476589188627952,0000 890964188627953,0000 -685285811372049,0000 272611247451482,0000 146462182851318,0000 162899682851318,0000 100871828513171,0000 279774682851318,0000 212524682851317,0000 248899682851317,0000 -419753171486821,0000 -578781714868267,0000 528371828513174,0000 274274682851318,0000 414649682851317,0000 310789511440004,0000 36264044683984,0000 260779468398400,0000 403265446839839,0000 32795294683984,0000 193702946839840,0000 31707794683984,0000 20220294683984,0000 32139044683984,0000 178015446839840,0000 164529468398398,0000 -681720531601603,0000 -157032224571473,0000 -761812891716376,0000 -817437891716377,0000 -134556289171638,0000 771312108283621,0000 199881210828362,0000 105256210828362,0000 198381210828362,0000 262568710828362,0000 196193710828362,0000 116312108283621,0000 -145993789171638,0000 -166853960582951,0000 -202003025183115,0000 434344748168846,0000 -113378025183116,0000 -113690525183116,0000 -155940525183116,0000 -210565525183116,0000 -124440525183115,0000 -642530251831158,0000 -298628025183116,0000 -154190525183116,0000 231844748168843,0000 -249675696594429,0000 118175238805407,0000 -180387261194593,0000 -791997611945937,0000 -815122611945933,0000 -246762261194593,0000 -105387261194593,0000 -319262261194593,0000 -720747611945935,0000 -904497611945934,0000 -800122611945933,0000 119362738805407,0000 -534974326059064,0000 -114646497206071,0000 -155208997206071,0000 -500214972060714,0000 -196333997206071,0000 -145839972060711,0000 -822089972060712,0000 179160027939294,0000 -162896497206071,0000 -132271497206071,0000 -168339972060710,0000 815410027939288,0000 275680831382616,0000 -324682332175485,0000 179692667824515,0000 271567667824508,0000 -123155733217549,0000 108594266782451,0000 679692667824511,0000 340942667824517,0000 -137182332175489,0000 -113093233217549,0000 543442667824512,0000 149719266782451,0000 153859095371138,0000 -282899692290262,0000 238147530770974,0000 503350307709731,0000 802253077097358,0000 -612274692290265,0000 -140852469229027,0000 -287274692290261,0000 946003077097336,0000 -121914969229026,0000 415225307709736,0000 115897530770973,0000 270373593596605,0000 -91111705240504,0000 332579475949605,0000 -294867052405046,0000 -737992052405041,0000 509507947594957,0000 -866742052405044,0000 -954920524050376,0000 -663617052405043,0000 732632947594957,0000 -216299205240504,0000 -128924205240504,0000 -142784376651817,0000 270665587480184,0000 605040587480183,0000 356915587480177,0000 163790587480182,0000 -64870941251982,0000 115504058748018,0000 -303709412519815,0000 87816558748018,0000 205441558748018,0000 -641209412519819,0000 -322745941251982,0000 -139606112663295,0000 352448227365406,0000 -431767726345942,0000 178698227365400,0000 255732273654045,0000 129307322736540,0000 -163176772634598,0000 164807322736541,0000 219948227365402,0000 138619822736540,0000 870573227365404,0000 514323227365403,0000 -804278486747727,0000 -105191879672279,0000 524562032772056,0000 684331203277199,0000 -0.879379672279542 -105129379672280,0000 -827543796722797,0000 -132629379672279,0000 102558120327720,0000 231831203277203,0000 -180379379672280,0000 -26700437967228,0000 301354489164073,0000 23986384316243,0000 904238843162428,0000 316113843162422,0000 812988843162427,0000 250488843162426,0000 -135761156837575,0000 33548884316243,0000 140736384316242,0000 132361384316243,0000 947988843162427,0000 417388431624253,0000
 
Output produced by software:


Summary of computational 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 Mean9553976186712.729637752726055.30.322358320316019
Geometric MeanNaN
Harmonic Mean-40.6195863705367
Quadratic Mean409713300139596
Winsorized Mean ( 1 / 64 )9660989286401.01296158025273810.326210619397163
Winsorized Mean ( 2 / 64 )9751183850666.9929457748962279.50.331022708597093
Winsorized Mean ( 3 / 64 )10133697991392.229330852774278.10.345496193696728
Winsorized Mean ( 4 / 64 )10637828318105.729156631773913.70.364851070610403
Winsorized Mean ( 5 / 64 )10639465385802.029113546452821.80.365447246457697
Winsorized Mean ( 6 / 64 )9937685436017.0528962456352845.00.343123018122076
Winsorized Mean ( 7 / 64 )8999288735873.6228797779774439.40.312499394271404
Winsorized Mean ( 8 / 64 )9350244586762.9928715629572609.50.325615169366920
Winsorized Mean ( 9 / 64 )9041812183796.9728613369798426.80.315999557112428
Winsorized Mean ( 10 / 64 )7853480474747.9628320064497573.10.277311532091354
Winsorized Mean ( 11 / 64 )7366819823445.1927758739486165.10.265387404464702
Winsorized Mean ( 12 / 64 )5836763260543.7527139765163413.10.215063145366204
Winsorized Mean ( 13 / 64 )6690288078686.6326932334056955.00.24841100160641
Winsorized Mean ( 14 / 64 )3832663512091.9125881636180673.10.148084282049909
Winsorized Mean ( 15 / 64 )-701136478941.29225278514836938.4-0.0277364585484568
Winsorized Mean ( 16 / 64 )-448416488506.1324926511912375.8-0.0179895402165553
Winsorized Mean ( 17 / 64 )1081318314395.1124631250579453.30.0439002603991662
Winsorized Mean ( 18 / 64 )245258992959.42724508182870699.00.0100072287796028
Winsorized Mean ( 19 / 64 )2632078621725.3224068017701134.90.109360008556135
Winsorized Mean ( 20 / 64 )5479509615139.0723537013855804.00.232803942280378
Winsorized Mean ( 21 / 64 )7343945366576.0722603295012584.70.324905964483817
Winsorized Mean ( 22 / 64 )10048308442038.421972045930979.00.457322384706608
Winsorized Mean ( 23 / 64 )14412884302870.820619451960953.90.698994538272102
Winsorized Mean ( 24 / 64 )13871654974175.220536514772569.90.675462955997928
Winsorized Mean ( 25 / 64 )14878414736402.020300972273070.50.73289173229099
Winsorized Mean ( 26 / 64 )24321555589901.419080390917558.71.27468853730452
Winsorized Mean ( 27 / 64 )25269418449645.718922364503253.21.33542604811895
Winsorized Mean ( 28 / 64 )26500201044696187836540640151.41081181299351
Winsorized Mean ( 29 / 64 )25073182776199.818570305073848.21.35017613746741
Winsorized Mean ( 30 / 64 )18375342260219.617768690229724.21.03414162904819
Winsorized Mean ( 31 / 64 )20165186767304.117449812210565.11.15561053173368
Winsorized Mean ( 32 / 64 )19094491399939.117178002624658.41.11156645025363
Winsorized Mean ( 33 / 64 )18303484992669.316975313281963.21.07824136666257
Winsorized Mean ( 34 / 64 )16732176290265.516566496432389.41.01000089901642
Winsorized Mean ( 35 / 64 )16559121028366.216398552677091.21.00979161725043
Winsorized Mean ( 36 / 64 )17523257447132.215974440824774.81.09695592098318
Winsorized Mean ( 37 / 64 )16958064372451.415260619660863.31.11123039229798
Winsorized Mean ( 38 / 64 )16724440358821.715135147725957.71.10500674731692
Winsorized Mean ( 39 / 64 )18330855142223.114938503513011.31.22708778200287
Winsorized Mean ( 40 / 64 )19820243600588.114744118379227.51.34428136635908
Winsorized Mean ( 41 / 64 )21305729201079.314574495356938.81.46185021705989
Winsorized Mean ( 42 / 64 )22056878098139.914474647638689.61.52382832720457
Winsorized Mean ( 43 / 64 )23275589064149.214358659130077.61.62101411094808
Winsorized Mean ( 44 / 64 )24391735035137.114116478362046.31.72789093777929
Winsorized Mean ( 45 / 64 )24756467081076.113919018028066.01.77860730054072
Winsorized Mean ( 46 / 64 )25124142604229.813814671348888.11.81865655502922
Winsorized Mean ( 47 / 64 )25612950739315.413562921017105.31.88845387413322
Winsorized Mean ( 48 / 64 )25769388338419.613489848092437.11.91028009817745
Winsorized Mean ( 49 / 64 )25695285805472.913330172022495.81.92760346694026
Winsorized Mean ( 50 / 64 )25283494454223.913293512795795.21.90194231145745
Winsorized Mean ( 51 / 64 )2330581498735912972813871209.11.7965119378674
Winsorized Mean ( 52 / 64 )23963900567949.512635406341744.61.89656746445724
Winsorized Mean ( 53 / 64 )24370362698492.812602447326868.21.93378016716924
Winsorized Mean ( 54 / 64 )21687483948869.212264575507510.11.76830286018371
Winsorized Mean ( 55 / 64 )19826856714986.012064511367024.11.64340321060815
Winsorized Mean ( 56 / 64 )17879091661436.411883349016284.51.50454990734814
Winsorized Mean ( 57 / 64 )16311570140632.511740933061276.11.38929078766586
Winsorized Mean ( 58 / 64 )15877975456569.711702326529802.71.35682211704935
Winsorized Mean ( 59 / 64 )17018508328495.411508152405015.71.47882194548258
Winsorized Mean ( 60 / 64 )17328588123009.811478629424857.41.50963912864754
Winsorized Mean ( 61 / 64 )16769664181863.411395819966405.01.47156275119304
Winsorized Mean ( 62 / 64 )12350100446148.911023802341972.21.1203122174213
Winsorized Mean ( 63 / 64 )12403238336213.810991822568747.11.12840598168677
Winsorized Mean ( 64 / 64 )14981550148741.810764198247414.71.39179433566639
Trimmed Mean ( 1 / 64 )9809617841800.1829075467868090.90.337384694420200
Trimmed Mean ( 2 / 64 )9961408706888.6928497539539964.70.349553290132956
Trimmed Mean ( 3 / 64 )10069911858487.027967349822736.70.360059566684449
Trimmed Mean ( 4 / 64 )10047725377476.527448837403806.90.366052857892005
Trimmed Mean ( 5 / 64 )9892093832695.1426945806559434.60.367110697201662
Trimmed Mean ( 6 / 64 )9732654568032.3526417270125539.40.368420147947957
Trimmed Mean ( 7 / 64 )9695795086147.4625882580984611.20.374606964116608
Trimmed Mean ( 8 / 64 )9804341530345.9925339652781504.20.386916964288569
Trimmed Mean ( 9 / 64 )9866975591529.8524769739963443.60.39834796837157
Trimmed Mean ( 10 / 64 )9969321440550.9824171868733497.00.412434865937182
Trimmed Mean ( 11 / 64 )10208287008453.423570895231595.70.433088642079648
Trimmed Mean ( 12 / 64 )10503504378324.423001909694823.60.456636188806887
Trimmed Mean ( 13 / 64 )10953310751122.622470430658296.10.487454420330774
Trimmed Mean ( 14 / 64 )11337222736632.721922372513023.20.51715309234426
Trimmed Mean ( 15 / 64 )11972529337652.121457967728489.80.557952621102888
Trimmed Mean ( 16 / 64 )12986422602979.521024726426788.30.617673797002805
Trimmed Mean ( 17 / 64 )14006790128915.220595324556871.80.68009562511321
Trimmed Mean ( 18 / 64 )14942570893767.320162749944861.50.741097862872393
Trimmed Mean ( 19 / 64 )15960566523260.519706246246850.20.809924240432729
Trimmed Mean ( 20 / 64 )16846670982088.319257284015094.60.87482071557356
Trimmed Mean ( 21 / 64 )17574169309573.118824575661667.70.93357585453356
Trimmed Mean ( 22 / 64 )18206152255858.618447744461331.60.9869039705109
Trimmed Mean ( 23 / 64 )18693794227294.918099578162529.21.03283038198072
Trimmed Mean ( 24 / 64 )18941962918565.917846708975090.71.06137007921202
Trimmed Mean ( 25 / 64 )19227614070362.517579086020185.31.09377780211578
Trimmed Mean ( 26 / 64 )19466198719539.817308751578734.21.12464487291251
Trimmed Mean ( 27 / 64 )19206380291694.417119058585948.81.12192970164018
Trimmed Mean ( 28 / 64 )18889358688664.216924874762362.11.11607081020598
Trimmed Mean ( 29 / 64 )18499891275988.8167238077768391.10620090369668
Trimmed Mean ( 30 / 64 )18170196404504.916521549194389.41.09978768883703
Trimmed Mean ( 31 / 64 )18160096916223.516365391474673.51.10966468136906
Trimmed Mean ( 32 / 64 )18063076439558.416218725429973.51.1137173828824
Trimmed Mean ( 33 / 64 )1801396144144516078277035563.21.12039128331974
Trimmed Mean ( 34 / 64 )18000376758689.615938805157436.41.12934292005516
Trimmed Mean ( 35 / 64 )18059078419716.015815965869825.51.14182583399285
Trimmed Mean ( 36 / 64 )18127647900463.415692174843542.11.15520302833763
Trimmed Mean ( 37 / 64 )18154964983099.815586691614524.11.16477347676415
Trimmed Mean ( 38 / 64 )18208507601283.515521710825779.91.17309926757823
Trimmed Mean ( 39 / 64 )18274283434744.515456158690562.21.18233021545664
Trimmed Mean ( 40 / 64 )18271796766283.915395075211085.51.18685985717867
Trimmed Mean ( 41 / 64 )18204228177150.615338373095511.01.18684218096626
Trimmed Mean ( 42 / 64 )18069745747928.715284303521493.21.18224201204317
Trimmed Mean ( 43 / 64 )17897793948458.715227710944834.21.17534368844388
Trimmed Mean ( 44 / 64 )17666904712722.415169304485966.71.16464830204090
Trimmed Mean ( 45 / 64 )17379211436897.215118258753374.61.14955113021980
Trimmed Mean ( 46 / 64 )17064448529412.315071687254907.51.13221885783597
Trimmed Mean ( 47 / 64 )16721178506704.915022607666757.81.11306764295693
Trimmed Mean ( 48 / 64 )16342805220210.8149820065330971.09082886755573
Trimmed Mean ( 49 / 64 )15941674023691.314936482641223.81.06729773043710
Trimmed Mean ( 50 / 64 )15526258437599.414892326979927.21.04256765638618
Trimmed Mean ( 51 / 64 )15109949700890.114839533411362.41.01822269488073
Trimmed Mean ( 52 / 64 )14759324447993.014801037726890.20.997181732817194
Trimmed Mean ( 53 / 64 )14364136922270.414778531731215.70.97195967661185
Trimmed Mean ( 54 / 64 )13932601578821.514747798460860.20.944724164477688
Trimmed Mean ( 55 / 64 )13596346516705.614734933275435.50.922728746886961
Trimmed Mean ( 56 / 64 )13324469708053.314729249327122.40.90462652998328
Trimmed Mean ( 57 / 64 )13124266545267.314729575761462.20.89101456537567
Trimmed Mean ( 58 / 64 )12983001011954.714732713289287.40.881236250039223
Trimmed Mean ( 59 / 64 )12853496097377.314728925390274.20.872670324330972
Trimmed Mean ( 60 / 64 )12665246956987.814731575702231.40.859734709510359
Trimmed Mean ( 61 / 64 )12452065646541.114725149208543.90.84563256169357
Trimmed Mean ( 62 / 64 )12252215376825.114713567250182.10.832715490981525
Trimmed Mean ( 63 / 64 )12247622528997.614726353739188.40.831680587463093
Trimmed Mean ( 64 / 64 )12240212252463.514729636531787.60.830992144717773
Median31923419683984
Midrange-14731981046597.5
Midmean - Weighted Average at Xnp14257146597969.4
Midmean - Weighted Average at X(n+1)p16342805220210.8
Midmean - Empirical Distribution Function14257146597969.4
Midmean - Empirical Distribution Function - Averaging16342805220210.8
Midmean - Empirical Distribution Function - Interpolation16342805220210.8
Midmean - Closest Observation14257146597969.4
Midmean - True Basic - Statistics Graphics Toolkit16342805220210.8
Midmean - MS Excel (old versions)16721178506704.9
Number of observations192
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/29/t1227956784m3ny5uhbqwq44ex/1ykug1227956715.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/29/t1227956784m3ny5uhbqwq44ex/1ykug1227956715.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/29/t1227956784m3ny5uhbqwq44ex/2gj731227956715.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/29/t1227956784m3ny5uhbqwq44ex/2gj731227956715.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