.get_spec | R Documentation |
StudySpecification
in the call stackassigned()
/ate()
/ett()
/cov_adj()
all need the
StudySpecification
to operate. If any are called in the model without
a specification=
argument, this function sees if it can find the
StudySpecification
in another of these functions.
.get_spec(NULL_on_error = FALSE)
NULL_on_error |
if |
Note that it will never look inside assigned()
(gets complicated in
formulas), only in weights or cov_adj()
. E.g.
lm(y ~ assigned(), weights = ate(spec), offest = cov_adj(mod1))
lm(y ~ assigned(), weights = ate(), offest = cov_adj(mod1, specification = spec))
will both work, but
lm(y ~ assigned(spec), weights = ate(), offest = cov_adj(mod1))
will fail.
A StudySpecification
, or NULL
if NULL_on_error
is TRUE
and the StudySpecification
can't be found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.