winbugs - Defining new functions and distributions in the BUGS/JAGS/STAN language -
I am a very new statistical analysis world and I have recently been interested in Bugs / JAGS / Stan modeling language. Something that really surprises me that I have not defined any instance of new tasks or delays to avoid code duplication. For example, say that I often use the square of poseon distribution, is there anyway to do this?
  dsqpo & lt; - Function (lambda) {tmp ~ dpois (lambda) tmp2 & lt; - TMP * TMP return (TMP2)}    and then later  
  model {... x ~ dsqpo (alpha) y ~ dsqpo ( Beta)}    each time without defining a new variable variable For Stein, the work will be available with the next release in the current release, v2.2.0, in user- Defined tasks are not as part of language.  
 For the proposed syntax, see:  
 For additional sten-related help, check out the Stan-User Google Group:   
 
Comments
Post a Comment