【发布时间】:2020-05-30 01:38:51
【问题描述】:
我使用了 synth 包来生成用于绘图的 dataprep.out 和 synth.out 对象。但是,当我使用 path.plot 函数时,该图默认为只是治疗后的时期。
path.plot(
synth.res = synth.out,
dataprep.res = dataprep.out,
Ylab = "black mortality rate (per 100000) among 80-84 yos",
Xlab = "year",
Legend = c("Iowa", "synthetic Iowa"),
Legend.position = "bottomright"
)
default plot: just post-treatment period
当我调整 Z.plot 参数时,只绘制了预处理期。
path.plot(
synth.res = synth.out,
dataprep.res = dataprep.out,
Ylab = "black mortality rate (per 100000) among 80-84 yos",
Xlab = "year",
Legend = c("Iowa", "synthetic Iowa"),
Legend.position = "bottomright",
Z.plot = TRUE
)
plot specifying Z.plot parameter
如果有人能确定为什么会发生这种情况,我将不胜感激。谢谢!
【问题讨论】:
标签: r