View source: R/generate_models.R
drop_term | R Documentation |
This function is needed to re-fit the models for Type III SS. If you have a model with an
interactive term (e.g. y ~ a + b + a:b
), when you try to refit without one of the lower-order
terms (e.g. y ~ a + a:b
) lm()
will add it back in. This function uses a fitting function
that operates underneath lm()
to circumvent this behavior. (It is very similar to drop1()
.)
drop_term(fit, term)
fit |
The model to update. |
term |
The term to drop from the model. |
An object of the class lm
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.