f_multinomial {mcmcsae} | R Documentation |
Specify a multinomial sampling distribution
Description
This function can be used in the family
argument of create_sampler
or generate_data
to specify a multinomial sampling distribution. This
includes the special case of categorical (multinoulli) data.
Usage
f_multinomial(link = "logit", n.trial = NULL, K = NULL)
Arguments
link |
the name of a link function. Currently the only allowed link function
for the multinomial distribution is |
n.trial |
the number of multinomial 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. |
K |
number of categories for multinomial model; only used for prior predictive sampling. |
Value
A family object.
[Package mcmcsae version 0.7.9 Index]