Learn R Programming

mi (version 1.2)

multinomial: The multinomial family

Description

This function is a returns a family and is a generalization of binomial. users would only need to call it when calling change with what = "family", to = multinomial(link = 'logit')

Usage

multinomial(link = "logit")

Value

A family object

Arguments

link

character string among those supported by binomial

Author

Ben Goodrich and Jonathan Kropko, for this version, based on earlier versions written by Yu-Sung Su, Masanao Yajima, Maria Grazia Pittau, Jennifer Hill, and Andrew Gelman.

Details

This function is mostly cosmetic. The family slot for an object of unordered-categorical-class must be multinomial(link = 'logit'). For an object of ordered-categorical-class but not its subclasses, the family slot must be multinomial() but the link function can differ from its default ("logit")

See Also

Examples

Run this code
multinomial()

Run the code above in your browser using DataLab