Hi all,
I am using rdpow from ssc. I am interested in modifying the graph that this user-written command produces through the graph_options option. Namely, I would like to label the values of the y-axis and add a vertical line to the x-axis. This vertical line should carry the label, visible on the graph itself, "Mean of Dep. Var." The vertical line should be at x=2.02.
Here is the code I've tried:
This is the error I got:
When I remove
and only try to label the y axis, I get:
Could someone please let me know what I am doing wrong?
Thanks in advance!
I am using rdpow from ssc. I am interested in modifying the graph that this user-written command produces through the graph_options option. Namely, I would like to label the values of the y-axis and add a vertical line to the x-axis. This vertical line should carry the label, visible on the graph itself, "Mean of Dep. Var." The vertical line should be at x=2.02.
Here is the code I've tried:
Code:
rdpow y running_var , tau(5) plot graph_options(xla(-7.5 -5 -2.5 0 2.5 5 7.5) yla(.1 "10%" .2 "20%" .3 "30%" .4 "40%" .5 "50%" .6 "60%") xaxis(1 2) xline(2.02) xlabel(2.02 "Mean of Dep. Var.", axis(2)) xtitle("",axis(2)) title(Power Function) xtitle(Magnitude of Effect to Detect) ytitle(Power)) covs($covs) vce(cluster county)
Code:
xlabels(2.02 Mean of Dep. Var. , axis(2)) not allowed, xaxis2 does not exist
Code:
xaxis(1 2) xline(2.02) xlabel(2.02 "Mean of Dep. Var.", axis(2)) xtitle("",axis(2))
Code:
invalid label specifier, : .1 10% .2 20% .3 30% .4 40% .5 50% .6 60%:
Could someone please let me know what I am doing wrong?
Thanks in advance!
Comment