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: Collapsing data to daily data


From   Muyang Zhang <[email protected]>
To   [email protected]
Subject   Re: st: Collapsing data to daily data
Date   Mon, 28 Feb 2011 15:29:10 -0500

-collapse- has a -by()- option. In your case, you may use
-collapse varlist, by(date indiv)-

On Mon, Feb 28, 2011 at 3:21 PM, Brigham Whitman <[email protected]> wrote:
>
> Hello,
>
> I have time series data where there are multiple data points per
> individual per day (it is animal GPS movement data).  I want to
> collapse these data to get one data point per individual per day.
> Using Stata's collapse command, I only see functions to collapse from
> daily data to weekly, monthly, annual, etc. data.  Is there a way to
> collapse from multiple points per day to daily data?  If anybody has
> done this before, I would appreciate some advice.
>
> Thank you,
>
> Brigham Whitman
> SUNY ESF
> Syracuse, NY
>
> *
> *   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/



--
Zhang Muyang
China Center for Economic Research
Peking University
Beijing, 100871
China.

*
*   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