G'Day Stata Users!
I have a question on how I should approach this conundrum.
I am graphing 2 data sets on one graph (overlaying each other) and the problem is a problem of scale. One data set are too small compared to the NHANES . What should my approach be? use a secondary axis? reduce both to a common scal, both axes? Here is a sample of the code I am using :
twoway (histogram bmi if bmi<38.0 & ageyears>20 & gender==0 , color(gray) freq)(histogram bmxbmi if bmxbmi<38.0 & ridageyr>20 & riagendr==2, fcolor(none) lcolor(black) freq ), legend(order(1 "FORWARD" 2 "NHANES" ))
I have a question on how I should approach this conundrum.
I am graphing 2 data sets on one graph (overlaying each other) and the problem is a problem of scale. One data set are too small compared to the NHANES . What should my approach be? use a secondary axis? reduce both to a common scal, both axes? Here is a sample of the code I am using :
twoway (histogram bmi if bmi<38.0 & ageyears>20 & gender==0 , color(gray) freq)(histogram bmxbmi if bmxbmi<38.0 & ridageyr>20 & riagendr==2, fcolor(none) lcolor(black) freq ), legend(order(1 "FORWARD" 2 "NHANES" ))
Comment