I think your question is: how do you drop the observations
of Y where X is missing? In that case, the answer is:
drop if missing(X)
This will keep the 50 observations of X, plus the 50 observations
of Y where X is not missing.
hth,
Jeph
[email protected] wrote:
Dear statalisters,
I have a simple question:
Supose I have two variables, X and Y with 50 and 75 observations,
respectively. How do I delete the first 25 observations of the variable Y
without losing the first 25 observations of the X variable?
Although simple, I have not been able to find out a solution.
Thank you again.
Best regards,
Tiago
*
* 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/
*
* 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/