The R Project SVN R

Rev

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

Rev 30449 Rev 31094
Line 35... Line 35...
35
\value{
35
\value{
36
  A replacement for \code{call} for the \code{predvars} attribute of
36
  A replacement for \code{call} for the \code{predvars} attribute of
37
  the terms.
37
  the terms.
38
}
38
}
39
\seealso{
39
\seealso{
40
  \code{\link{model.frame}}, \code{\link{poly}}, \code{\link{scale}},
40
  \code{\link{model.frame}}, \code{\link{poly}}, \code{\link{scale}};
41
  \code{\link[splines]{bs}}, \code{\link[splines]{ns}},
41
  \code{\link[splines]{bs}} and \code{\link[splines]{ns}} in package
42
  \code{\link[datasets]{cars}}
42
  \pkg{splines}, \code{\link[datasets]{cars}}
43
}
43
}
44
\examples{
44
\examples{
45
## using poly: this did not work in R < 1.5.0
45
## using poly: this did not work in R < 1.5.0
46
fm <- lm(weight ~ poly(height, 2), data = women)
46
fm <- lm(weight ~ poly(height, 2), data = women)
47
plot(women, xlab = "Height (in)", ylab = "Weight (lb)")
47
plot(women, xlab = "Height (in)", ylab = "Weight (lb)")