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]
Re: st: detecting a complete data set
From
Mitch Abdon <[email protected]>
To
[email protected]
Subject
Re: st: detecting a complete data set
Date
Tue, 16 Nov 2010 14:23:54 +0800
If you just need the number of observations with nonmissing ABC and D , try:
count if A !==. & B !==. & C !==. & D !==.
You can also generate a variable that will indicate if the observation
has no missing values (1 if no missing values and 0 otherwise),
example:
gen nomissing=(A !==. & B !==. & C !==. & D !==. )
tab nomissing
On Tue, Nov 16, 2010 at 2:08 PM, Donald Spady <[email protected]> wrote:
> I have a dataset with 6 variables of interest: id level A B C D. There are 100 individual id values, 24 individual level values and values for ABCD for each level of each id. There are a lot of missing data. How can I determine how many complete data sets I have; i.e. data sets of ID, Level, and A B C D values that are complete. I have looked at misstable. It is easy to determine the number of missing A B C D data but when it comes to seeing how many complete sets of Level A B C D , I don't know what to do.
> I appreciate the help
>
> Don Spady
>
> Nature bats last.
>
>
> *
> * 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/
>
--
Best,
Mitch
Arnelyn Abdon
+639178034402
http://statadaily.wordpress.com
http://www.facebook.com/pages/Stata-Daily/116477895082525
*
* 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/