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: New command -tfv- available from SSC
From
daniel klein <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: New command -tfv- available from SSC
Date
Fri, 21 Mar 2014 11:42:53 +0100
Thanks as always to Kit Baum, a new prefix-like command -tfv- is now
available from the SSC.
The command lets you specify transformations of variables in the line
of the obsolete -xi- prefix (superseded by factor variable notation).
For example
. tfv regress t(ln).price mpg
creates a new variable, ln_price, as the natural logarithm of price
and runs the -regress-ion of this new variable on mpg.
-tfv- is inspired by a wishlist for Stata 14 recently posted to
Statalist (http://www.stata.com/statalist/archive/2014-02/msg00697.html).
I am confident that StataCorp will make the command obsolete expanding
the existing factor variable notation soon. Until then, I hope some
will find it useful.
Best
Daniel
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/