search for: betaprior1

Displaying 1 result from an estimated 1 matches for "betaprior1".

2011 Nov 29
0
[SOLVED]looking for beta parameters
...is > between .8 and 1. > In addition, I know that the average of this "truncated tail" is a > given number, lets say .86. > I have found the beta.select function in the LearnBayes package, which > is as follows: > > function (quantile1, quantile2) > { > betaprior1 = function(K, x, p) { > m.lo = 0 > m.hi = 1 > flag = 0 > while (flag == 0) { > m0 = (m.lo + m.hi)/2 > p0 = pbeta(x, K * m0, K * (1 - m0)) > if (p0 < p) > m.hi = m0 > else m....