handles moderating variable calculations: In practice, this just involves slicing the data up according to the moderator, calling PanelEstimate() and putting everything back together This function creates the sets of objects on which PanelEstimate() will be called. It identifies the set of valid values the moderating variable can take on.
handle_moderating_variable(
ordered.data,
att.sets,
atc.sets,
PM.object,
moderator,
unit.id,
time.id,
qoi.in
)
Character vector of valid moderating variable values
data.frame
matched.set object for the ATT or ART
matched.set object for the ATC
PanelMatch object
string specifying the name of the moderating variable
string specifying the unit id variable
string specifying the time id variable
string specifying the QOI