Re: [R] problem with mode of marginal distriubtion of rdiri chlet{gtools}

2006-10-22 Thread Rob Carnell
hong qin alongway at gmail.com writes: Hi all, I have a problem using rdirichlet{gtools}. For Dir( a1, a2, ..., a_n), its mode can be found at $( a_i -1)/ ( \sum_{i}a_i - n)$; The means are $a_i / (\sum_{i} a_i ) $; I tried to study the above properties using rdirichlet from

Re: [R] problem with mode of marginal distriubtion of rdiri chlet{gtools}

2006-10-21 Thread Ben Bolker
hong qin alongway at gmail.com writes: Hi all, I have a problem using rdirichlet{gtools}. For Dir( a1, a2, ..., a_n), its mode can be found at $( a_i -1)/ ( \sum_{i}a_i - n)$; The means are $a_i / (\sum_{i} a_i ) $; I believe the problem is that the marginal modes are not equal