Draw binomial counts
Usage
draw_binomial(
prob = apply_link(latent, link),
trials = 1L,
N = length(prob),
link = "identity",
latent = NULL,
quantile_y = NULL
)Arguments
- prob
Probability of success per trial, already on the probability scale. Supplying it with a non-identity
linkis an error naminglatent.- trials
Number of trials per observation (scalar or vector).
- N
Number of observations. Defaults to
length(prob).- link
One of
"identity"(default),"logit","logistic","probit", or a function applied tolatent. Any other name is an error.- latent
Latent variable on an unbounded scale, mapped to the probability scale by
link.- quantile_y
Optional quantile vector for
correlate.