Dear Statalisters,
I have to generate data for a sample, which has three groups (G1, G2 and
G3). In this respect, the probability distribution for the G1, G2 and G3
follows a multinomial distribution with parameter vector P = (pG1 ,pG2
,pG3 ).
I have used -genbinomial- to generate the first two groups, and then the
last one is calculate by subtraction. Since this is not an elegant way to
do that, is the any routine that does in Stata the task above mentioned ?
I have not found anything yet.
Thanks in advance!
Tiago
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/