Hello,
I am wondering how I can catplot multiple variables. For example, I have five variables named count_truancy, count_physmal, count_physcare, count_mental, and count_health. Each of these variables =1 a certain number of times. I.e., truancy=1 1073 times, physmal=1 900 times and so on. I want a catplot type graph to show how many times each equals 1. I saw an example like the below, which is how I would love my graph to look. However, these aren't mutually exclusive so combining them into one variable messes up the counts (if I make one variable and do replace, it changes the numbers). Is there a better command for frequencies of dummy variables all on one graph? I don't really want to do graph combine because I want them to show all in one plot so it is easy for a reader to see how many more count_truancy there is than count_physmal and so on. Thanks! -CJ

clear
input float(count_truancy count_physcare)
1 0
1 1
0 1
1 1
end
[/CODE]
I am wondering how I can catplot multiple variables. For example, I have five variables named count_truancy, count_physmal, count_physcare, count_mental, and count_health. Each of these variables =1 a certain number of times. I.e., truancy=1 1073 times, physmal=1 900 times and so on. I want a catplot type graph to show how many times each equals 1. I saw an example like the below, which is how I would love my graph to look. However, these aren't mutually exclusive so combining them into one variable messes up the counts (if I make one variable and do replace, it changes the numbers). Is there a better command for frequencies of dummy variables all on one graph? I don't really want to do graph combine because I want them to show all in one plot so it is easy for a reader to see how many more count_truancy there is than count_physmal and so on. Thanks! -CJ
clear
input float(count_truancy count_physcare)
1 0
1 1
0 1
1 1
end
[/CODE]

Comment