Dear all:
I have a categorical variable with vastly unequal frequencies. I would like to display the frequencies on a log scale. I cannot seem to get the right syntax, though. Here is a simple example:
clear
input x freq
0 3
1 50
2 500
end;
expand freq
graph hbar (count) , over(x) // this works, not on a log scale
graph hbar (count) , over(x) yscale(log) // does not work, weird graphical result
Does anybody have a suggestion?
Thanks,
matthias
Related Posts with barchart: how to put the frequency axis on a log scale
Generating new variable using hospital codes of multiple diagnosisHello, I have a dataset with patient ids. Each patient is in the dataset multiple times and have mu…
Sum of squared deviationI have a dataset as follows: time return of stock a return of stock b eturn of stock c eturn of s…
Creating loop on date variableHello, My date variable (x11) is in the format:%td. I am trying to filter out a sub sample of my da…
Postdoctoral Employment opportunityDo you have experience in econometrics, Stata, and simulation techniques? We have an immediate openi…
nested loopsin the case that I want to run the analysis of a group of variables by quintiles and considering als…
Subscribe to:
Post Comments (Atom)
0 Response to barchart: how to put the frequency axis on a log scale
Post a Comment