Skip to contents

Difference families

Model the difference d = y1 - y2 directly. The 1 variants fix the location at zero (do the two sources agree on average?); the 2 variants estimate it (by how much do they disagree?).

Truncation support

Stan lccdf functions injected as stanvars so each family normalises correctly under resp_trunc().

skellam1_lccdf_stanvars()
Log-CCDF of the symmetric Skellam distribution, for truncated fits
skellam2_lccdf_stanvars()
Log-CCDF of the asymmetric Skellam distribution, for truncated fits
dnorm1_lccdf_stanvars()
Log-CCDF of the discrete normal distribution with location 0, for truncated fits
dnorm2_lccdf_stanvars()
Log-CCDF of the discrete normal distribution with free location, for truncated fits
dlaplace1_lccdf_stanvars()
Log-CCDF of the discrete Laplace distribution with location 0, for truncated fits
dlaplace2_lccdf_stanvars()
Log-CCDF of the discrete Laplace distribution with free location, for truncated fits

Parameterisation helpers

Read a fitted family’s dpars under the names its documentation uses.

skellam2_dpars()
Derived quantities of the asymmetric Skellam family from a fitted model