Dear all,
I am having trouble plotting the information I want.
I have re-estimated an effect many times. Each time I have a coefficient and a p-value.
Now I want to plot these two variables in the same graph. In particular, in the x-axis, I want to have the estimates. For the p-values they should correspond to their estimates while we see the values of p-values on the y-axis.
Exactly I want to do something like this graph:

I tried the following, but did not work
Reference:
The graph is from:
Cai, Xiqian, et al. "Does environmental regulation drive away inbound foreign direct investment? Evidence from a quasi-natural experiment in China." Journal of development economics 123 (2016): 73-85.
I am having trouble plotting the information I want.
I have re-estimated an effect many times. Each time I have a coefficient and a p-value.
Now I want to plot these two variables in the same graph. In particular, in the x-axis, I want to have the estimates. For the p-values they should correspond to their estimates while we see the values of p-values on the y-axis.
Exactly I want to do something like this graph:
I tried the following, but did not work
Code:
twoway (kdensity bt yaxis(1)) (kdensity p_value yaxis(2)), ytitle(p-values) xtitle(estimates)
Reference:
The graph is from:
Cai, Xiqian, et al. "Does environmental regulation drive away inbound foreign direct investment? Evidence from a quasi-natural experiment in China." Journal of development economics 123 (2016): 73-85.
Comment