The R Project SVN R

Rev

Rev 27630 | Rev 30855 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27630 Rev 27688
Line 17... Line 17...
17
\method{model.frame}{glm}(formula, \dots)
17
\method{model.frame}{glm}(formula, \dots)
18
 
18
 
19
\method{model.frame}{lm}(formula, \dots)
19
\method{model.frame}{lm}(formula, \dots)
20
}
20
}
21
\arguments{
21
\arguments{
22
  \item{formula}{a model formula or an \R object.}
22
  \item{formula}{a model \code{\link{formula}} or \code{\link{terms}}
-
 
23
    object or an \R object.}
23
 
24
 
24
  \item{data}{\code{data.frame}, list, \code{environment} or object
25
  \item{data}{\code{data.frame}, list, \code{environment} or object
25
    coercible to \code{data.frame} containing the variables in
26
    coercible to \code{data.frame} containing the variables in
26
    \code{formula}.  Neither a matrix nor an array will be accepted.}
27
    \code{formula}.  Neither a matrix nor an array will be accepted.}
27
 
28
 
Line 66... Line 67...
66
  
67
  
67
  The rest of this section applies only to the default method.
68
  The rest of this section applies only to the default method.
68
 
69
 
69
  If either \code{formula} or \code{data} is already a model frame (a
70
  If either \code{formula} or \code{data} is already a model frame (a
70
  data frame with a \code{"terms"} attribute and the other is missing,
71
  data frame with a \code{"terms"} attribute and the other is missing,
-
 
72
  the model frame is returned.  Unless \code{formula} is a terms object,
-
 
73
  \code{terms} is called on it.  (If you wish to use the
-
 
74
  \code{keep.order} argument of \code{terms.formula}, pass a terms
71
  the model frame is returned.
75
  object rather than a formula.)
72
 
76
 
73
  All the variables in \code{formula}, \code{subset} and in \code{\dots}
77
  All the variables in \code{formula}, \code{subset} and in \code{\dots}
74
  are looked for first in \code{data} and then in the environment of
78
  are looked for first in \code{data} and then in the environment of
75
  \code{formula} (see the help for \code{\link{formula}()} for further
79
  \code{formula} (see the help for \code{\link{formula}()} for further
76
  details) and collected into a data frame. Then the \code{subset}
80
  details) and collected into a data frame. Then the \code{subset}