Checks that data meets the structural requirements for use in
meta_did(). Called automatically inside meta_did(); also useful for
diagnosing problems before fitting.
Arguments
- data
A data frame with one row per study. Must contain
study_idanddesigncolumns. Valid designs:"did": DiD studies with separate pre/post summaries for both groups."did_change": DiD studies reporting only change means and SDs."rct": RCT studies with post-treatment summaries only."pp": Pre-post studies with no control group.
The
rhocolumn (pre-post correlation) is optional for"did"and"pp"designs; missing values trigger hierarchical imputation whenhierarchical_rho = TRUE.