dot-get_data_from_model: (Internal) Locate data in call stack

.get_data_from_modelR Documentation

(Internal) Locate data in call stack

Description

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.

Usage

.get_data_from_model(which_fn, form = NULL, by = NULL)

Arguments

which_fn

Identify calling function, "weights" or "assigned", helps separate logic for the two functions.

form

Formula on which to apply model.frame(). See details

by

translation of unit of assignment/unitid/cluster ID names, passed down from weights.

Details

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.

Value

data.frame


propertee documentation built on Aug. 22, 2025, 1:09 a.m.