powered by
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
Fish
Invertebrates
Other
data(alligator) library(VGAM) model <- vglm(food ~ length, family=multinomial, data=alligator) summary(model)
Run the code above in your browser using DataLab