I am able to get a histogram as well as the empirical cumulative distribution as two separate graphs using the below commands:
and
However, I have not been able to figure out a way to overlay them on the same plot. I would be grateful for your advice.
An example of my intended output graph (example sourced from google photos) is appended here:
Code:
hist continuous_variable, freq
Code:
cumul continous_variable, gen(ecdf) equal
However, I have not been able to figure out a way to overlay them on the same plot. I would be grateful for your advice.
An example of my intended output graph (example sourced from google photos) is appended here:
Comment