Bookmark and Share

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: extract


From   Paulo Regis <[email protected]>
To   [email protected]
Subject   st: extract
Date   Sat, 19 May 2012 10:46:03 +0800

Dear all,

I am struggling to extract the value of a variable from a panel.

I have a panel where "tvar" is time (eg: 1971-2010, that is data for
40 years ) and "nvar" is the id of each panel (eg: 1,2,... 10, that is
data for 10 individuals). My variable of interest is X. I would like
to extract the value of X for individual 5 in 1995 and save it in a
local. I have tried to use the option "if" but did not work with
"local" but did nto work. So far, I managed to use the option "in"
with the command "local" but then I have to find the location of X in
1995 for individual 5 by hand.

Kind Regards,

Pulo
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index