.get_data_from_model | R Documentation |
Whenever a function in a model
(ate()
/ett()
/cov_adj()
/assigned()
) is called
without an explicit data=
argument, this will attempt to extract the
data from the model itself.
.get_data_from_model(which_fn, form = NULL, by = NULL)
which_fn |
Identify calling function, "weights" or "assigned", helps separate logic for the two functions. |
form |
Formula on which to apply |
by |
translation of unit of assignment/unitid/cluster ID names, passed down from weights. |
The form
specifies what columns of the data are needed. For current
use cases (ate()
/ett()
and assigned()
), this will be
only the unit of assignment variables, so e.g. form = ~ uoavar
, to
enable merging of UOA level variables to the model data. However, this can
easily be expanded if other variables are needed.
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.