Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
Johannes Schoder <johannes.schoder@soi.uzh.ch> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: generate new variable from differencing where subtracted variable is fixed |

Date |
Fri, 05 Mar 2010 17:00:06 +0100 |

Dear Statalist users:

For example: Year x1 x2 difference: x1-x2 if x2 is the first obs. of the year 1960 5 8 5-8 1960 4 10 4-8 1960 2 3 2-8 1961 5 7 5-7 1961 1 2 1-7 1961 3 5 3-7

Thanks a lot for any hint! Regards, Johannes -- Johannes Schoder Socioeconomic Institute University of Zurich Hottingerstr. 10 8032 Zurich Phone: +41 44 634 0612 Fax: +41 44 634 4987 E-mail: johannes.schoder@soi.uzh.ch * * 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/

**Follow-Ups**:**st: RE: generate new variable from differencing where subtracted variable is fixed***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**st: AW: generate new variable from differencing where subtracted variable is fixed***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: AW: AW: Breaking a categorical variable into a set of binary variables** - Next by Date:
**st: AW: generate new variable from differencing where subtracted variable is fixed** - Previous by thread:
**st: Regression analysis with a minimum function on the RHS** - Next by thread:
**st: AW: generate new variable from differencing where subtracted variable is fixed** - Index(es):