[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: generating new variables: any shortcut?

From   "Vladimir V. Dashkeyev" <>
Subject   st: generating new variables: any shortcut?
Date   Tue, 10 Jul 2007 11:28:54 +0400

Dear all,

I want to create new variables by taking logarithms of old variables
and I want to keep old names:

-- gen log_var1 = log(var1) --

If I need to take logs of all the variables in the dataset or at least
of the variables that are named consequently (e.g. var1,
var2...var15), is there a way to generate new variables by a single

Thanks in advance,
*   For searches and help try:

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