[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Plotting stored estimates
Thank you to Roger, Scott and Nick for their very helpful suggestions on
how to go about doing this. I can now produce the graphs, and I have
learnt a few new things about Stata too!
Apologises if this is a basic question.
I have a binary variable kcons which indicates whether or not the
has consulted their doctor about knee pain and another variable
indicating the age group to which the person belongs.
I have calculated the mean of kcons within each level of age_cat
-mean- with the -over()-, option to get the probability of
with knee pain in each age group. I have then saved these
using -estimates store-.
I would now like to produce a scatter plot the proportion of
consult in each category against age_cat to assess whether there
is a trend.
This sounds like it should be straightforward but I can't work out
the manuals (I have looked under _estimates in the programming
and I can't find anything in the FAQs about how to do this. If I
scatter _est age_cat, I get a flat plot. I could of course produce
plot in Excel by typing in the results of -mean-, but I feel that
is probably an important feature that I should learn to use properly?
I have included my code and out put below.
* For searches and help try: