Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: RE: create a vector from observations-wonderful people!!!!!


From   "Rajesh Tharyan" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: RE: create a vector from observations-wonderful people!!!!!
Date   Wed, 8 Feb 2006 17:43:30 -0000

Brilliant!!!!!!! Thanks!!!!!!!!!!!!!

Address      : Room F12, Xfi-Centre for Finance and Investment

University of Exeter, Streatham Court, EX4 4PU

Tel(office)   : 01392262544

Tel(mobile) : 07770565093

Alt.email      : [email protected]

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: 08 February 2006 17:24
To: [email protected]
Subject: Re: st: RE: RE: create a vector from observations

Here is one way:

tabstat sales if month <3 , by(company) nototal save
tabstatmat means

-findit tabstatmat- to locate and download.  

-summarize- will return several values as scalars.  See -return list- 
after -sum-

Hope this helps,
Scott

----- Original Message -----
From: Rajesh Tharyan <[email protected]>
Date: Wednesday, February 8, 2006 4:50 am
Subject: st: RE: RE: create a vector from observations

> Hi,
> 
> Scott and kit
> 
> Thanks very much for your help! Just a follow up on the question.. 
> can I
> store the mean calculated as a scalar and not a variable? And if I 
> had many
> companies would I be able to create a vector of the means??
> 
> Thanks very much
> 
> Regards
> rajesh 
> 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index