[R] simulat from dirichet process

Greg Snow Greg.Snow at imail.org
Mon Feb 8 18:10:10 CET 2010


There are a couple of packages with rdirichlet functions, including gtools and bayesm (and probably others).

If these do not do what you want, give us some more detail of what you are trying to do.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of khazaei at ceremade.dauphine.fr
> Sent: Thursday, February 04, 2010 4:26 AM
> To: r-help at r-project.org
> Subject: [R] simulat from dirichet process
> 
> Sorry for last mail because the subject was wrong.
> 
> 
> Hello all
> 
> I want to simulate a sample from Dirichlet distribution with parameter
> alpha(.), for example:
>  X=(0,1)
>  alpha(.)=2*beta(1,1).
> Can you help me please?
> 
> thank you
> khazaei
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list