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: Re: Finding Maximum of a series


From   Tirthankar Chakravarty <[email protected]>
To   [email protected]
Subject   Re: st: Re: Finding Maximum of a series
Date   Sat, 19 Nov 2011 06:56:11 -0800

Use the "rrecursive" option rather than the "recursive" option:

**********************************************
webuse lutkepohl2, clear
tsset qtr
rolling roll_max=r(max), window(1) ///
 rrecursive: su inv
**********************************************

T

On Sat, Nov 19, 2011 at 6:39 AM, ajjee <[email protected]> wrote:
> Thanks!
>
> -rolling- worked. But If I am interested in
>
> Maximum wage in 1940 to 2000
> Maximum wage in 1941 to 2000
> Maximum wage in 1942 to 2000
> Maximum wage in 1943 to 2000
>
> and so on till
>
> Maximum wage in 1999 to 2000
>
> How can i use -rolling- to compute this.
>
> Thanks in advance.
>
> ajjee
>
>
>
>
> From: Tirthankar Chakravarty <[email protected]>
> Date: 19 November 2011 19:05
> Subject: Re: st: Finding Maximum of a series
> To: [email protected]
>
>
> Your most robust option is to use -rolling-. For example,
>
> **********************************************
> webuse lutkepohl2, clear
> tsset qtr
> rolling roll_max=r(max), window(1) ///
>  recursive: su inv
> **********************************************
>
> T
>
> On Sat, Nov 19, 2011 at 5:54 AM, Muhammad Anees <[email protected]>
> wrote:
>> If you have to find the maximum in a series say (x), use
>>
>> sort x
>> list x in 1
>>
>> On Sat, Nov 19, 2011 at 6:40 PM, ajjee <[email protected]> wrote:
>>> Dear All
>>>
>>> I have a time series dataset ranging from 1940 to 2000. I have to find
>>> the
>>> maximum value in series(wage) in the following way:
>>>
>>> Maximum wage in 1940 to 1941
>>> Maximum wage in 1940 to 1942
>>> Maximum wage in 1940 to 1943
>>> Maximum wage in 1940 to 1944
>>>
>>> and so on till
>>>
>>> Maximum wage in 1940 to 2000
>>>
>>> How can I compute this value.
>>> Thanks in advance
>>>
>>> ajjee
>>>
>>>
>>> --
>>> View this message in context:
>>> http://statalist.1588530.n2.nabble.com/Finding-Maximum-of-a-series-tp7011366p7011366.html
>>> Sent from the Statalist mailing list archive at Nabble.com.
>>> *
>>> *   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/
>>>
>>
>>
>>
>> --
>>
>> Regards
>> ---------------------------
>> Muhammad Anees
>> Assistant Professor
>> COMSATS Institute of Information Technology
>> Attock 43600, Pakistan
>> www.aneconomist.com
>>
>> *
>> *   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/
>>
>
>
>
> --
> Tirthankar Chakravarty
> [email protected]
> [email protected]
>
> *
> *   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/
>
>
> --
> View this message in context: http://statalist.1588530.n2.nabble.com/Finding-Maximum-of-a-series-tp7011366p7011449.html
> Sent from the Statalist mailing list archive at Nabble.com.
> *
> *   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/
>



-- 
Tirthankar Chakravarty
[email protected]
[email protected]

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