The R Project SVN R

Rev

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

Rev 68948 Rev 72321
Line 133... Line 133...
133
\seealso{
133
\seealso{
134
  \code{\link{step}}, \code{\link{aov}}, \code{\link{lm}},
134
  \code{\link{step}}, \code{\link{aov}}, \code{\link{lm}},
135
  \code{\link{extractAIC}}, \code{\link{anova}}
135
  \code{\link{extractAIC}}, \code{\link{anova}}
136
}
136
}
137
\examples{
137
\examples{
138
\testonly{od <- options(digits = 5)}
138
\dontshow{od <- options(digits = 5)}
139
require(graphics); require(utils)
139
require(graphics); require(utils)
140
## following example(swiss)
140
## following example(swiss)
141
lm1 <- lm(Fertility ~ ., data = swiss)
141
lm1 <- lm(Fertility ~ ., data = swiss)
142
add1(lm1, ~ I(Education^2) + .^2)
142
add1(lm1, ~ I(Education^2) + .^2)
143
drop1(lm1, test = "F")  # So called 'type II' anova
143
drop1(lm1, test = "F")  # So called 'type II' anova
Line 145... Line 145...
145
## following example(glm)
145
## following example(glm)
146
\dontshow{example(glm, echo = FALSE)}
146
\dontshow{example(glm, echo = FALSE)}
147
drop1(glm.D93, test = "Chisq")
147
drop1(glm.D93, test = "Chisq")
148
drop1(glm.D93, test = "F")
148
drop1(glm.D93, test = "F")
149
add1(glm.D93, scope = ~outcome*treatment, test = "Rao") ## Pearson Chi-square
149
add1(glm.D93, scope = ~outcome*treatment, test = "Rao") ## Pearson Chi-square
150
\testonly{options(od)}
150
\dontshow{options(od)}
151
}
151
}
152
\keyword{models}
152
\keyword{models}