Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with Graph (option not allowed)

    Hello,

    I am trying to generate a diff-in-diff 4 point graph using the code below. "mean_y date" , "formatted if group" and "group_" are all float or byte. I don't think this is an issue of strings vs. floats. I'd appreciate any help!


    twoway (connected mean_y date_formatted if group_ == 1) (connected mean_y date_formatted if group_ == 2) (rcap upper_bound lower_bound date_formatted if group_ == 1, lcolor(navy)) (rcap upper_bound lower_bound date_formatted if group_ == 2, lcolor(maroon)), legend(label(1 "Control group") label(2 "Treated group") label(3 "95% confidence interval") label(4 "95% confidence interval")) /ytitle("Mean Covid Case Rate (per 100,000 people)") xtitle("Date") title("Effect of Stay-At-Home order on Covid Case Rates")

  • #2
    /ytitle
    This looks erroneous.

    Comment

    Working...
    X