alligator {isdals}R Documentation

Alligator food preference

Description

Data on food preference for 59 alligators. It is of interest to examine if different sized alligators have different food preferences.

Usage

data(alligator)

Format

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

Source

Agresti, A. (2007). An Introduction to Categorical Data Analysis. Wiley

Examples

data(alligator)
library(VGAM)
model <- vglm(food ~ length, family=multinomial, data=alligator)
summary(model)

[Package isdals version 3.0.1 Index]