Statalist


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

RE: st: variable name


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: variable name
Date   Mon, 4 May 2009 17:24:52 +0100

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/



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