Computes overall and differential sample attrition for a two-group design, the inputs to the What Works Clearinghouse (WWC) attrition standard. Differential attrition is the absolute difference between the treatment and comparison attrition rates.
Arguments
- treatment
Vector identifying group membership; exactly two unique non-missing values (the larger is treated as the treatment group, as in
hedges_g()).- retained
Logical (or
0/1) the same length astreatment:TRUE/1for cases retained in the analytic sample,FALSE/0for those lost.- na.rm
Logical; drop rows where
treatmentorretainedisNA. DefaultTRUE.
Value
A one-row data frame with columns attrition_overall,
attrition_treatment, attrition_comparison, and
differential_attrition (all proportions).
Details
This function reports the attrition rates; it does not classify them. Compare the overall and differential rates against the WWC attrition boundary for your chosen response assumption (cautious or optimistic) in the Procedures Handbook.