Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: Creating a local macro

From   Maarten Buis <>
Subject   Re: st: Creating a local macro
Date   Tue, 11 Dec 2012 10:10:11 +0100

On Mon, Dec 10, 2012 at 11:51 PM, Mosi Ifatunji wrote:
> Per the attached file, is there a way to create some sort of local macro then obain total values for the items in the macro list.

Per the Statalist FAQ, you should not sent attachments to the list.
Sending an example dataset to statalist to clarify your question is a
good idea, but you cannot do so with an attachment. There are some
tricks shown here on how you can still sent some example data to
Statalist: <>

> For example, how would I create a local macro called "meal1" such that it includes "dairy3 green3 grain3 fruit3 protein3"? These variables are cases in the dataset. That is, they run down the far left column. The variables for these cases are things like protein, fat etc.

Since I cannot see your example data, I really do not understand that
question. At the very least I think you mean variable when you say
local macro. See:

Hope this helps,

Maarten L. Buis
Reichpietschufer 50
10785 Berlin

*   For searches and help try:

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