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]

Re: st: Comparing trend (y) with trend (x) using ordinal logistic regression


From   Ameya Bondre <[email protected]>
To   [email protected]
Subject   Re: st: Comparing trend (y) with trend (x) using ordinal logistic regression
Date   Mon, 12 Nov 2012 20:25:19 -0800

sorry for those mixed up percentages...

basically it's a change from 38% to 34% in malnutrition which we think
is associated with the changes for other predictors: breastfeeding 27%
to 40%; growth monitoring 46% to 50% and hand washing 40% to 48% - all
from 2009 to 2011.

Thank you,
Ameya



On Mon, Nov 12, 2012 at 8:20 PM, Ameya Bondre
<[email protected]> wrote:
> You are right about the fourfold table.. I am thinking of an
> alternative way to use these indicators that I have below for the same
> case (the corresponding variables are binary in the data set with a
> binary "time" variable having two values - for 2009 and 2011):
>
> time period     malnutrition     breastfeeding     growth monitoring
>   hand washing
> 2009                 38%                27%
> 46%                           40%
> 2011                  34%               40%
> 50%                           48%
>
>
> Is there a method that can test the association between  change
> (absolute or percentage change) in a response variable (malnutrition)
> and changes in the above predictors, between these two time points
> (when data collected at both times is cross-sectional and
> independent)? The aim here is to evaluate the sustainability of a
> program that ended in 2009, by comparing the situation in 2009 with
> 2011. These efforts/behaviors (predictors) were intensely promoted
> during the program from 2005 till 2009, to prevent malnutrition from
> rising.
>
> Sorry, I hope this works... the link for the counter-factual logic is
> useful but I think it doesn't fit with the study aim.
>
>
>
>
>
>
> On Mon, Nov 12, 2012 at 5:10 PM, Nick Cox <[email protected]> wrote:
>>
>> This model ignores cases of absent or present in both years and
>> changes in the other direction. It doesn't seem interesting or useful
>> to me, as you are throwing away three cells of a fourfold table. But I
>> am not an epidemiologist and may well be misunderstanding your aim.
>>
>> Nick
>>
>> On Mon, Nov 12, 2012 at 8:42 PM, Ameya Bondre
>> <[email protected]> wrote:
>> > I am sorry but I think I was not clear...
>> >
>> > So, the logit model that I am looking for is -
>> >
>> > malnutrition (0 = present in 2009 and 1 = present in 2011) --->
>> > constant + exclusive breastfeeding (0 = present in 2009 and 1 =
>> > present in 2011)
>> >
>> > to see relationship between change in malnutrition as a function of
>> > time and a function of change in breastfeeding prevalence...
>> >
>> >
>> > and the data I have is -
>> >
>> >   mal     bf      time
>> > 1       0       0       0
>> > 2       1       0       0
>> > 3       1       1       0
>> > 4       0       1       1
>> > 5       0       1       1
>> > 6       1       0       1
>> >
>> > where 0 and 1 for mal and bf, stand for "no" and "yes" or "absence"
>> > and "presence" of malnutrition and breastfeeding respectively,
>> > depending on time = 0 (2009) or 1 (2011). Both variables could take
>> > either of 2 possible values at one time.
>> >
>> > So, I can surely do logits choosing one of these variables as a
>> > function of time like; mal = c + time /bf = c + time..
>> >
>> > but, if I perform a logit like this: mal = c + bf + time, it can't
>> > give the relationship between change in mal (y) and change in bf (x),
>> > over time (or from 2009 to 2011)?...
>> >
>> > I am sorry, I hope I'm clear now?..
>> >
>> > Thank you for your time..
>> >
>> >
>> >
>> >
>> > On Mon, Nov 12, 2012 at 2:12 PM, Nick Cox <[email protected]> wrote:
>> >>
>> >> I'd follow Maarten's pointers on this. Yes; -bf- can be a predictor too.
>> >>
>> >> I am puzzled by your belief, repeated here, that you need new
>> >> variables. You already have the data in optimal form as 0 and 1 values
>> >> for logit analyses: creating different versions of the same variables
>> >> will make nothing easier and -logit- impossible.
>> >>
>> >> Nick
>> >>
>> >> On Mon, Nov 12, 2012 at 6:59 PM, Ameya Bondre
>> >> <[email protected]> wrote:
>> >> > Thanks, I am trying to see if I can adapt the example given by
>> >> > Maarten, to my data...but would it be possible if I want to include
>> >> > mal and bf as a response and predictor respectively, in the same logit
>> >> > model and with this data set?
>> >> >
>> >> > If yes, do I have to create new variables from mal and bf, to see
>> >> > trend in mal as a function of trend in bf?
>> >> >
>> >> >  I mean variables such as mal = 1 (mal in 2009) or 2 (mal in 2011) and
>> >> > bf = 1 (bf in 2009) or 2  (bf in 2011)
>> >> >
>> >> >
>> >> > On Mon, Nov 12, 2012 at 1:35 PM, Nick Cox <[email protected]> wrote:
>> >> >>
>> >> >> All your variables are binary, so your ordinal logit collapses to a
>> >> >> logit. Other predictors you don't name won't change that so long as
>> >> >> your outcome variable is fraction or proportion malnourished.
>> >> >>
>> >> >> Nick
>> >> >>
>> >> >> On Mon, Nov 12, 2012 at 6:17 PM, Ameya Bondre
>> >> >> <[email protected]> wrote:
>> >> >>
>> >> >> > My data set is in this format: [observations 1 to 6 --> children
>> >> >> > (with
>> >> >> > their mothers as respondents)]
>> >> >> >
>> >> >> >         mal     bf      time
>> >> >> > 1       0       0       0
>> >> >> > 2       1       0       0
>> >> >> > 3       1       1       0
>> >> >> > 4       0       1       1
>> >> >> > 5       0       1       1
>> >> >> > 6       1       0       1
>> >> >> >
>> >> >> > where each of the three variables is ordinal taking two values, 0 and
>> >> >> > 1.
>> >> >> >
>> >> >> > Explanation for variables:
>> >> >> >
>> >> >> > time: data collected in year ___ (0 = year 2009, 1 = year 2011)
>> >> >> > mal: child malnourished (0 = no, 1 = yes)
>> >> >> > bf: child breastfed exclusively for first six months (0 = no, 1 =
>> >> >> > yes)
>> >> >> >
>> >> >> > I want to see the relationship between the change in number of
>> >> >> > malnourished children with the change in number of children
>> >> >> > exclusively breastfed, from 2009 to 2011. I tried to perform an
>> >> >> > ordinal logistic regression but I am getting errors.
>> >> >> >
>> >> >> > Could you please explain the way in which I can construct new
>> >> >> > variables out of these, to enter in the ologit model? My end goal is
>> >> >> > to assess the change in malnutrition as a function of the change in
>> >> >> > other predictors as well, in addition to bf.
>> *
>> *   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/
>
>
>
>
> --
> Dr. Ameya Bondre
> Research Analyst, Tufts University, Boston, MA
> Master of Science in Public Health (MSPH)
> Johns Hopkins Bloomberg School of Public Health, Baltimore, MD
> MBBS, G.S Medical College and KEM Hospital, Mumbai, India
> Phone: (781) 298-1668
> Email: [email protected]



-- 
Dr. Ameya Bondre
Research Analyst, Tufts University, Boston, MA
Master of Science in Public Health (MSPH)
Johns Hopkins Bloomberg School of Public Health, Baltimore, MD
MBBS, G.S Medical College and KEM Hospital, Mumbai, India
Phone: (781) 298-1668
Email: [email protected]
*
*   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