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

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: standard deviation |

Date |
Sun, 26 Oct 2008 16:54:22 -0000 |

Steven's suggestion reduces your dataset to one observation for each combination of code and period. An alternative tactic is to tag just one observation, but otherwise leave the data as they were. egen tag = tag(indcode period) Then you can reduce your data on the fly to one each combination by doing stuff ... if tag Nick n.j.cox@durham.ac.uk Steven Samuels 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. On Oct 25, 2008, at 4:29 AM, somsupa Nopprach wrote: > 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 ? * * 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/

**References**:**Re: st: standard deviation***From:*somsupa Nopprach <nmayecon31@yahoo.com>

**Re: st: standard deviation***From:*Steven Samuels <sjhsamuels@earthlink.net>

- Prev by Date:
**Re: st: suggested references about the variables to include in zero-inflated portion of zinb?** - Next by Date:
**st: RE: re: problem using predictnl after obtaining non-linear estimates** - Previous by thread:
**Re: st: standard deviation** - Next by thread:
**st: Re: Problem with replace if - test condition works only for some values of test variable** - Index(es):

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