f_binomial {mcmcsae} | R Documentation |
Specify a binomial sampling distribution
Description
This function can be used in the family
argument of create_sampler
or generate_data
to specify a binomial sampling distribution. This
includes the special case of binary (Bernoulli) data.
Usage
f_binomial(link = c("logit", "probit"), n.trial = NULL)
Arguments
link |
the name of a link function. Currently the only allowed link functions
for the binomial distribution are |
n.trial |
the number of binomial trials. This can be specified either as a formula for a variable number of trials, or as a scalar value for a common number of trials for all units. |
Value
A family object.
[Package mcmcsae version 0.7.9 Index]