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: Count if binomial variable changes


From   Joe Dreyfus <[email protected]>
To   <[email protected]>
Subject   Re: st: Count if binomial variable changes
Date   Mon, 04 Jun 2012 22:36:58 +0200

Dear Austin and Nick,

Thanks for your helpful advice.

Cheers,
Joe

On 4/06/12 9:09 PM, "Austin Nichols" <[email protected]> wrote:

>Nick Cox <[email protected]>, Joe Dreyfus <[email protected]>:
>Better to use tabulate with a lagged variable.
>http://www.stata.com/statalist/archive/2011-04/msg01110.html
>
>On Mon, Jun 4, 2012 at 2:30 PM, Nick Cox <[email protected]> wrote:
>> . help xttrans
>>
>> ???
>>
>> Nick
>>
>> On Mon, Jun 4, 2012 at 7:08 PM, Joe Dreyfus <[email protected]>
>>wrote:
>>>
>>> Count if binomial variable changes
>>>
>>> I am using panel data and would like to count the number of
>>>individuals who
>>> have experienced a change in a binomial variable across 10 time
>>>periods.
>>> I.e. For individual i, at t =1 var =0, at t=2 var = 1. In addition I
>>>would
>>> like to know the direction of the change. How many individuals moved
>>>from 0
>>> to 1, and how many total observations are there? How many moved from 1
>>>to 0,
>>> and how many total observations are there?
>>>
>>> I am using Stata 12 for Mac
>
>*
>*   For searches and help try:
>*   http://www.stata.com/help.cgi?search
>*   http://www.stata.com/support/statalist/faq
>*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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