Rev 10305 | Blame | Last modification | View Log | Download | RSS feed
\name{terms.object}\title{Description of Terms Objects}\alias{terms.object}\description{An object of class \code{\link{terms}} holds information about amodel. Usually the model was specified in terms of a\code{\link{formula}} and that formula was used to determine the termsobject.The object itself is simply the formula supplied to the call of\code{\link{terms.formula}}. The object has a number of attributesand they are used to construct the model frame.}\value{An object with the following attributes:\item{factors}{A matrix of variables by terms showing which variablesappear in which terms.}\item{term.labels}{A character vector containing the labels for eachof the terms in the model.}\item{variables}{A list of the variables in the model}\item{intercept}{Either 0, indicating no intercept is to be fit, or 1indicating that an intercept is to be fit.}\item{order}{A vector of the same length as \code{term.labels}indicating the order of interaction for each term }\item{response} {The index of the variable (in variables) of theresponse (the left hand side of the formula).}\item{offset}{If the model contains \code{\link{offset}} terms thereis an \code{offset} attribute indicating which terms are offsets}\item{specials}{If the \code{specials} argument was given to\code{\link{terms.formula}} there is a \code{specials} attribute, alist of vectors indicating the terms that contain these specialfunctions.}The object has class \code{c("terms", "formula")}.}\note{These objects are different from those found in S. In particularthere is no \code{formula} attribute, instead the object is itself aformula. Thus, the mode of a terms object is different as well.An example of the \code{specials} argument can be seen in the\code{\link{aov}} function.}\seealso{\code{\link{terms}},\code{\link{terms.default}},\code{\link{formula}}.}%%--- MM: I would really like instructive examples here...\keyword{models}