fedeca.metrics¶
Define metrics for ECA analysis.
- standardized_mean_diff(confounders, treated)¶
Compute the Standardized Mean Differences (SMD).
Compute the Standardized Mean Differences between treated and control patients.
- Parameters:
confounders (
np.ndarray
) – confounders array.treated (
np.ndarray
) – mask of booleans giving information about treated patients.
- Returns:
smd – standardized mean differences of the confounders.
- Return type:
np.ndarray