handle_moderating_variable: handle_moderating_variable handles moderating variable...

View source: R/handle_moderating_variable.R

handle_moderating_variableR Documentation

handle_moderating_variable 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.

Description

handle_moderating_variable 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.

Usage

handle_moderating_variable(
  ordered.data,
  att.sets,
  atc.sets,
  PM.object,
  moderator,
  unit.id,
  time.id,
  qoi.in
)

Arguments

ordered.data

data.frame

att.sets

matched.set object for the ATT or ART

atc.sets

matched.set object for the ATC

PM.object

PanelMatch object

moderator

string specifying the name of the moderating variable

unit.id

string specifying the unit id variable

time.id

string specifying the time id variable

qoi.in

string specifying the QOI

Value

Character vector of valid moderating variable values


PanelMatch documentation built on June 22, 2024, 10:32 a.m.