[R] multivariate sampling question again

Peng Zhang pzhang at hsph.harvard.edu
Mon Feb 17 17:42:03 CET 2003


Dr. Bolker

I just wrote it yesterday. Thank you anyway. However do you have some
ideas about sampling from restricted beta distribution. say from beta(a,
b) but value between m and n. Now I generate lots of samples from beta(a,
b) and then choose value between m and n, but it is very time-consuming.
Do you have some good ideas? Thanks again!

Best wishes,
Peng

*******************************
Peng Zhang
Department of Biostatistics
Harvard School of Public Health
655 Huntington Avenue
Boston, Massachusetts 02115
*******************************

I believe I can fly
I believe I can touch the sky

On Mon, 17 Feb 2003, Ben Bolker wrote:

>
>   I have a few of these implemented (Wishart, multinomial, dirichlet),
> mostly from hints provided on the R list; I may try to clean them up for
> presentation, but you can write directly to me for fairly raw code if
> you're interested.
>
>   Ben Bolker
>
> On Sun, 16 Feb 2003, Peng Zhang wrote:
>
> > Hi
> >
> > Thanks for replying my question! What really interested me is that the
> > package providing some complex form sampling, such as wishart,
> > multinomial, dirichlet. And others for example conditional beta
> > distribution confining the random variable in the interval (a, b). Since
> > these concept are widely used in the baysian, I wonder whether somebody
> > has already written this package. Thanks!
> >
> > Best wishes,
> > Peng
> >
> > *******************************
> > Peng Zhang
> > Department of Biostatistics
> > Harvard School of Public Health
> > 655 Huntington Avenue
> > Boston, Massachusetts 02115
> > *******************************
> >
> > I believe I can fly
> > I believe I can touch the sky
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > http://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
>
> --
> 318 Carr Hall                                bolker at zoo.ufl.edu
> Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
> Box 118525                                   (ph)  352-392-5697
> Gainesville, FL 32611-8525                   (fax) 352-392-3704
>
>




More information about the R-help mailing list