Computes mediation weights for either binary or multinomial mediators. The important part is that the influence functions can be obtained to compute standard errors.
medweight(
fit,
data = data,
var = NULL,
name.weight = "weights",
id.name = "id",
...
)