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

RE: st: variable name

From   "Nick Cox" <>
To   <>
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. 



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

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