Hello everyone!
I'm a high-school student who is writing a research paper in applied statistics and who is also a complete newbie in Stata. Right now I'm faced with a problem to which I couldn't find a clear solution on this forum.
My data set is rather simple. In fact, it's so simple that I'll use "auto.dta" on 16.0 Stata to hopefully explain my problem. I did following things: 1) I encoded the string "make"
2) I created a dummy variable with condition of price being less than 5000
3) I tried to create a bar graph of dummy variable
but I get this 
I can see that models are all messed up, but I want to know why the frequency doesn't result in right way.
Even the slightest bit of help is much appreciated.
Best regards,
Yeskendir
I'm a high-school student who is writing a research paper in applied statistics and who is also a complete newbie in Stata. Right now I'm faced with a problem to which I couldn't find a clear solution on this forum.
My data set is rather simple. In fact, it's so simple that I'll use "auto.dta" on 16.0 Stata to hopefully explain my problem. I did following things: 1) I encoded the string "make"
Code:
encode make, gen(make1)
Code:
gen price5000=cond(price<5000, 1, 0)
Code:
catplot make1, by(price5000)
I can see that models are all messed up, but I want to know why the frequency doesn't result in right way.
Even the slightest bit of help is much appreciated.
Best regards,
Yeskendir
Comment