Package index
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?).
-
skellam1()skellam1_stanvars()log_lik_skellam1()posterior_predict_skellam1()posterior_epred_skellam1() - Symmetric Skellam custom family for brms
-
skellam2()skellam2_stanvars()log_lik_skellam2()posterior_predict_skellam2()posterior_epred_skellam2() - Asymmetric Skellam custom family for brms
-
dnorm1()dnorm1_stanvars()log_lik_dnorm1()posterior_predict_dnorm1()posterior_epred_dnorm1() - Discrete-normal custom family for brms (location 0, free scale)
-
dnorm2()dnorm2_stanvars()log_lik_dnorm2()posterior_predict_dnorm2()posterior_epred_dnorm2() - Discrete-normal custom family for brms (free location and scale)
-
dlaplace1()dlaplace1_stanvars()log_lik_dlaplace1()posterior_predict_dlaplace1()posterior_epred_dlaplace1() - Discrete-Laplace custom family for brms (location 0, free scale)
-
dlaplace2()dlaplace2_stanvars()log_lik_dlaplace2()posterior_predict_dlaplace2()posterior_epred_dlaplace2() - Discrete-Laplace custom family for brms (free location and scale)
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
-
skellam2_dpars() - Derived quantities of the asymmetric Skellam family from a fitted model