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: RE: How to define shortest possible period with 95% of observations
From
Dan Waldo <[email protected]>
To
[email protected]
Subject
Re: st: RE: How to define shortest possible period with 95% of observations
Date
Tue, 11 May 2010 06:16:34 -0700 (PDT)
I should have said
summarize date [fweight=fires] if year==`t' , detail
shouldn't I. Sorry.
--- On Tue, 5/11/10, Dan Waldo <[email protected]> wrote:
> From: Dan Waldo <[email protected]>
> Subject: st: RE: How to define shortest possible period with 95% of observations
> To: "statalist" <[email protected]>
> Date: Tuesday, May 11, 2010, 9:05 AM
> I may have grievously oversimplified
> the issue raised, but is it possible that the summarize
> command would work? That is, to use the 5th and 95th
> percentiles from
>
> .summarize date if fires>0 & year==1983, detail
>
> This could be turned into a forvalues loop if there are
> many years:
> forval t=1978/1993 {
> summarize date if fires>0 , detail
> }
>
> > Daniel Mueller
> >
> > I have a strongly unbalanced panel with 100,000
> observations
> > (=fire occurrences per day) that contain between none
> (no fire)
> > and 3,000 fires per day for 8 years. The fire events
> peak in
> > March and April with about 85-90% of the yearly
> total.
> >
> > My question is how I can define the shortest possible
> > continuous period of days for each year that contains
> 95%
> > of all yearly fires. The length and width of the
> periods may
> > slightly differ across the years due to
> > climate and other parameters.
> >
> > I am sure there is a neat trick in Stata for this, yet
> I have not
> > spotted it. Any suggestions would be appreciated.
> >
>
>
>
> *
> * 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/