Displaying 2 results from an estimated 2 matches for "quantile2".
Did you mean:
quantile
2011 Nov 29
0
[SOLVED]looking for beta parameters
...he mass lies above .8, that 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 =...
2012 Sep 29
5
Generating by inverting function
Hello,
I am trying to generate random survival times by inverting the function, S(t)= exp(b*F(t)), where b is constant and F(t) is some cumulative distribution function, let say that F(t) is cdf of normal distribution or any others distributions.
as we know that S(t) has uniform distribution on (0,1) so we can write that
U= exp(b*F(t)), where U is uniform (0,1). Now to generat the time t, we