Statalist


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

Re: st: Dropping Variables - Simple Question


From   steven.gorle@telenet.be
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Dropping Variables - Simple Question
Date   Mon, 13 Aug 2007 13:45:31 +0000

Dear,


You could use a "drop if" command and drop the missing observations of Y and keep the x values for the complete observations.

E.g. drop if Y ==.


Kind regards,

Steven Gorlé


>----- Oorspronkelijk bericht -----


>Van: tiago.pereira@incor.usp.br [mailto:tiago.pereira@incor.usp.br]
>Verzonden: zondag, augustus 12, 2007 06:12 AM
>Aan: statalist@hsphsun2.harvard.edu
>Onderwerp: st: Dropping Variables - Simple Question
>
>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/



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