Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Combining two variables

From   Ada Ma <[email protected]>
To   [email protected]
Subject   Re: st: Combining two variables
Date   Wed, 13 Oct 2004 14:48:08 +0100

Check out the date format commands.

In the command box type:

view help dfmt

Hans J. Baumgartner wrote:
I have one variable with quarters q (1-4) and one variable with years y (1950-2004), which I would like to combine into one single variable newvar that has the values 1999Q2 if y==2 and y==1999.

Is there any straight forward command for this?

Thanks in advance


*   For searches and help try:

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