Statalist


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

Re: st: Find all subsets of variables


From   "Friedrich Huebler" <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Find all subsets of variables
Date   Wed, 24 Sep 2008 11:07:28 -0400

Dirk,

. ssc d allpossible

Friedrich

On Wed, Sep 24, 2008 at 10:00 AM, junin <dv.junin@gmail.com> wrote:
> Dear all,
>
> i want to find out all subsets of a given set of variables for model
> testing. As an example:
>
> A set of variables var1 var2 var3 var4 should give me:
> var1 var2 var3 var4
> var1 var2 var3
> var1 var2 var4
> var1 var3 var4
> var1 var4
> var1
> var2 var3 var4
>
> and so forth.
>
> I would like to test all possible model configurations. Is there a
> command in Stata, which could be convenient to use?
>
> Thank you for any help,
>
> dirk
*
*   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