cleverly.sensitivity.BalanceRow#
- class cleverly.sensitivity.BalanceRow(contrast: str, covariate: str, mean_group: float, mean_rest: float, mean_group_weighted: float, mean_rest_weighted: float, spread: float, smd_unweighted: float, smd_weighted: float)[source]#
One covariate in one contrast.
- Parameters:
- contrast
str The two groups compared, in words.
- covariate
str The covariate; one level of a categorical covariate has its own row, named
"column = level".- mean_group
float The covariate’s mean in the first group, with the data’s weights only.
- mean_rest
float Its mean in the other group, with the data’s weights only.
- mean_group_weighted
float The first group’s mean under the fit’s weights.
- mean_rest_weighted
float The other group’s mean under those weights.
- spread
float The standard deviation both differences are divided by, computed before weighting by the propensity (see
CovariateBalance.estimand).nanfor a covariate with no spread.- smd_unweighted
float The standardized mean difference before weighting.
- smd_weighted
float The standardized mean difference after weighting.
- contrast