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]
st: stcox continuous interaction issue stata 10
From
Matt Cooper <[email protected]>
To
[email protected]
Subject
st: stcox continuous interaction issue stata 10
Date
Fri, 18 Mar 2011 12:25:45 +0800
Hi All,
I'm having trouble following this tutorial
http://www.ats.ucla.edu/stat/stata/seminars/stata_survival/default.htm
It is at the line 'stcox age ndrugtx i.treat i.site c.age#c.ndrug,
nohr' that I get stuck.
I'm putting 'xi: ' at the start given I'm using Stata10. It seems to
not like the idea of having the interaction between the two continuous
variables. The interactions with the indicator variables work when I
use '*' instead of '#'. Any feedback appreciated.
. xi: stcox age ndrugtx i.treat i.site c.age#c.ndrug, nohr
i.treat _Itreat_0-1 (naturally coded; _Itreat_0 omitted)
i.site _Isite_0-1 (naturally coded; _Isite_0 omitted)
time-series operators not allowed
r(101);
Thanks
Matt
*
* 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/