Home » date » 2008 » Oct » 26 »

Robustheid error-component

*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: Sun, 26 Oct 2008 10:33:38 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Oct/26/t12250388743x4xq7d8tzh65ly.htm/, Retrieved Sun, 26 Oct 2008 16:34:36 +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/Oct/26/t12250388743x4xq7d8tzh65ly.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:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-0,171742608 -0,166771574 -0,161414962 -0,156036741 -0,150896429 -0,146148477 -0,141861106 -0,138041489 -0,134659209 -0,131664423 -0,129000169 -0,126609769 -0,124440755 -0,122446621 -0,120587352 -0,118829328 -0,117144949 -0,115512116 -0,113913662 -0,112336736 -0,11077218 -0,109213906 -0,107658285 -0,106103586 -0,104549458 -0,102996482 -0,101445791 -0,099898764 -0,098356785 -0,096821068 -0,095292541 -0,093771779 -0,092258981 -0,090753982 -0,089256295 -0,087765174 -0,086279694 -0,084798837 -0,083321583 -0,081847005 -0,080374348 -0,078903103 -0,077433068 -0,075964391 -0,074497596 -0,073033588 -0,071573645 -0,070119386 -0,068672724 -0,067235811 -0,06581096 -0,064400572 -0,063007045 -0,061632691 -0,060279647 -0,058949796 -0,057644694 -0,056365505 -0,055112952 -0,053887281 -0,052688237 -0,051515057 -0,050366484 -0,049240785 -0,048135791 -0,047048946 -0,045977366 -0,044917907 -0,043867232 -0,042821894 -0,041778406 -0,040733318 -0,039683286 -0,038625135 -0,037555919 -0,036472968 -0,035373926 -0,034256782 -0,033119887 -0,031961962 -0,030782094 -0,029579729 -0,028354652 -0,027106954 -0,025837007 -0,024545422 -0,023233011 -0,021900741 -0,020549693 -0,019181022 -0,017795916 -0,016395557 -0,014981093 -0,013553607 -0,012114096 -0,010663457 -0,009202472 -0,007731803 -0,006251996 -0,004763485 -0,0032666 -0,001761583 -0,000248607 0,001272204 0,00280075 0,004336931 0,005880618 0,007431626 0,008989688 0,010554426 0,012125323 0,013701706 0,015282717 0,016867302 0,018454193 0,020041903 0,021628719 0,023212709 0,024791729 0,02636344 0,027925328 0,029474738 0,031008908 0,032525005 0,03402018 0,035491611 0,03693656 0,038352428 0,039736813 0,041087566 0,042402847 0,043681187 0,044921534 0,046123318 0,047286493 0,048411595 0,04949979 0,050552922 0,051573562 0,052565052 0,053531549 0,054478062 0,055410479 0,05633559 0,057261084 0,058195538 0,05914837 0,060129767 0,061150572 0,062222132 0,063356098 0,064564184 0,065857871 0,067248073 0,068744771 0,070356616 0,072090529 0,073951308 0,075941275 0,078059967 0,080303931 0,082666614 0,085138392 0,087706761 0,090356687 0,09307113 0,095831738 0,098619689 0,101416639 0,104205746 0,106972694 0,109706651 0,112401075 0,11505428 0,117669692 0,120255712 0,122825156 0,125394269 0,127981369 0,13060524 0,133283479 0,136031066 0,138859509 0,141776921 0,144789371 0,147903689 0,151131651 0,154494962 0,158029827 0,161789098 0,165839243 0,170249032 0,175067431 0,180290421 0,185820847 0,191432001 0,196753033
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean1.52840761421322e-050.006206152076157620.00246272987747908
Geometric MeanNaN
Harmonic Mean-0.0500561437281806
Quadratic Mean0.0868861304105121
Winsorized Mean ( 1 / 65 )1.35074365482234e-050.006198326188819450.00217920711765511
Winsorized Mean ( 2 / 65 )1.0923253807107e-050.006182114836162520.00176691214844651
Winsorized Mean ( 3 / 65 )8.60541116751227e-060.006158618063324450.00139729580224480
Winsorized Mean ( 4 / 65 )6.92667005076151e-060.006129670205738120.00113002328319023
Winsorized Mean ( 5 / 65 )5.13867512690347e-060.00609711117733410.000842804891930855
Winsorized Mean ( 6 / 65 )1.41020812182862e-060.006062390845938130.000232615837161584
Winsorized Mean ( 7 / 65 )-6.78114213197988e-060.00602645819613327-0.00112522843621994
Winsorized Mean ( 8 / 65 )-2.20904213197969e-050.00598982419536826-0.00368799160030083
Winsorized Mean ( 9 / 65 )-4.67640812182733e-050.00595269502580441-0.0078559511306316
Winsorized Mean ( 10 / 65 )-8.22492081218273e-050.00591510585868512-0.0139049427156170
Winsorized Mean ( 11 / 65 )-0.0001290166294416260.00587702018099917-0.0219527286734093
Winsorized Mean ( 12 / 65 )-0.0001865985989847720.00583838586359167-0.0319606486012522
Winsorized Mean ( 13 / 65 )-0.000253797116751270.00579915454862621-0.0437645030190467
Winsorized Mean ( 14 / 65 )-0.0003289950964467010.00575927726273786-0.0571243719373049
Winsorized Mean ( 15 / 65 )-0.0004104990812182740.00571868931125963-0.0717820218716962
Winsorized Mean ( 16 / 65 )-0.0004968509999999980.00567729499485179-0.0875154453750502
Winsorized Mean ( 17 / 65 )-0.0005870637005076130.00563495812865168-0.104182442372129
Winsorized Mean ( 18 / 65 )-0.0006807566243654830.00559150142382542-0.121748448719833
Winsorized Mean ( 19 / 65 )-0.000778184573604060.00554671445252042-0.140296490880372
Winsorized Mean ( 20 / 65 )-0.0008801700558375610.00550036883756763-0.160020188069204
Winsorized Mean ( 21 / 65 )-0.0009879597512690350.00545223789169256-0.181202612742625
Winsorized Mean ( 22 / 65 )-0.001103029690355330.00540211787916223-0.204184676274852
Winsorized Mean ( 23 / 65 )-0.001226869279187820.00534984837184222-0.229327860139959
Winsorized Mean ( 24 / 65 )-0.001360766984771570.0052953292647104-0.256974952216875
Winsorized Mean ( 25 / 65 )-0.001505620791878170.00523853297739528-0.287412678010247
Winsorized Mean ( 26 / 65 )-0.001661787878172590.00517951084000211-0.320838768274865
Winsorized Mean ( 27 / 65 )-0.001828985172588830.00511839330007088-0.357335801561693
Winsorized Mean ( 28 / 65 )-0.002006241944162440.0050553844290014-0.396852499021273
Winsorized Mean ( 29 / 65 )-0.002191905685279190.00499075149006275-0.439193514171876
Winsorized Mean ( 30 / 65 )-0.002383696142131980.00492481079180982-0.484017811627641
Winsorized Mean ( 31 / 65 )-0.002578798812182740.00485791123308963-0.530845190133832
Winsorized Mean ( 32 / 65 )-0.002773989878172590.0047904168783349-0.579070663081164
Winsorized Mean ( 33 / 65 )-0.002965779680203040.00472269008973429-0.627985242277438
Winsorized Mean ( 34 / 65 )-0.003150567436548220.00465507608337935-0.676802565654538
Winsorized Mean ( 35 / 65 )-0.003324795837563450.00458788985107103-0.72468955129498
Winsorized Mean ( 36 / 65 )-0.003485096893401020.00452140606978096-0.770799357459582
Winsorized Mean ( 37 / 65 )-0.003628421558375640.00445585211082243-0.814304754316886
Winsorized Mean ( 38 / 65 )-0.003752150715736040.00439140400486424-0.854430772386208
Winsorized Mean ( 39 / 65 )-0.003854182040609140.00432818547736313-0.890484490733337
Winsorized Mean ( 40 / 65 )-0.003932988538071060.00426626933737936-0.92188003781472
Winsorized Mean ( 41 / 65 )-0.00398765548223350.00420568063388609-0.948159365716953
Winsorized Mean ( 42 / 65 )-0.004017889086294420.00414640163188024-0.969006247586404
Winsorized Mean ( 43 / 65 )-0.004024005345177660.00408837744335003-0.984254854385554
Winsorized Mean ( 44 / 65 )-0.004006898279187820.00403152230095329-0.993892128102666
Winsorized Mean ( 45 / 65 )-0.003967992467005080.00397572582508806-0.99805485628959
Winsorized Mean ( 46 / 65 )-0.003909183218274110.00392085930854267-0.997022058342386
Winsorized Mean ( 47 / 65 )-0.003832768137055840.00386678128631789-0.991203756627662
Winsorized Mean ( 48 / 65 )-0.003741372725888330.00381334256800757-0.981126835358817
Winsorized Mean ( 49 / 65 )-0.003637873781725890.00376039076511131-0.967419081941663
Winsorized Mean ( 50 / 65 )-0.003525322005076150.00370777360599075-0.950792140971117
Winsorized Mean ( 51 / 65 )-0.00340686842131980.00365534187419306-0.93202456530058
Winsorized Mean ( 52 / 65 )-0.003285691791878170.00360295125457691-0.911944558701506
Winsorized Mean ( 53 / 65 )-0.003164932502538070.00355046376456216-0.891413829970005
Winsorized Mean ( 54 / 65 )-0.003047631071065990.00349774832696818-0.871312280408595
Winsorized Mean ( 55 / 65 )-0.002936672340101520.00344468111870454-0.852523713778748
Winsorized Mean ( 56 / 65 )-0.002834738411167520.0033911452699893-0.835923614436152
Winsorized Mean ( 57 / 65 )-0.002744264076142140.00333703054637142-0.822367082952285
Winsorized Mean ( 58 / 65 )-0.002667402888324870.00328223272002924-0.81267939108873
Winsorized Mean ( 59 / 65 )-0.002605997664974620.00322665304973319-0.8076473128061
Winsorized Mean ( 60 / 65 )-0.002561557461928930.00317019767580039-0.808011904583272
Winsorized Mean ( 61 / 65 )-0.002535242309644670.0031127771080612-0.814463169585486
Winsorized Mean ( 62 / 65 )-0.002527855497461930.00305430608819885-0.827636597140344
Winsorized Mean ( 63 / 65 )-0.002539840208121830.00299470328643851-0.848110802704053
Winsorized Mean ( 64 / 65 )-0.002571284675126900.00293389145199683-0.87640756899062
Winsorized Mean ( 65 / 65 )-0.002621932543147210.00287179769402331-0.912993470467605
Trimmed Mean ( 1 / 65 )1.52840761421322e-050.006124496065395040.00249556469282283
Trimmed Mean ( 2 / 65 )-0.0001128177538461540.00604592296263672-0.0186601375080956
Trimmed Mean ( 3 / 65 )-0.0003720721151832460.00597117044030162-0.062311421002488
Trimmed Mean ( 4 / 65 )-0.0003720721151832460.00590041215568007-0.0630586652874864
Trimmed Mean ( 5 / 65 )-0.0006389863957219250.00583343424564919-0.109538630044301
Trimmed Mean ( 6 / 65 )-0.0007761676270270270.00576981057778723-0.134522202516515
Trimmed Mean ( 7 / 65 )-0.0009156784043715850.00570903907033956-0.160390985784079
Trimmed Mean ( 8 / 65 )-0.0009156784043715850.00565062930591488-0.162048924960107
Trimmed Mean ( 9 / 65 )-0.001199370810055870.0055941475741501-0.214397420546790
Trimmed Mean ( 10 / 65 )-0.001341909118644070.00553923153823159-0.242255466192784
Trimmed Mean ( 11 / 65 )-0.001483710834285710.00548558690500423-0.270474401368466
Trimmed Mean ( 12 / 65 )-0.001623949803468210.00543297596465765-0.298906126961034
Trimmed Mean ( 13 / 65 )-0.001761941122807020.00538120461998484-0.327425037186559
Trimmed Mean ( 14 / 65 )-0.00189717297041420.00533011157934008-0.3559349447332
Trimmed Mean ( 15 / 65 )-0.002029307718562870.00527956115837112-0.384370529612156
Trimmed Mean ( 16 / 65 )-0.002029307718562870.00522943969957872-0.388054521161484
Trimmed Mean ( 17 / 65 )-0.002283648202453990.00517965480829755-0.440888106828219
Trimmed Mean ( 18 / 65 )-0.002405762614906830.00513013634989838-0.468947109944648
Trimmed Mean ( 19 / 65 )-0.00252449992452830.00508083813665299-0.496866827210386
Trimmed Mean ( 20 / 65 )-0.002639828159235670.00503173944212628-0.524635305464097
Trimmed Mean ( 21 / 65 )-0.002751651593548390.00498284569344519-0.5522249258427
Trimmed Mean ( 22 / 65 )-0.002859789562091500.00493418796022961-0.579586668595095
Trimmed Mean ( 23 / 65 )-0.002963968278145700.00488582108388765-0.606646913027619
Trimmed Mean ( 24 / 65 )-0.00306382485906040.00483782047012579-0.633306853360918
Trimmed Mean ( 25 / 65 )-0.003158921911564630.0047902777356673-0.659444417605272
Trimmed Mean ( 26 / 65 )-0.003248770275862070.00474329549758997-0.684918381642624
Trimmed Mean ( 27 / 65 )-0.003332857293706290.0046969816661722-0.70957426078744
Trimmed Mean ( 28 / 65 )-0.003410677836879430.0046514436367511-0.733251459811667
Trimmed Mean ( 29 / 65 )-0.003481765676258990.00460678275333569-0.755791158968351
Trimmed Mean ( 30 / 65 )-0.003545722992700730.00456308937798132-0.777044387911888
Trimmed Mean ( 31 / 65 )-0.003602246274074070.00452043882625966-0.796879774845815
Trimmed Mean ( 32 / 65 )-0.003602246274074070.00447888833964008-0.804272399959751
Trimmed Mean ( 33 / 65 )-0.003692368732824430.00443847517807332-0.831900277614537
Trimmed Mean ( 34 / 65 )-0.003725992891472870.00439921581030241-0.846967516971334
Trimmed Mean ( 35 / 65 )-0.003752245511811020.00436110612042029-0.860388490489062
Trimmed Mean ( 36 / 65 )-0.003771492960.00432412248229849-0.872198457707716
Trimmed Mean ( 37 / 65 )-0.00378423460975610.00428822350912082-0.882471401434006
Trimmed Mean ( 38 / 65 )-0.003791090801652890.00425335227783164-0.891318318826296
Trimmed Mean ( 39 / 65 )-0.003792787218487390.00421943883981446-0.898884274064788
Trimmed Mean ( 40 / 65 )-0.00379013659829060.00418640282077151-0.905344459325611
Trimmed Mean ( 41 / 65 )-0.003784018808695650.00415415596435317-0.910899552440094
Trimmed Mean ( 42 / 65 )-0.003775359964601770.00412260451623686-0.915770588649126
Trimmed Mean ( 43 / 65 )-0.003765111522522520.00409165133865139-0.920193635991356
Trimmed Mean ( 44 / 65 )-0.003754229917431190.00406119772642462-0.924414463497773
Trimmed Mean ( 45 / 65 )-0.003743657345794390.00403114489220842-0.928683400348697
Trimmed Mean ( 46 / 65 )-0.003734304114285710.00400139513059349-0.933250526981033
Trimmed Mean ( 47 / 65 )-0.003727032864077670.00397185266245219-0.93836130914701
Trimmed Mean ( 48 / 65 )-0.003722644861386140.00394242420953322-0.944252739820431
Trimmed Mean ( 49 / 65 )-0.003721868474747470.00391301933146443-0.95115003517107
Trimmed Mean ( 50 / 65 )-0.003725349845360820.00388355054867544-0.959263900049253
Trimmed Mean ( 51 / 65 )-0.003733645736842110.00385393332680673-0.968788357305523
Trimmed Mean ( 52 / 65 )-0.003747218397849460.00382408593166559-0.979899109175444
Trimmed Mean ( 53 / 65 )-0.003747218397849460.00379392921928869-0.987688009253903
Trimmed Mean ( 54 / 65 )-0.003791553359550560.00376338637320595-1.00748447901740
Trimmed Mean ( 55 / 65 )-0.003822748057471260.00373238263921064-1.02421118813256
Trimmed Mean ( 56 / 65 )-0.003860086435294120.00370084505882232-1.04302838242098
Trimmed Mean ( 57 / 65 )-0.003860086435294120.00366870224262467-1.05216672818139
Trimmed Mean ( 58 / 65 )-0.003953009246913580.00363588417433952-1.08722089521228
Trimmed Mean ( 59 / 65 )-0.004008283025316460.00360232206631257-1.11269424319393
Trimmed Mean ( 60 / 65 )-0.004069090909090910.00356794825263733-1.14045681746733
Trimmed Mean ( 61 / 65 )-0.004135087373333330.00353269612647008-1.17051884036943
Trimmed Mean ( 62 / 65 )-0.004205864260273970.00349650011554441-1.20287834156674
Trimmed Mean ( 63 / 65 )-0.004280959154929580.00345929566154254-1.23752334977365
Trimmed Mean ( 64 / 65 )-0.004280959154929580.00342101922305961-1.251369511774
Trimmed Mean ( 65 / 65 )-0.004442035462686570.00338160826047617-1.31358664887490
Median-0.006251996
Midrange0.0125052125
Midmean - Weighted Average at Xnp-0.0043734157755102
Midmean - Weighted Average at X(n+1)p-0.00372186847474747
Midmean - Empirical Distribution Function-0.00372186847474747
Midmean - Empirical Distribution Function - Averaging-0.00372186847474747
Midmean - Empirical Distribution Function - Interpolation-0.00372186847474747
Midmean - Closest Observation-0.00437137703
Midmean - True Basic - Statistics Graphics Toolkit-0.00372186847474747
Midmean - MS Excel (old versions)-0.00372186847474747
Number of observations197
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Oct/26/t12250388743x4xq7d8tzh65ly/1pvyu1225038815.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Oct/26/t12250388743x4xq7d8tzh65ly/1pvyu1225038815.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Oct/26/t12250388743x4xq7d8tzh65ly/2q5ij1225038815.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Oct/26/t12250388743x4xq7d8tzh65ly/2q5ij1225038815.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