Home » date » 2010 » Nov » 23 »

HAR 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: Tue, 23 Nov 2010 15:36:06 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526491g35mhlqlhn5ilk1.htm/, Retrieved Tue, 23 Nov 2010 16:34:54 +0100
 
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/2010/Nov/23/t1290526491g35mhlqlhn5ilk1.htm/},
    year = {2010},
}
@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 = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.24320322098874 -5.7731597280508E-15 -5.7731597280508E-15 -5.7731597280508E-15 -5.7731597280508E-15 -0.24320322098871 3.9523939676656E-14 3.9523939676656E-14 0.01889076246954 -0.018890762469514 3.9523939676656E-14 0.01889076246954 -0.018890762469514 0.01889076246954 -1.4210854715202E-14 -1.4210854715202E-14 -1.4210854715202E-14 -0.077171589615714 -2.0872192862953E-14 -2.0872192862953E-14 -0.010797183330221 4.3076653355456E-14 0.00063836580524335 -0.00063836580522958 4.3076653355456E-14 4.3076653355456E-14 4.3076653355456E-14 4.3076653355456E-14 0.010797183330243 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -0.010797183330221 0.010797183330243 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -0.010797183330221 0.010797183330243 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E-14 -2.0872192862953E etc...
 
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'George Udny Yule' @ 72.249.76.132


Central Tendency - Ungrouped Data
MeasureValueS.E.Value/S.E.
Arithmetic Mean-0.003359599842146540.00341247095938507-0.984506500460283
Geometric MeanNaN
Harmonic Mean1.10625107460305e-13
Quadratic Mean0.0482559173861611
Winsorized Mean ( 1 / 66 )-0.002899860129408140.00320414047703873-0.905035266146693
Winsorized Mean ( 2 / 66 )-0.004177990311447340.00280595166549255-1.48897444058929
Winsorized Mean ( 3 / 66 )-0.002231500268816290.00211797934111286-1.05359869451974
Winsorized Mean ( 4 / 66 )-0.002573171430554210.00203078679656463-1.26708103229108
Winsorized Mean ( 5 / 66 )-0.002936287638179460.00181533335917567-1.61749224919924
Winsorized Mean ( 6 / 66 )-0.003347347560611790.00147809322872446-2.26463899269766
Winsorized Mean ( 7 / 66 )-0.00325844612883120.00145488403682747-2.23966037591324
Winsorized Mean ( 8 / 66 )-0.003325389478302800.00135954428593396-2.44595892366859
Winsorized Mean ( 9 / 66 )-0.003433548669220140.00130773266527397-2.62557383507798
Winsorized Mean ( 10 / 66 )-0.001794235946885490.000943063480871296-1.90256115657007
Winsorized Mean ( 11 / 66 )-0.001712876568910730.000928406241533082-1.8449645126063
Winsorized Mean ( 12 / 66 )-0.001703321668024490.000926709766034606-1.83803142089784
Winsorized Mean ( 13 / 66 )-0.0008958578681154880.000800355047503298-1.11932556795901
Winsorized Mean ( 14 / 66 )-0.0008958578681154870.000800355047503298-1.11932556795901
Winsorized Mean ( 15 / 66 )-0.001001977447194460.000785410437786042-1.27573737117486
Winsorized Mean ( 16 / 66 )-0.001110064818212300.000770790169672294-1.44016473210115
Winsorized Mean ( 17 / 66 )-0.001134279361045060.000767595833968522-1.4777039046457
Winsorized Mean ( 18 / 66 )-0.001132211737483000.000766416502960192-1.47727995562460
Winsorized Mean ( 19 / 66 )-0.001003514600047150.00074920031562533-1.33944764720174
Winsorized Mean ( 20 / 66 )-0.001003514600047150.00074920031562533-1.33944764720174
Winsorized Mean ( 21 / 66 )-0.0008769873998300080.00072886188970018-1.20322850216625
Winsorized Mean ( 22 / 66 )-0.001236548117912730.00068234132031044-1.81221344964151
Winsorized Mean ( 23 / 66 )-0.001296966025370790.000666654382064673-1.94548488731748
Winsorized Mean ( 24 / 66 )-0.001296966025370790.000666654382064673-1.94548488731748
Winsorized Mean ( 25 / 66 )-0.001572708523878420.000633560236072703-2.48233464528532
Winsorized Mean ( 26 / 66 )-0.001751157419436340.000614304197351372-2.85063560852524
Winsorized Mean ( 27 / 66 )-0.001765545945294040.000607981428188992-2.90394716587497
Winsorized Mean ( 28 / 66 )-0.001765545945294040.000607981428188992-2.90394716587497
Winsorized Mean ( 29 / 66 )-0.001563118267319580.000579924474589371-2.69538247791039
Winsorized Mean ( 30 / 66 )-0.002634836823373520.000402238722755006-6.55043056353958
Winsorized Mean ( 31 / 66 )-0.002634836823373520.000402238722755006-6.55043056353958
Winsorized Mean ( 32 / 66 )-0.002687812218459550.00039993879730412-6.72055883694549
Winsorized Mean ( 33 / 66 )-0.002196523825673310.0003075291389888-7.14249008369026
Winsorized Mean ( 34 / 66 )-0.002196523825673310.0003075291389888-7.14249008369026
Winsorized Mean ( 35 / 66 )-0.002152309575806280.000301141804699425-7.14716303820567
Winsorized Mean ( 36 / 66 )-0.002152309575806280.000301141804699425-7.14716303820567
Winsorized Mean ( 37 / 66 )-0.002152309575806280.000301141804699425-7.14716303820567
Winsorized Mean ( 38 / 66 )-0.001306104788272480.000180293054082233-7.24434335488464
Winsorized Mean ( 39 / 66 )-0.001179187297137120.000162524807734600-7.25542957763539
Winsorized Mean ( 40 / 66 )-0.001151778267407700.000158701324742643-7.25752144334948
Winsorized Mean ( 41 / 66 )-0.0002116261642909822.82950262639897e-05-7.4792708201269
Winsorized Mean ( 42 / 66 )-0.0002116261642909822.82950262639897e-05-7.4792708201269
Winsorized Mean ( 43 / 66 )-0.0001404404771442151.87457024438441e-05-7.49187594142859
Winsorized Mean ( 44 / 66 )-6.11510841963527e-152.29758864405825e-15-2.66153318412738
Winsorized Mean ( 45 / 66 )-5.51558798633777e-152.24224085145754e-15-2.45985527502651
Winsorized Mean ( 46 / 66 )-5.51558798633777e-152.24224085145754e-15-2.45985527502651
Winsorized Mean ( 47 / 66 )-5.41122702202278e-152.23274844872398e-15-2.42357217854762
Winsorized Mean ( 48 / 66 )-5.41122702202278e-152.23274844872398e-15-2.42357217854762
Winsorized Mean ( 49 / 66 )-5.41122702202279e-152.23274844872398e-15-2.42357217854762
Winsorized Mean ( 50 / 66 )-5.41122702202278e-152.23274844872398e-15-2.42357217854762
Winsorized Mean ( 51 / 66 )-5.63771251904654e-152.21377960772928e-15-2.54664579046749
Winsorized Mean ( 52 / 66 )-5.63771251904654e-152.21377960772928e-15-2.54664579046749
Winsorized Mean ( 53 / 66 )-5.63771251904654e-152.21377960772928e-15-2.54664579046749
Winsorized Mean ( 54 / 66 )-5.63771251904654e-152.21377960772928e-15-2.54664579046749
Winsorized Mean ( 55 / 66 )-5.63771251904654e-152.21377960772928e-15-2.54664579046749
Winsorized Mean ( 56 / 66 )-1.16129328375798e-151.83181048196817e-15-0.633959296111376
Winsorized Mean ( 57 / 66 )-1.16129328375798e-151.83181048196817e-15-0.633959296111376
Winsorized Mean ( 58 / 66 )-1.16129328375798e-151.83181048196817e-15-0.633959296111376
Winsorized Mean ( 59 / 66 )-1.16129328375798e-151.83181048196817e-15-0.633959296111376
Winsorized Mean ( 60 / 66 )1.50324197534232e-151.6349573928177e-150.91943801223567
Winsorized Mean ( 61 / 66 )1.50324197534232e-151.6349573928177e-150.919438012235671
Winsorized Mean ( 62 / 66 )1.50324197534232e-151.6349573928177e-150.919438012235671
Winsorized Mean ( 63 / 66 )1.50324197534232e-151.6349573928177e-150.91943801223567
Winsorized Mean ( 64 / 66 )1.50324197534232e-151.6349573928177e-150.91943801223567
Winsorized Mean ( 65 / 66 )6.37268016134822e-161.55674143770227e-150.409360219173853
Winsorized Mean ( 66 / 66 )6.37268016134822e-161.55674143770227e-150.409360219173853
Trimmed Mean ( 1 / 66 )-0.002919288087088020.00273255536404864-1.06833629996895
Trimmed Mean ( 2 / 66 )-0.002939112533700150.00213304893856650-1.37789268711076
Trimmed Mean ( 3 / 66 )-0.002300515741046950.00166608590088251-1.38079059418748
Trimmed Mean ( 4 / 66 )-0.002324479446682600.00146833321476540-1.58307353079524
Trimmed Mean ( 5 / 66 )-0.002259034187769010.00126860972874270-1.78071643042490
Trimmed Mean ( 6 / 66 )-0.002114937708958280.00110719526705924-1.91017589388333
Trimmed Mean ( 7 / 66 )-0.001894075728375210.00101897135261550-1.85881155884656
Trimmed Mean ( 8 / 66 )-0.001682216970540430.000923796224915193-1.82098272884246
Trimmed Mean ( 9 / 66 )-0.001456506461232410.0008365848886944-1.74101454725710
Trimmed Mean ( 10 / 66 )-0.001212427176295660.000746534347020346-1.62407420520548
Trimmed Mean ( 11 / 66 )-0.001147055404319270.000717181472519117-1.59939352628591
Trimmed Mean ( 12 / 66 )-0.001088602804671390.000687391230706485-1.58367281402842
Trimmed Mean ( 13 / 66 )-0.001029721687491980.000654904603550298-1.57232317792510
Trimmed Mean ( 14 / 66 )-0.00104169519548630.00063721296109435-1.63476774498951
Trimmed Mean ( 15 / 66 )-0.001053950433080490.000618040606960448-1.70530936189430
Trimmed Mean ( 16 / 66 )-0.001058075273230170.000599071583678159-1.76619172409053
Trimmed Mean ( 17 / 66 )-0.001054160397855010.0005801993641679-1.81689340416091
Trimmed Mean ( 18 / 66 )-0.001048412982992020.00056000128963563-1.87216172961705
Trimmed Mean ( 19 / 66 )-0.001042665468966580.000538027473797217-1.93794094120844
Trimmed Mean ( 20 / 66 )-0.001045241184027070.000515926578604421-2.02594948074673
Trimmed Mean ( 21 / 66 )-0.001047882107063770.00049153106257259-2.13187362275607
Trimmed Mean ( 22 / 66 )-0.001058315239373520.000466914814531638-2.26661310893534
Trimmed Mean ( 23 / 66 )-0.001047793817972150.000445124712665632-2.35393315212142
Trimmed Mean ( 24 / 66 )-0.001033539115031730.000422745261001346-2.44482720535674
Trimmed Mean ( 25 / 66 )-0.001018904286679560.000397707242180968-2.56194551824612
Trimmed Mean ( 26 / 66 )-0.0009889689225066460.000373494105130940-2.64788361829682
Trimmed Mean ( 27 / 66 )-0.0009488114674523940.000348373145073709-2.72354939199359
Trimmed Mean ( 28 / 66 )-0.0009067983770284410.000320434943211708-2.82989853709347
Trimmed Mean ( 29 / 66 )-0.0009067983770284410.000287845043372932-3.15030047557078
Trimmed Mean ( 30 / 66 )-0.0008291428809409680.000253548466008031-3.27015538289515
Trimmed Mean ( 31 / 66 )-0.0007419112895191060.000236257315796042-3.14026800405872
Trimmed Mean ( 32 / 66 )-0.0006521140630554240.000216098863937479-3.01766539246635
Trimmed Mean ( 33 / 66 )-0.0005571654550608290.000192167103364365-2.89937999431878
Trimmed Mean ( 34 / 66 )-0.0004818964756938640.000177853767007655-2.70950952460356
Trimmed Mean ( 35 / 66 )-0.0004043115277309940.000160923800640986-2.51244083299396
Trimmed Mean ( 36 / 66 )-0.0003262759005847750.000141466821890270-2.30637753944776
Trimmed Mean ( 37 / 66 )-0.0002457629519418520.000116772998391521-2.10462140500878
Trimmed Mean ( 38 / 66 )-0.0001626528114072218.19848558855581e-05-1.98393727293083
Trimmed Mean ( 39 / 66 )-0.0001133235630523786.58393916070103e-05-1.72121218447456
Trimmed Mean ( 40 / 66 )-6.77738308265345e-054.77801229842132e-05-1.41845241480285
Trimmed Mean ( 41 / 66 )-2.18414394459767e-051.27118650095225e-05-1.71819315494738
Trimmed Mean ( 42 / 66 )-1.38605847426544e-059.96651847852916e-06-1.39071479900571
Trimmed Mean ( 43 / 66 )-5.59970004974176e-065.59970004583928e-06-1.00000000069691
Trimmed Mean ( 44 / 66 )-4.29021897373005e-152.29600140287384e-15-1.86856112908298
Trimmed Mean ( 45 / 66 )-4.21481031894058e-152.27829265696614e-15-1.8499863509867
Trimmed Mean ( 46 / 66 )-4.1612803737802e-152.26268993219395e-15-1.83908555678477
Trimmed Mean ( 47 / 66 )-4.10573043068924e-152.24492800087252e-15-1.82889180815309
Trimmed Mean ( 48 / 66 )-4.05231403988182e-152.22552858182807e-15-1.82083217127376
Trimmed Mean ( 49 / 66 )-3.99680288865057e-152.20349196663945e-15-1.81384953935008
Trimmed Mean ( 50 / 66 )-3.93907129137007e-152.17848145018448e-15-1.80817297803316
Trimmed Mean ( 51 / 66 )-3.87898330236383e-152.15010277759491e-15-1.80409203819682
Trimmed Mean ( 52 / 66 )-3.80713978861046e-152.11951509142193e-15-1.79623150786643
Trimmed Mean ( 53 / 66 )-3.73223910405906e-152.08473110455157e-15-1.79027362133682
Trimmed Mean ( 54 / 66 )-3.65408186800543e-152.04511930474435e-15-1.78673286175948
Trimmed Mean ( 55 / 66 )-3.57245097701609e-151.99991210862904e-15-1.78630398886131
Trimmed Mean ( 56 / 66 )-3.48710959098177e-151.94816298427139e-15-1.78994756554516
Trimmed Mean ( 57 / 66 )-3.48710959098177e-151.92794440668357e-15-1.80871895418408
Trimmed Mean ( 58 / 66 )-3.5836966469296e-151.90431235920303e-15-1.88188488595926
Trimmed Mean ( 59 / 66 )-3.79100544993958e-151.87672422403070e-15-2.02001199824529
Trimmed Mean ( 60 / 66 )-3.90243393155745e-151.84452042280589e-15-2.11569028095717
Trimmed Mean ( 61 / 66 )-4.1334457224506e-151.82418687139138e-15-2.26591134234941
Trimmed Mean ( 62 / 66 )-4.37661602865392e-151.79964938748112e-15-2.43192705151288
Trimmed Mean ( 63 / 66 )-4.63293067573309e-151.77012027955593e-15-2.61729710079099
Trimmed Mean ( 64 / 66 )-4.90348502542777e-151.73461166822399e-15-2.82684886493834
Trimmed Mean ( 65 / 66 )-5.18949962367644e-151.69186311807981e-15-3.06732830110175
Trimmed Mean ( 66 / 66 )-5.45315426801179e-151.65274459365296e-15-3.29945370201394
Median-4.4408920985006e-15
Midrange-0.04695046359294
Midmean - Weighted Average at Xnp-3.11269868188482e-15
Midmean - Weighted Average at X(n+1)p-3.11269868188482e-15
Midmean - Empirical Distribution Function-3.11269868188482e-15
Midmean - Empirical Distribution Function - Averaging-3.11269868188482e-15
Midmean - Empirical Distribution Function - Interpolation-3.11269868188482e-15
Midmean - Closest Observation-3.11269868188482e-15
Midmean - True Basic - Statistics Graphics Toolkit-3.11269868188482e-15
Midmean - MS Excel (old versions)-3.11269868188482e-15
Number of observations200
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526491g35mhlqlhn5ilk1/1ryb71290526562.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526491g35mhlqlhn5ilk1/1ryb71290526562.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526491g35mhlqlhn5ilk1/22paa1290526562.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290526491g35mhlqlhn5ilk1/22paa1290526562.ps (open in new window)


 
Parameters (Session):
par1 = Apollo Oil Corp. ; par3 = Time series of Xycoon Stock Exchange ; par4 = No season ;
 
Parameters (R input):
par1 = Apollo Oil Corp. ; par3 = Time series of Xycoon Stock Exchange ; par4 = No season ;
 
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