Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

RE: st: Bug in stsplit and stptime - or me ?


From   ymarchenko@stata.com (Yulia Marchenko, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: Bug in stsplit and stptime - or me ?
Date   Mon, 10 Oct 2011 21:51:03 -0500

Jesper Lindhardsen <JESLIN01@geh.regionh.dk> has a follow-up question of
whether it is safe to create new variables which contain copies of the current
system survival variables (_t, _t0, etc.) and use the newly created variables
in -stset-:

> ... I gather a simple clonevar or rename of system variables can solve the
> problem. Or am I mistaken ??

You can use any variables in -stset- so long as they do not have the same
names as survival system variables (_t, _t0, etc.).  In Jesper's earlier
example, creating copies of the variables and using them with -stset- will
result in agreement between -strate- and -stptime-.


-- Yulia
ymarchenko@stata.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index