View source: R/utility_functions.R
trimmer | R Documentation |
A utility function to find observations that appear to violate support conditions. This function is not called anywhere in the code, but it is just useful for debugging some common issues that users run into.
trimmer( g, tname, idname, gname, xformla, data, control_group = "notyettreated", threshold = 0.999 )
g |
is a particular group (below I pass in 2009) |
tname |
The name of the column containing the time periods |
idname |
The individual (cross-sectional unit) id name |
gname |
The name of the variable in |
xformla |
A formula for the covariates to include in the
model. It should be of the form |
data |
The name of the data.frame that contains the data |
control_group |
Which units to use the control group.
The default is "nevertreated" which sets the control group
to be the group of units that never participate in the
treatment. This group does not change across groups or
time periods. The other option is to set
|
threshold |
the cutoff for which observations are flagged as likely violators of the support condition. |
list of ids of observations that likely violate support conditions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.