data(lizards)
lizards
data set contains the following variables:
Species
(the species of the lizard): a
two-level factor with levelsSagrei
andDistichus
.Height
(perch height): a two-level
factor with levelshigh
(greater than 4.75 feet)
andlow
(lesser or equal to 4.75 feet).Diameter
(perch diameter): a
two-level factor with levelsnarrow
(greater
than 4 inches) andwide
(lesser or equal to 4
inches).Fienberg SE (1980). The Analysis of Cross-Classified Categorical Data. Springer, 2nd edition.
Schoener TW (1968). "The Anolis Lizards of Bimini: Resource Partitioning in a Complex Fauna". Ecology, 49(4), 704-726.
# load the data and build the correct network from the model string.
data(lizards)
res = empty.graph(names(lizards))
modelstring(res) = "[Species][Diameter|Species][Height|Species]"
plot(res)
table(lizards[, c(3,2,1)])
# This data set is useful as it offers nominal values for
# the conditional mutual information and X^2 tests.
ci.test("Height", "Diameter", "Species", test = "mi", data = lizards)
ci.test("Height", "Diameter", "Species", test = "x2", data = lizards)
Run the code above in your browser using DataLab