This simple function creates a list of target variables that were used in the data adpative procedure.

extract_vars_from_basis(common_variables, i, a_names, w_names, z_names)

Arguments

common_variables

Variable sets found in the data adaptive procedure

i

iteration of search

a_names

Names of the exposures

w_names

Names of the covariates

z_names

Mediator names