Statalist The Stata Listserver


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

st: matching variable values


From   Gregor Franz <[email protected]>
To   [email protected]
Subject   st: matching variable values
Date   Thu, 24 Aug 2006 14:07:37 -0700

Dear Statlisters,

I would like to match the values of one variable to the values of another variable and then create a third variable. Here is the basic setup:

ID MomID Height MomHeight
1 . 5 .
2 1 6 5
3 . 6 .
4 1 5.5 5 ...

MomHeight is the variable I want to create. It seems straightforward, but I just can't come up with the right code.

Thank you for any pointers.

Greg
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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