Skip to content

Add inverse Gaussian distribution support #2788

Description

@alizma

Description

Analogous to other distributions, add support for the inverse Gaussian distribution with a sampling statement and Stan functions for working with its log density, CDF, and CCDF.

This can be a wrapper around the Boost implementation of the distribution.

Example

The motivation is from writing a GLM with an inverse Gaussian. Similar to rstanarm, I implemented a custom helper function to perform the likelihood computation and it seems like other people in the past have re-implemented the same set of algorithms. For example, see here and here. It would be nice to have this as a library function.

Current Version:

v4.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions