Hi Statalist,
I would like to create a line graph showing frequency (percent) distribution of a given variable using line graph.
For instance, if I use "auto" data, how can i show percentage of "rep78" by "foreign" status and for the total sample in the same line graph. And finally I would like to get a single grpah lie the attached example.
Actually, I am trying to do something like:
sysuse auto
histogram mpg if foreign ==1 , discrete percent recast(connected) by/over(foreign, total)
But this is not the correct command. Could you please let me know how I can do this?
Related Posts with Line graph for frequency distribution by categorical variable
Providing start values for E-M algorithm (traj plug-in)Dear all, I am using a plug-in called traj. It is a subset of finite mixture modeling and it uses a…
Confidence intervals for the difference of two regression coefficient meansHi all, I am trying to calculate confidence intervals for the difference of two regression coeffici…
Finding Matches in Panel DataHello Statalisters, Firstly, thank you for having a look at my problem - any help or advice you cou…
using the i.year for time-fixed effects in a Differences-in-Differences ApproachHello everyone, I am not sure if a combination of a time-fixed-efffects model and a Differences-in-…
Need help with the postfile commandHello, I'm trying to use the postfile command but everytime i try to execute it it gives me a error…
Subscribe to:
Post Comments (Atom)
0 Response to Line graph for frequency distribution by categorical variable
Post a Comment