CalDIMsubgroup | R Documentation |
Calculate average causal effect based on diff-in-means estimator.
CalDIMsubgroup(
data,
subgroup,
name.group = c("Overall", "Female", "Male", "Non-white\nMale", "White\nMale")
)
data |
A |
subgroup |
A list of numeric vectors for the index of each of the five subgroups. |
name.group |
A character vector including the labels of five subgroups. |
A data.frame
of diff-in-means estimates for each value of D and Y for each subgroup.
data(synth)
subgroup_synth <- list(
1:nrow(synth), which(synth$Sex == 0), which(synth$Sex == 1),
which(synth$Sex == 1 & synth$White == 0), which(synth$Sex == 1 & synth$White == 1)
)
CalDIMsubgroup(synth, subgroup = subgroup_synth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.