Announcement

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

  • coefplot dual axis

    Hello everyone,
    I'm working with the coefplot. How can we have a secondary y axis for the second dependent variable? I'm using the following code and am getting the attached graphs. I'd appreciate any insights.

    Code:
    foreach x in log_sales sales {
        quietly reghdfe `x' i.panel_year, absorb(store_code_uc)
        estimates store m_`x'
    }
    
    coefplot m_log_sales, drop(_cons) vertical baselevels ci(95) recast(connected) name(logs,replace) scheme(tab1) ytitle("Percentage, %") 
    coefplot m_sale, drop(_cons) vertical baselevels ci(95) recast(connected) name(levels, replace) scheme(tab1) ytitle("Sales, $") 
    coefplot m_log_sales m_sale, drop(_cons) vertical baselevels ci(95) recast(connected) name(all, replace) scheme(tab1)








  • #2
    It seems that the plots were not uploaded in the previous post. Please see this.
    Click image for larger version

Name:	all.jpg
Views:	1
Size:	32.4 KB
ID:	1716226
    Click image for larger version

Name:	levels.jpg
Views:	1
Size:	29.9 KB
ID:	1716227
    Click image for larger version

Name:	logs.jpg
Views:	1
Size:	33.1 KB
ID:	1716228

    Comment

    Working...
    X