Calculate average causal effect based on diff-in-means estimator.
CalDIM(data)
data
A data.frame of which columns includes a binary treatment (Z), an ordinal decision (D), and an outcome variable (Y).
data.frame
A data.frame of diff-in-means estimates effect for each value of D and Y.
data(synth) CalDIM(synth)