There is an hpd function in the TeachingDemos package that may do what you want. There are other hpd related functions in other packages as well. Which will work best for you depends on details that you did not provide.
-- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Rahim Alhamzawi > Sent: Wednesday, December 09, 2009 3:24 AM > To: r-h...@stat.math.ethz.ch > Subject: [R] code > > Dear support, > I want to compute the highest probability density for any data. please > do you have any code to help me in this subject. > I am looking forward to hearing from you as soon as possible. > > rahim > > > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.