Re: [R] how to compute highest density interval?

2007-11-26 Thread Greg Snow
PROTECTED] On Behalf Of gallon li > Sent: Saturday, November 24, 2007 5:44 AM > To: r-help > Subject: [R] how to compute highest density interval? > > Suppose i want to compute a 95% highest density for a beta > distribution > beta(a,b) > > the two end points x1 and

Re: [R] how to compute highest density interval?

2007-11-24 Thread Ben Bolker
Duncan Murdoch-2 wrote: > > On 24/11/2007 7:43 AM, gallon li wrote: >> Suppose i want to compute a 95% highest density for a beta distribution >> beta(a,b) >> >> the two end points x1 and x2 shoudl satisfy the following two equations: >> >> pbeta(x1,a,b)-pbeta(x2,a,b)=95% >> >> dbeta(x1,a,b)

Re: [R] how to compute highest density interval?

2007-11-24 Thread Duncan Murdoch
On 24/11/2007 7:43 AM, gallon li wrote: > Suppose i want to compute a 95% highest density for a beta distribution > beta(a,b) > > the two end points x1 and x2 shoudl satisfy the following two equations: > > pbeta(x1,a,b)-pbeta(x2,a,b)=95% > > dbeta(x1,a,b)=dbeta(x2,a,b) > > Is there any fast wa

[R] how to compute highest density interval?

2007-11-24 Thread gallon li
Suppose i want to compute a 95% highest density for a beta distribution beta(a,b) the two end points x1 and x2 shoudl satisfy the following two equations: pbeta(x1,a,b)-pbeta(x2,a,b)=95% dbeta(x1,a,b)=dbeta(x2,a,b) Is there any fast way to compute x1 and x2 in R? [[alternative HTML ver