alligator | R Documentation |
Data on food preference for 59 alligators. It is of interest to examine if different sized alligators have different food preferences.
data(alligator)
A data frame with 59 observations on the following 2 variables.
length
length of the alligator (in meters)
food
a factor with levels Fish
Invertebrates
Other
representing the food preference
Agresti, A. (2007). An Introduction to Categorical Data Analysis. Wiley
data(alligator)
library(VGAM)
model <- vglm(food ~ length, family=multinomial, data=alligator)
summary(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.