#31 dweibull() parametrization confusing in the manual

v1.0_(example)
closed
nobody
None
1
2014-05-21
2014-05-14
No

Weibull distribution in JAGS (dweib() in bugs module) is defined in terms of shape and rate parameters. JAGS manual 3.4.0 states that there is dweibull() alias that is compatible with R. This is confusing, because in R (at least 3.0+) dweibull() is defined in terms of shape and scale parameters, and one would expect that in JAGS dweibull() is shape/scale as well. But this is not the case.

If it's not possible to make dweibull() really use shape/scale parametrization, maybe this alias could be removed, as it would force the user to take a second look at the parameters. At the very least the manual should not state R compatibility.

Discussion

  • Martyn Plummer

    Martyn Plummer - 2014-05-21

    Fair point. I added some precision to the section on distribution aliases, noting that using an alias does not change the parameterization. I also point ou the different parameterization of the Weibull distribtuion in BUGS and R.

    The problem of incompatible parameterizations is pervasive. For example the normal distribution - which does not need an alias - is parameterized in terms of the precision, not the variance in BUGS. This problem won't go away until I add named parameters for functions and distributions.

     
  • Martyn Plummer

    Martyn Plummer - 2014-05-21
    • status: open --> closed
     


Anonymous

Cancel  Add attachments