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

st: Macro question

From   Fred Wolfe <>
Subject   st: Macro question
Date   Tue, 15 Mar 2005 09:12:55 -0600

Can anyone help with this macro question:

In a program syntax statement

syntax, vlist(varlist)

I create a local macro vlist which end up containg:


plaghaq_disability plaghaq2 plagpas

I want to use the contents of that macro in an inlist() function like this:

if inlist(parm,"plaghaq_disability", "plaghaq2", "plagpas")

So I need to transform

this list:
plaghaq_disability plaghaq2 plagpas

into this list:

"plaghaq_disability", "plaghaq2", "plagpas" in a macro. I am having problems adding the quotation marks.

Can anyone tell me how to do this?


Fred Wolfe

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125 Fax (316) 263-0761

* For searches and help try:

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