
Object-Oriented Programming in R 77
Exercise 3.3
The S3 system has been used for some years and a very extensive set of tools
for statistical modeling has been developed based on this system (Chambers
and Hastie, 1992). Among the builtin classes is glm. Fit a simple generalized
linear model (using an example from the help page for glm is the easiest way)
and examine its structure. What classes does glm extend? What are the slots
in a glm instance?
3.3.2 Expression data example
In this section we consider constructing something similar to the
ExpressionSet class used in Bioconductor entirely within the S3 system. We
first define a class that will relate