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

st: looping over variables

From   "Nirina F" <[email protected]>
To   [email protected]
Subject   st: looping over variables
Date   Fri, 7 Sep 2007 10:13:45 -0400

(sorry if you get it twice but I am trying to resend it as it didn't
appear first)


I know this should be simple but I just don't know how to program it:

I have my control variables: x1, x2, ...x7
I combine them in
global controls x1, x2, ...x7

now I would like to get new variables  from those controls

K = (controls-mean(controls))*V
where v is just a vector but I don't know how to get K unless I do
them variable by variable manually.

Thanks in advance,

*   For searches and help try:

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