Statalist


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

st: Re: manage list of variables


From   joachim jarreau <[email protected]>
To   [email protected]
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
<[email protected]> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index