Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: To: statalist <[email protected]>


From   Lin Yang <[email protected]>
To   undisclosed-recipients:;
Subject   st: To: statalist <[email protected]>
Date   Fri, 14 Feb 2014 13:21:15 -0600

Hi All

A question regarding how to retrieve the adjusted prevalence from
logistic models.
I supposed I could use "margins", and set my covariates at certain
values, but I am not sure what to do with continuous variables for
adjustment.

For example, I run my model
xi: logit outcome i.cov1 i.cov2 age
where cov1 =3D (1, 2), cov2 =3D (1, 2, 3), and age is a continuous variable.=

then I try to retrieve the prevalence of outcome when cov1=1 or 2,
cov2=1 or 2 or 3,and adjusting for age
Should I do
margins, at (_Icov1_2=0 _Icov2_2=0 _Icov2_3=0)
or
margins, at (_Icov1_2=0 _Icov2_2=0 _Icov2_3=0) atmeans

I am not sure whether having 'atmeans' or not would give me a age
adjusted prevalence.
Would very much appreciate your help!

Thanks!

Best,
Lin Yang
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index