Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. dataprep.out = dataprep(
  2. foo = texas,
  3. predictors = c("income", "ur", "poverty"),
  4. predictors.op = "mean",
  5. time.predictors.prior = c(1985:1993),
  6. special.predictors = list(
  7. list("bmprison", c(1990,1992,1991,1988), "mean"),
  8. list("alcohol", 1990, "mean"),
  9. list("aidscapita", c(1990,1991), "mean"),
  10. list("bmprison", c(1988,1990:1992), "mean"),
  11. list("alcohol", 1990, "mean"),
  12. list("aidscapita", 1990:1991, "mean"),
  13. list("black", 1991:1992, "mean"),
  14. list("perc1519", 1990, "mean")),
  15. dependent = "bmprison",
  16. unit.variable = "statefip",
  17. unit.names.variable = "state",
  18. time.variable = "year",
  19. treatment.identifier = 48,
  20. controls.identifier = statefiplist[!statefiplist %in% 48],
  21. time.optimize.ssr = 1985:1993,
  22. time.plot = 1985:2000
  23. )
  24.  
  25. synth.out = synth(dataprep.out)
  26. placebos = generate.placebos(dataprep.out, synth.out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement