Home » date » 2008 » Dec » 01 »

Q2 residus in central tendency

*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: Mon, 01 Dec 2008 11:44:04 -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/Dec/01/t1228157094byfc63pz7syyk7j.htm/, Retrieved Mon, 01 Dec 2008 18:44:54 +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/Dec/01/t1228157094byfc63pz7syyk7j.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 «
-183.923544514060 -177.072609114252 -228.635109114254 -237.447609114242 -127.760109114251 -193.010109114250 -220.635109114248 -164.510109114256 -268.322609114246 -333.697609114249 -34.2601091142503 -154.885109114249 -97.7452805255622 101.105654874272 2.54315487427317 -43.2693451257275 -163.581845125727 -162.831845125727 46.5431548742728 26.6681548742733 -107.144345125727 42.4806548742729 76.918154874273 196.293154874273 201.43298346296 12.2839188627955 -0.278581137204542 42.9089188627948 87.5964188627952 84.3464188627952 57.721418862795 173.846418862796 -185.966081137205 47.6589188627952 89.0964188627953 -68.5285811372049 272.611247451482 146.462182851318 162.899682851318 10.0871828513171 279.774682851318 212.524682851317 248.899682851317 -41.9753171486821 -5.78781714868267 52.8371828513174 274.274682851318 414.649682851317 310.789511440004 362.64044683984 26.0779468398400 403.265446839839 327.95294683984 193.702946839840 317.07794683984 202.20294683984 321.39044683984 178.015446839840 16.4529468398398 -68.1720531601603 -157.032224571473 -76.1812891716376 -81.7437891716377 -134.556289171638 77.1312108283621 199.881210828362 105.256210828362 198.381210828362 262.568710828362 196.193710828362 11.6312108283621 -145.993789171638 -166.853960582951 -202.003025183115 43.4344748168846 -113.378025183116 -113.690525183116 -155.940525183116 -210.565525183116 -124.440525183115 -64.2530251831158 -298.628025183116 -154.190525183116 23.1844748168843 -249.675696594429 118.175238805407 -180.387261194593 -79.1997611945937 -81.5122611945933 -246.762261194593 -105.387261194593 -319.262261194593 -72.0747611945935 -90.4497611945934 -80.0122611945933 119.362738805407 -53.4974326059064 -114.646497206071 -155.208997206071 -50.0214972060714 -196.333997206071 -14.5839972060711 -82.2089972060712 17.9160027939294 -162.896497206071 -132.271497206071 -16.8339972060710 81.5410027939288 275.680831382616 -32.4682332175485 17.9692667824515 27.1567667824508 -123.155733217549 108.594266782451 67.9692667824511 34.0942667824517 -13.7182332175489 -113.093233217549 54.3442667824512 149.719266782451 153.859095371138 -28.2899692290262 238.147530770974 50.3350307709731 8.02253077097358 -61.2274692290265 -140.852469229027 -28.7274692290261 9.46003077097336 -121.914969229026 41.5225307709736 115.897530770973 27.0373593596605 -91.111705240504 3.32579475949605 -29.4867052405046 -73.7992052405041 50.9507947594957 -86.6742052405044 -9.54920524050376 -66.3617052405043 73.2632947594957 -216.299205240504 -128.924205240504 -142.784376651817 27.0665587480184 60.5040587480183 35.6915587480177 16.3790587480182 -64.870941251982 115.504058748018 -30.3709412519815 87.816558748018 205.441558748018 -64.1209412519819 -322.745941251982 -139.606112663295 35.2448227365406 -4.31767726345942 17.8698227365400 2.55732273654045 129.307322736540 -16.3176772634598 164.807322736541 21.9948227365402 138.619822736540 87.0573227365404 51.4323227365403 -80.4278486747727 -105.191879672279 5.24562032772056 68.4331203277199 -0.879379672279542 -105.129379672280 -82.7543796722797 -132.629379672279 102.558120327720 23.1831203277203 -180.379379672280 -267.00437967228 30.1354489164073 23.986384316243 90.4238843162428 31.6113843162422 81.2988843162427 25.0488843162426 -13.5761156837575 33.548884316243 140.736384316242 132.361384316243 94.7988843162427 4.17388431624253
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean-1.32394411912184e-1510.6188693306243-1.24678445312783e-16
Geometric MeanNaN
Harmonic Mean-66.3453559687308
Quadratic Mean146.755693925063
Winsorized Mean ( 1 / 64 )-0.0022529591104749610.5976619072822-0.000212590204347511
Winsorized Mean ( 2 / 64 )-0.38914170851266210.5114574693141-0.0370207185491333
Winsorized Mean ( 3 / 64 )-0.60872395833333310.3675898728177-0.0587141240925551
Winsorized Mean ( 4 / 64 )-0.11407987356521010.2542623573272-0.0111251174965008
Winsorized Mean ( 5 / 64 )-0.19205566934734510.2312339215092-0.0187715060393239
Winsorized Mean ( 6 / 64 )0.15295207059062310.12755349106480.0151025685251199
Winsorized Mean ( 7 / 64 )-0.8715778894195339.93937503722615-0.0876894056371949
Winsorized Mean ( 8 / 64 )-0.6540445306008239.86473213619288-0.0663012965350765
Winsorized Mean ( 9 / 64 )-0.306871805505989.80392154025991-0.0313009242521788
Winsorized Mean ( 10 / 64 )0.02315760075287219.741109687266610.00237730623063851
Winsorized Mean ( 11 / 64 )-0.3037849005134589.6285167015812-0.0315505399147899
Winsorized Mean ( 12 / 64 )-0.799744145492029.46661829076064-0.08448044707502
Winsorized Mean ( 13 / 64 )-0.9480018384318459.30090307524163-0.101925784062341
Winsorized Mean ( 14 / 64 )-2.402967875914049.0117021152939-0.266649723345374
Winsorized Mean ( 15 / 64 )-2.696658189310768.91418257367838-0.302513232932137
Winsorized Mean ( 16 / 64 )-2.379540183571858.81648245707183-0.269896775177404
Winsorized Mean ( 17 / 64 )-2.266864427392138.78856082209186-0.257933519865266
Winsorized Mean ( 18 / 64 )-2.080816550685678.73527438827513-0.238208493310597
Winsorized Mean ( 19 / 64 )-2.228474108373448.71726451078163-0.255639152123609
Winsorized Mean ( 20 / 64 )-2.101524670463138.65444935992049-0.242825924916202
Winsorized Mean ( 21 / 64 )-0.9947366798735978.53712761954928-0.116518895371288
Winsorized Mean ( 22 / 64 )-1.011570406103788.47548455556993-0.119352516009128
Winsorized Mean ( 23 / 64 )-2.779603886644578.24320502072544-0.337199412080127
Winsorized Mean ( 24 / 64 )-3.215063893818068.1749801388497-0.393280942486847
Winsorized Mean ( 25 / 64 )-4.383611295629398.04255112494204-0.545052338185912
Winsorized Mean ( 26 / 64 )-3.856572246698127.93390877306192-0.486087294045071
Winsorized Mean ( 27 / 64 )-4.974384634610727.78044088913562-0.639344827046602
Winsorized Mean ( 28 / 64 )-5.471428473808527.70549918353407-0.710068010324424
Winsorized Mean ( 29 / 64 )-5.914463262037787.64892240990871-0.77324137245476
Winsorized Mean ( 30 / 64 )-6.700590543903887.54541021545293-0.888035289344657
Winsorized Mean ( 31 / 64 )-5.718895713773387.37680556641522-0.775253687017332
Winsorized Mean ( 32 / 64 )-6.227066697186057.2178171400917-0.862735447064392
Winsorized Mean ( 33 / 64 )-6.419936942905477.13245319119481-0.900102218803347
Winsorized Mean ( 34 / 64 )-7.960248038861896.93823462844992-1.14730165022400
Winsorized Mean ( 35 / 64 )-7.256178652361926.82675811930629-1.06290255573011
Winsorized Mean ( 36 / 64 )-7.321953377688476.75061613151928-1.08463482962712
Winsorized Mean ( 37 / 64 )-7.328811781853276.73667398238876-1.08789764815879
Winsorized Mean ( 38 / 64 )-8.033889906853276.54335984899064-1.22779276889266
Winsorized Mean ( 39 / 64 )-8.475475496882466.45758888557676-1.31248297887354
Winsorized Mean ( 40 / 64 )-8.345997698862876.33932914728463-1.31654272951544
Winsorized Mean ( 41 / 64 )-8.3818029749216.28470994364587-1.33368175302909
Winsorized Mean ( 42 / 64 )-9.489991912000516.1343786211271-1.54701763587212
Winsorized Mean ( 43 / 64 )-8.841974740192865.89291733811778-1.50044099261318
Winsorized Mean ( 44 / 64 )-8.927108651347385.84557313749744-1.52715712238427
Winsorized Mean ( 45 / 64 )-9.153833678248315.81243028032327-1.57487199618319
Winsorized Mean ( 46 / 64 )-9.138344117332525.80142125627267-1.57519058066191
Winsorized Mean ( 47 / 64 )-7.814072125761385.65457334822606-1.38190304458829
Winsorized Mean ( 48 / 64 )-8.052527111414185.55494447373351-1.44961432998844
Winsorized Mean ( 49 / 64 )-8.718629677982245.48836172302983-1.58856688351969
Winsorized Mean ( 50 / 64 )-8.765405323213265.48143725981741-1.59910711511186
Winsorized Mean ( 51 / 64 )-7.911042257584635.20760440228386-1.51913272331422
Winsorized Mean ( 52 / 64 )-6.172151605447165.04225979320218-1.22408441028133
Winsorized Mean ( 53 / 64 )-6.998321145290584.93967985969698-1.4167560133583
Winsorized Mean ( 54 / 64 )-7.294932592139994.73135234062323-1.54182822731377
Winsorized Mean ( 55 / 64 )-6.304940606397414.62225515603724-1.36403993149586
Winsorized Mean ( 56 / 64 )-8.323223063796164.42817324495429-1.87960646600268
Winsorized Mean ( 57 / 64 )-9.011210644499394.34929759179581-2.07187722943987
Winsorized Mean ( 58 / 64 )-9.961451259037754.26188282496368-2.33733578987420
Winsorized Mean ( 59 / 64 )-10.09133466147254.19614070550209-2.40490855043076
Winsorized Mean ( 60 / 64 )-10.40048235978434.150382049734-2.50590963317483
Winsorized Mean ( 61 / 64 )-10.29532978999134.11580888170771-2.50141104358559
Winsorized Mean ( 62 / 64 )-9.519455320538844.01521937288728-2.37084314366952
Winsorized Mean ( 63 / 64 )-9.615933250506533.87918120446654-2.47885642450387
Winsorized Mean ( 64 / 64 )-9.41303989804383.80076565453255-2.47661675400019
Trimmed Mean ( 1 / 64 )-0.42606354598457010.3568008048484-0.0411385285874295
Trimmed Mean ( 2 / 64 )-0.858891379387910.0981272768677-0.085054521084856
Trimmed Mean ( 3 / 64 )-1.101342822420289.86896178988233-0.111596624434130
Trimmed Mean ( 4 / 64 )-1.272688514276619.67916990272539-0.131487361733185
Trimmed Mean ( 5 / 64 )-1.578255628310399.50981514215358-0.165960705304833
Trimmed Mean ( 6 / 64 )-1.87397828622259.33405392160606-0.200767887346858
Trimmed Mean ( 7 / 64 )-2.238370260481049.16768192555447-0.244158804663771
Trimmed Mean ( 8 / 64 )-2.451376863763359.02491922118324-0.271623136305696
Trimmed Mean ( 9 / 64 )-2.699284771785778.88442780371991-0.303822016613786
Trimmed Mean ( 10 / 64 )-2.996018162952268.7430222681185-0.342675343957119
Trimmed Mean ( 11 / 64 )-3.33700742567668.60010010618902-0.388019602617781
Trimmed Mean ( 12 / 64 )-3.652147428290958.4617525302153-0.431606504119547
Trimmed Mean ( 13 / 64 )-3.927077865187248.33366932094747-0.471230344515369
Trimmed Mean ( 14 / 64 )-4.195362385420378.2157944549557-0.51064597689512
Trimmed Mean ( 15 / 64 )-4.347099486754248.12189114760549-0.535232424043981
Trimmed Mean ( 16 / 64 )-4.479134790549718.03122431717008-0.557715064809447
Trimmed Mean ( 17 / 64 )-4.638597672092347.94349181357195-0.583949449556554
Trimmed Mean ( 18 / 64 )-4.810306866278787.8515542668365-0.612656641322167
Trimmed Mean ( 19 / 64 )-4.999362472553637.757384361721-0.644464969045894
Trimmed Mean ( 20 / 64 )-5.183576657429877.65727337643666-0.676948099225636
Trimmed Mean ( 21 / 64 )-5.380827984595747.55477905479316-0.712241608334244
Trimmed Mean ( 22 / 64 )-5.65178343199177.4542870900285-0.758192348072026
Trimmed Mean ( 23 / 64 )-5.929156066166827.35082475749704-0.806597390329531
Trimmed Mean ( 24 / 64 )-6.111738801211597.25954284263488-0.841890313714756
Trimmed Mean ( 25 / 64 )-6.27493175374087.16630380536148-0.875616206648427
Trimmed Mean ( 26 / 64 )-6.378684190300067.07639752892477-0.901402749665658
Trimmed Mean ( 27 / 64 )-6.513646702332276.98759367506286-0.932173077776116
Trimmed Mean ( 28 / 64 )-6.594130993454976.90372821218323-0.955155068506042
Trimmed Mean ( 29 / 64 )-6.651582721539226.81835340033402-0.97554091596563
Trimmed Mean ( 30 / 64 )-6.688554230479736.72966381590379-0.99389128691289
Trimmed Mean ( 31 / 64 )-6.687961673511166.6411361374184-1.00705083213532
Trimmed Mean ( 32 / 64 )-6.734851961885566.55793987886668-1.02697677720239
Trimmed Mean ( 33 / 64 )-6.759032212585546.47955309456549-1.04313246823372
Trimmed Mean ( 34 / 64 )-6.774942841074936.40020758527953-1.05855048462136
Trimmed Mean ( 35 / 64 )-6.720078183896756.3284488355608-1.06188394004788
Trimmed Mean ( 36 / 64 )-6.695570733909776.25813887915211-1.06989807404481
Trimmed Mean ( 37 / 64 )-6.667259653964976.1864046762266-1.07772769531004
Trimmed Mean ( 38 / 64 )-6.637665523360466.10794571464969-1.08672634523261
Trimmed Mean ( 39 / 64 )-6.575783002208426.03669984162274-1.08930097151240
Trimmed Mean ( 40 / 64 )-6.492280035409575.96435237097033-1.08851382876182
Trimmed Mean ( 41 / 64 )-6.411390537367975.8934467218927-1.08788470311460
Trimmed Mean ( 42 / 64 )-6.325952599696295.81870513468569-1.08717531706270
Trimmed Mean ( 43 / 64 )-6.189498074098265.74750441527631-1.07690183893503
Trimmed Mean ( 44 / 64 )-6.075617143890275.68799044755345-1.06814826781285
Trimmed Mean ( 45 / 64 )-5.953628202394785.62470607189824-1.05847810112956
Trimmed Mean ( 46 / 64 )-5.817086102091695.55589541016406-1.04701144867663
Trimmed Mean ( 47 / 64 )-5.675630569943015.47892242155392-1.03590270736728
Trimmed Mean ( 48 / 64 )-5.584633056929475.40529132321099-1.03317892098588
Trimmed Mean ( 49 / 64 )-5.479616288653525.33065271819272-1.02794471490375
Trimmed Mean ( 50 / 64 )-5.34166363320745.25160726300928-1.01714834443780
Trimmed Mean ( 51 / 64 )-5.195583987767155.16190388588883-1.00652474409111
Trimmed Mean ( 52 / 64 )-5.079414650020955.08655658562375-0.998595919364588
Trimmed Mean ( 53 / 64 )-5.032499288786195.01650879999215-1.00318757315726
Trimmed Mean ( 54 / 64 )-4.947719909529944.94565767162165-1.00041697950914
Trimmed Mean ( 55 / 64 )-4.845943749850374.884498926618-0.992106626012848
Trimmed Mean ( 56 / 64 )-4.782278432473774.82436660036829-0.991275918399049
Trimmed Mean ( 57 / 64 )-4.626632514613444.77317384668495-0.96929897448146
Trimmed Mean ( 58 / 64 )-4.432302181986924.7202182730701-0.939003648893569
Trimmed Mean ( 59 / 64 )-4.184959073227894.66576487372522-0.896950272139742
Trimmed Mean ( 60 / 64 )-3.918004244380674.60761724723275-0.850331968596948
Trimmed Mean ( 61 / 64 )-3.621662387676514.54260523162629-0.79726549039788
Trimmed Mean ( 62 / 64 )-3.312755892680264.46849340063741-0.741358573385766
Trimmed Mean ( 63 / 64 )-3.021532459115054.39267562390747-0.687856950481417
Trimmed Mean ( 64 / 64 )-2.707513373810694.31847906988873-0.626959938902853
Median4.70975232198155
Midrange40.476036868534
Midmean - Weighted Average at Xnp-6.63164039784491
Midmean - Weighted Average at X(n+1)p-5.58463305692948
Midmean - Empirical Distribution Function-6.63164039784491
Midmean - Empirical Distribution Function - Averaging-5.58463305692948
Midmean - Empirical Distribution Function - Interpolation-5.58463305692948
Midmean - Closest Observation-6.63164039784491
Midmean - True Basic - Statistics Graphics Toolkit-5.58463305692948
Midmean - MS Excel (old versions)-5.67563056994302
Number of observations192
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t1228157094byfc63pz7syyk7j/1kdxw1228157038.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t1228157094byfc63pz7syyk7j/1kdxw1228157038.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t1228157094byfc63pz7syyk7j/22kpo1228157038.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t1228157094byfc63pz7syyk7j/22kpo1228157038.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