fedeca.metrics

Define metrics for ECA analysis.

standardized_mean_diff(confounders, treated, weights=None, use_unweighted_variance=True)

Compute the Standardized Mean Differences (SMD).

Compute the Standardized Mean Differences between treated and control patients.

Parameters:
Returns:

smd – standardized mean differences of the confounders.

Return type:

np.ndarray