The hpd functions in the TeachingDemos package do not currently take weights, so they will not work with the results of importance sampling.
On Wed, Mar 26, 2014 at 10:35 PM, Baran rad <baran....@gmail.com> wrote: > hi :) > if i using importance sampling for obtain postreior density, can i use > teachingdemos for obtain hpd interval?what are you doing with weight? > or is other package for cmpute this type of sampling? > please help me soon as soon > > [[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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ 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.