Bookmark and Share

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


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

Re: st: How to display independent variables after regression


From   Xixi Lin <[email protected]>
To   statalist <[email protected]>
Subject   Re: st: How to display independent variables after regression
Date   Thu, 18 Apr 2013 10:15:35 -0400

In this case, is there a way that i can save the independent variable
names after regression?

On Thu, Apr 18, 2013 at 10:04 AM, Nick Cox <[email protected]> wrote:
> That does not work as you because -regress- does not save e(indepvars).
>
> See -indeplist- (SSC).
>
> Nick
> [email protected]
>
>
> On 18 April 2013 15:01, Xixi Lin <[email protected]> wrote:
>
>> Does anyone know how to display independent variables after regression? such as:
>>
>> sw reg Y x1 x2 x3 x4, pr(0.05)
>> display e(indepvars)-------------------------this code is not working,
>> does anyone knows how to fix it?
>>
>> I only wanna display  independent variable names. I know that di
>> e(depvar) works to display dependent variable, then what about
>> independent variables?
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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