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
Marginal Effects of Simultaneous Equation Systems or IV-RegressionsHi All, I would like to post-estimate marginal effects by group after executing reg3 or xtivreg. Fo…
Generating a new variableGood day! In this dataset I have, I have different indicators of innovation: (innov1, innov2, innov3…
Non-radial efficiency in DEAHello everyone! I am using DEA to estimate the efficiency scores of DMUs. I am aware of the 'dea' an…
Gini coefficient and Lorenz curveDear Statalist, I’m using Stata for the first time for a school assignment and since my knowledge o…
xtabond2 with unbalanced panels and missing values in betweenHi everyone, I am conducting an empirical work where I am estimating the effect of financial develo…
Subscribe to:
Post Comments (Atom)
0 Response to Line graph for frequency distribution by categorical variable
Post a Comment