Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: standard deviation


From   Steven Samuels <sjhsamuels@earthlink.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: standard deviation
Date   Sat, 25 Oct 2008 14:31:46 -0400

somsupa

bysort indcode period: keep if _n==1

Then drop the individual variables like iccl. By the way, the log of the SD will probably be a much better response variable than the SD itself.

Steve

On Oct 25, 2008, at 4:29 AM, somsupa Nopprach wrote:

Dear Maarten buis,
Thank you very much. I will try it.
By the way, if i want to use the sd variable as a new time series variable . how i can do it? should i use the reshape command because now sd is duplicate ?

somsupa


--- On Fri, 10/24/08, Maarten buis <maartenbuis@yahoo.co.uk> wrote:

From: Maarten buis <maartenbuis@yahoo.co.uk>
Subject: Re: st: standard deviation
To: statalist@hsphsun2.harvard.edu
Date: Friday, October 24, 2008, 7:48 AM
--- somsupa Nopprach <nmayecon31@yahoo.com> wrote:
I would like to compute standard deviation of ICC1
variable at each
period by industry. I will use the  standard deviation
as my new time
series variable for each industry.

bys indcode period: egen sd = sd(icc1)

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



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

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index