Skip to contents

Returns a brms::stanvar() defining dnorm1_lccdf, the log complementary CDF of the discrete Normal(0, sigma) distribution: dnorm1_lccdf(y, sigma) = log P(Z > y). dnorm1_lccdf_stanvars() is used in the same way as dlaplace1_lccdf_stanvars(). dnorm1_lccdf computes the upper tail with erfc() rather than with the Stan function normal_lccdf, which returns negative infinity for standardised arguments above about 8.25 (see dnorm1()). dnorm1_lccdf_stanvars() takes no threshold argument.

Usage

dnorm1_lccdf_stanvars()

Value

A brms::stanvars object defining the dnorm1_lccdf Stan function, for combining with dnorm1_stanvars() via +.

See also

dnorm1() for the family itself; skellam1_lccdf_stanvars() for how resp_trunc() locates these functions by name.