Hi all,
I would like to draw a graph with three information: 1. Age on y-axis(1) 2. Gender on y-axis (2) and 3. Number of Students as a histogram with numbers showing up. X-axis is year.
graph twoway (line Age Year, yaxis(1)) (line Gender Year, yaxis(2)) (hist Student Year), xlabel(1990(5)2019, labsize(small)) xline(0, lp(-)) legend(size(small) label(1 "Age") label(2 "Gender"))
It gives me the result saying that "too many variables specified"
Is there any other command that I can use to have three variables at the same time? Num of student has to be a histogram. Thank you.
Related Posts with Can I have two lines and one histogram in the same graph?
R Class ProgramI use a rclass program to obtain significance stars after running two regressions. When I run the fi…
Looping over folders in the directory and then over files in each folderHi everyone, I want to make a panel data dta file from several excel files sitting in several folde…
Generating a variable that is gives average score based on 'yes' responses on a bunch of variablesHello experts, I have been facing a challenge in producing an output that is based on average score…
Computing predicted probabilities of uptake in a discrete choice experimentDear Statalist, I conduct a discrete choice experiment. I have seven attributes with 6, 4, 3, 3, 3,…
Why there is missing t-test information for one controlling variable after using PSM and ptest?Array Dear friends, I applied PSM using below command, psmatch2 treat x1 x2 , out(Y) logit ate neig…
Subscribe to:
Post Comments (Atom)
0 Response to Can I have two lines and one histogram in the same graph?
Post a Comment