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

st: calling variables

From   "Hans J. Baumgartner" <>
Subject   st: calling variables
Date   Fri, 11 Feb 2005 16:57:33 +0100

Dear statalist,

I’ve got data that is coded as follows:

var_1_yymm , var_2_yymm and so on.

If I would like to call the variables var_1 between January 2000 and February2001 I though I could use


Unfortunately, this is not calling the expected vars but those vars located in the dataset between var_1_0001 and var_1_0102.

How can I address the desired vars?

N.B. I’ll call the vars within a loop that shifts the time period forwards and backwards. Hence, I cannot call the vars individually.

All comments are welcomed.

Many thanks in advance.


Hans J. Baumgartner DIW Berlin
German Institute for Economic Research
Dept. Public Economics
Königin-Luise-Str. 5; 14195 Berlin; Germany
Tel.: +49/30/89789-307
Fax.: +49/30/89789-114

* For searches and help try:

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