AW: [R] Looking for help in calculating percentiles
TEMPL Matthias
Matthias.Templ at statistik.gv.at
Mon Apr 26 09:36:09 CEST 2004
Type e.g.:
quantile(x,0.1)
or
Quantile(x,0.8)
Which calculates the 10th and 80th quantile
Matthias Templ
-----Ursprüngliche Nachricht-----
Von: arinbasu at softhome.net [mailto:arinbasu at softhome.net]
Gesendet: Montag, 26. April 2004 09:29
An: r-help at stat.math.ethz.ch
Betreff: [R] Looking for help in calculating percentiles
Hi All:
I am working with a dataset on Arsenic toxicity, and I am trying to
calculate the 20th, 40th, 60th, 80th, and highest percentiles for a
variable, dietary Moisture (variable name dMoist).
The inbuilt function quantile(dMoist) would print 0, 25th, 50th, 75th, and
100th percentile. Does there exist a function that can calculate xth
percentile (where x = 10th, 20th, ... etc) values?
I looked for such functions in the documentation, but couldn't find one. Has
anyone written a similar function that can be used? Is there a module or a
function that I have missed?
I use R in both Windows XP as well as Linux (Fedora Core 1 (Yarrow)) on a
Duron I Gz machine with 128 MB RAM.
Thanks in Advance,
Arin Basu
______________________________________________
R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list