Agresti (1996, p. 207) gives this data on 59 alligators sampled from a lake in Florida. It has the length of the alligator in meters and the primary food type found in the alligator's stomach. The food type was classified into three categories: "Fish", "Invertebrates", and "Other".
Of interest is whether or not the length of an alligator is associated with the primary food type. Does knowing the length of an alligator give us some indication about its primary food type? If so, how is length associated with the choice of food type?
Usage
data("gators", package = "nestedLogit")Format
A data frame with 59 rows and 2 columns.
- food
Primary food type found in the alligator's stomach, a factor with levels
"Other","Fish", and"Invertebrates".- length
Length of the alligator in meters, a numeric vector.
References
An example using this from https://data.library.virginia.edu/getting-started-with-multinomial-logit-models/.
