Menu

sample a truncated distribution for prior

Help
sophie
2012-04-11
2012-09-01
  • sophie

    sophie - 2012-04-11

    Hi, all:

    Does anybody know how to sample a truncated distribution for the prior without
    zero/one trick in JAGS?

    for example: I want a random variable v from a truncated exponential
    distribution with parameter r, at the domain from 2 to infinity.

    Any suggestion will be appreciated. Thanks a lot.

    sophie

     
  • Martyn Plummer

    Martyn Plummer - 2012-04-16

    Read the section of the user manual on censoring, truncation and prior
    ordering.

     
  • sophie

    sophie - 2012-04-16

    I thought the censoring and truncation are the same as BUGS, so I didn't pay
    attention. Thank you for your advice. That helps a lot.

     

Log in to post a comment.