data(psa_synth)
# Control group (PSA not provided)
PlotStackedBar(psa_synth[psa_synth$Z == 0, ], d.colors = c(
"grey80", "grey60",
"grey30", "grey10"
), d.labels = c(
"signature", "small",
"middle", "large"
))
# Treated group (PSA provided)
PlotStackedBar(psa_synth[psa_synth$Z == 0, ], d.colors = c(
"grey80", "grey60",
"grey30", "grey10"
), d.labels = c(
"signature", "small",
"middle", "large"
))
Run the code above in your browser using DataLab