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:Help on egen mean variable by state and industry
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st:Help on egen mean variable by state and industry
Date
Sun, 9 Oct 2011 14:41:08 +0100
None of us is able to see quite what you sent to Statalist but was
bounced. But as explained in the FAQ, attempts to send other than in
plain text or with attachments are often not accepted by Statalist.
Nick
On Sun, Oct 9, 2011 at 1:32 PM, prakash singh <[email protected]> wrote:
> Thanks a lot Nick.
> One more question not related to the main query.
>
> Though, I am subscribed to the statalist but I find defficulty in
> posting my queries. Today also it bounced two times.
>
> Any suggestion
> thanks
> Prakash
>
> On 10/9/11, Nick Cox <[email protected]> wrote:
>> Looks fine to me. The -by()- option is undocumented in recent versions
>> of Stata, but works fine.
>>
>> For "STATA" read "Stata".
>>
>> Nick
>>
>> On Sun, Oct 9, 2011 at 12:20 PM, prakash singh <[email protected]> wrote:
>>
>>> I am working with a polled cross section data of firm from different
>>> states of India on STATA 10. I want to generate a variable sales_m
>>> where sales_m is mean sale of firms in a industry within a state. Now
>>> I use this command
>>>
>>> egen sales_m = mean(sales), by (state industry)
>>>
>>> Now I have this boubt that, am I writing the syntex correctly or not
>>> to creat the variable correctly.
*
* 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/