[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: local r(varlist)?

From   Keith Dear <>
Subject   st: local r(varlist)?
Date   Sat, 14 Jun 2008 11:37:22 +1000

This is a small point I am puzzled by, but in the interests of knowing how Stata thinks:

Following -ds- (and I guess many other commands),

this works:
. foreach v of any `r(varlist)' {
(so r(varlist) is behaving like a local macro)

but this doesn't:
. foreach v of local r(varlist) {
(error message: "{ required")

what am I misunderstanding here?

Dr Keith B.G. Dear
Senior Fellow in Biostatistics
National Centre for Epidemiology and Population Health
Australian National University
Canberra, ACT 0200, Australia
Tel: 02 612 54865, Fax: 02 612 50740
CRICOS provider #00120C

* For searches and help try:

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