as.lmitt | R Documentation |
lm
object into teeMod
Converts the output of lm()
into a teeMod
object, for standard errors that account for block and cluster
information carried with the lm
's weights, and/or an
offset incorporating predictions of the outcome from a
separate model.
as.lmitt(x, specification = NULL)
as.teeMod(x, specification = NULL)
x |
|
specification |
Optional, explicitly specify the
|
The formula with which x
was created must include
a treatment identifier (e.g. assigned()
). If a model-based
offset is incorportated, the model's predictions would have to
have been extracted using cov_adj()
(as opposed to
predict{}
in order for teeMod
standard error
calculations to reflect propagation of error from these
predictions. This mechanism only supports treatment main effects:
to estimate interactions of treatment assignment with a moderator
variable, use lmitt()
instead of lm()
and
as.lmitt()
.
teeMod
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.