I'm using the dtable commands to generate summary tables/descriptive statistics. Right now I'm generating tables that include all responses, e.g.,
using syntax like
What I'd really like to get is
Any thoughts on code for this? I'd love to find some option that would limit to just showing 'yes' responses. Thanks!
Depression
No 90 (90%)
Yes 10 (10%)
No 90 (90%)
Yes 10 (10%)
Code:
dtable i.(depression), title("Mental Health Prevalence") note(Results reported as N(%)) nosample
What I'd really like to get is
Depression 10 (10%)
Comment