I'm using the command
histogram [cat var]
to output a histogram in stata. I only care about the values of the categorical variable which are greater than 0, but there are some negative values and they also show up in the histogram. I understand that I could drop those values and then generate the histogram again (and I have done that and seen it work), but I am wondering if I could restrict the histogram to when the values are greater than 0 during its generation.
Related Posts with How to bound x-axis on histogram
Why non missing conflict?Hello, I'm saving a database in CSV format, then merging it again in. It generates a nonmissing conf…
New lppinv and tmpinv commands in Stata 16+Dear community, I've prepared two new commands to solve non-traditional types of linear programming…
How to do a Propensity Score Matching and a Parallel Trend Test for a Staggered Difference in Difference DesignDear all, I am still learning Stata, currently using Stata 14.2. Thank you very much in advance fo…
Dealing with duplicate time stamps in auction dataHello! I am working with a longitudinal panel dataset collected from an online auction. For each ob…
How to rename variable name with the variable label in a loopI created new variables based on the levels of a categorical variable using the -tab, gen- command a…
Subscribe to:
Post Comments (Atom)
0 Response to How to bound x-axis on histogram
Post a Comment