View source: R/mdd_group_means.R
mdd_group_means | R Documentation |
Compute the means of each group for each time periods
mdd_group_means(
mdd_dat,
conf.int = FALSE,
weights = NULL,
by_treat_period = FALSE
)
mdd_dat |
An object of class mdd_dat created by |
conf.int |
Weather to compute confidence intervals for the means |
weights |
Optional column name of weights variable |
by_treat_period |
Should the mean be computed by treated period, i.e. before/after?
Default to |
library(multiDiff)
dat_DiD_raw <- sim_dat_common()
## format data
dat_DiD <- mdd_data_format(data=dat_DiD_raw)
mdd_group_means(dat_DiD)
mdd_group_means(dat_DiD, conf.int = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.