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: RE: Re: misstable sum
From
A Loumiotis <[email protected]>
To
[email protected]
Subject
Re: st: RE: Re: misstable sum
Date
Fri, 19 Nov 2010 14:32:59 +0200
Thanks Nick.
I wrote the following code for a neater presentation of the different
kind of missings.
foreach var of varlist _all {
qui count if `var'==.a
local m_ `r(N)'
qui count if `var'==.a
local m_a `r(N)'
qui count if `var'==.b
local m_b `r(N)'
di `"`var':"' _col(10)`"`m_'"' _col(15) `"`m_a'"' _col(20)`"`m_b'"'
}
}
On Fri, Nov 19, 2010 at 1:21 PM, Nick Cox <[email protected]> wrote:
> -tab, missing- will show them and distinguish them.
>
> Nick
> [email protected]
>
> A Loumiotis
>
> I have a survey dataset with three different types of missing observations:
> a. filtered missings=.
> b. don't know=.a
> c. no answer=.b
>
> I would like to use misstable sum to summarize the missings but
> misstable sum only differentiates between observations with "." and
> greater than ".". Is there any other way that the summary is also
> broken down for ".a" and for ".b"?
>
> *
> * 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/