Statalist


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

RE: st: variable name


From   "Qiang (Danny) Chen" <[email protected]>
To   <[email protected]>
Subject   RE: st: variable name
Date   Mon, 4 May 2009 13:07:36 -0400

I am sorry for using a jargon here. And thanks for your answers. 

My question is if there is way I can get "_Irs1234567_1Xrs7654321_1" instead
of getting "_Irs1Xrs~1_1" in report. When I run hundreds of such logits, I
need to use Perl (a parsing language) to extract results from Stata log
file. It will be nice if Perl can find real variable names instead of
abbreviation.

Thanks!

Qiang (Danny) Chen, Ph.D.
 
Clinical Brain Disorders Branch (CBDB)
Genes, Cognition and Psychosis Program (GCAP)
NIMH, NIH


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Monday, May 04, 2009 12:25 PM
To: [email protected]
Subject: RE: st: variable name

The first part is right, but _not_ the second. 

Once you have created the dummies, -xi- has no extra role to play. 

Nick 
[email protected] 

MAY BAYDOUN

I think you need to multiply the original variables first and then place an
i. next to that new variable.

gen Irs1234567_1Xrs7654321=rs1234567*rs7654321

xi: logit case sex i.Irs1234567_1Xrs7654321, or

On Mon, 5/4/09, Qiang (Danny) Chen <[email protected]> wrote:

> When I use xi (Interaction
> expansion), I got the following report. I am wondering if
> there is a way to keep the original snp names. For example:
> 
> _Irs1Xrs~1_1  ==> _Irs1234567_1Xrs7654321_1
> 
> 
> Thanks! 
> 
> xi: logit case sex i.rs1234567*i.rs7654321, or

*
*   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/


*
*   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