Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Delete missing


From   Misha Spisok <misha.spisok@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Delete missing
Date   Fri, 7 May 2010 23:53:13 -0700

It seems like you could loop through all your variables and drop those
with missing values.

local xlist "x1-x100"
foreach var of varlist `xlist'  {
	drop if `var' >=.
}

On Fri, May 7, 2010 at 11:33 PM, Patricia Yu <pyu1@wisc.edu> wrote:
> Dear Stata Users,
>
> I have a question about deleting missing data.
> I would like to delete cases if they have missing values in any variables in
> my dataset.
> How can I do in STATA to delete these cases with any missing data?
> Could you please share STATA codes with me?
>
> Thank you very much for your great help!
>
> Sincerely,
> Patricia
>
> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
> PATRICIA YU
> Ph.D. Student & Project Assistant
> Dept. of Educational Leadership & Policy Analysis
> University of Wisconsin-Madison
> Cell: 608/698-8108
> Home: 608/231-6855
> E-mail: pyu1@wisc.edu
> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
>
>
> *
> *   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/
>

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index