Statalist


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

st: Re: manage list of variables


From   joachim jarreau <joachim.jarreau@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: manage list of variables
Date   Thu, 12 Nov 2009 22:17:53 +0100

test

On Thu, Nov 12, 2009 at 12:29 PM, joachim jarreau
<joachim.jarreau@gmail.com> wrote:
> Hi,
>
> sorry of this is too simple. Id like to know if there exists a way to create
> a local list of the existing variables in a dataset, to be used for instance
> in a "collapse" command line : I would need this command to act on different
> datasets in which the list of existing variables is not always the same : in
> some of them there are additional variables, but not in all of them, so that
> when running the do-file, the collapse line fails if it doesn't find these
> variables.
> In other words id need to do something like :
> collapse (sum) value, by( "all variables except this-that").
>
> Thanks in advance
>
> joachim
>
>
>
>
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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