Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Elizabeth Knaster <ElizabethK@uihi.org> |
To | "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: statalist-digest V4 #4382 |
Date | Tue, 3 Jan 2012 19:11:22 +0000 |
Thanks for the reply, Nick. Can -groups- be used with -tabout-? Liz Elizabeth Knaster, MPH Project Coordinator Urban Indian Health Institute Seattle Indian Health Board Phone: 206-812-3032 Fax: 206-812-3044 Email: ElizabethK@uihi.org Sign up for the UIHI's Weekly Resource E-mail here or subscribe at http://www.uihi.org/. ; The Weekly Resource E-mail is UIHI's primary communication on opportunities for staff development, grant announcements and other relevant public health information. Date: Thu, 29 Dec 2011 15:04:18 +0000 From: Nick Cox <njcoxstata@gmail.com> Subject: Re: st: Tabout including all categories Expecting -tabout- to know about -fre- just won't work (both SSC). One alternative is -groups- (SSC). Nick On 28 Dec 2011, at 17:35, Elizabeth Knaster <ElizabethK@uihi.org> wrote: > Thanks for your reply. Yes, I meant to say "cells with zero > frequencies." Any ideas? > > Take care, > > Liz > > Elizabeth Knaster, MPH > Project Coordinator > Urban Indian Health Institute > Seattle Indian Health Board > Phone: 206-812-3032 > Fax: 206-812-3044 > Email: ElizabethK@uihi.org > > Sign up for the UIHI's Weekly Resource E-mail here or subscribe at http://www.uihi.org/ > . The Weekly Resource E-mail is UIHI's primary communication on > opportunities for staff development, grant announcements and other > relevant public health information. > > > ------------------------------ > > Date: Thu, 22 Dec 2011 20:22:56 +0000 > From: Nick Cox <njcoxstata@gmail.com> > Subject: Re: st: Tabout including all categories > > Showing zero values is not a problem with any tabulation command. Do > you mean cells with zero frequencies? > > Nick > > On Thu, Dec 22, 2011 at 7:31 PM, Elizabeth Knaster <ElizabethK@uihi.org > > wrote: >> Hello! I could use some help with tabout: >> >> I want to use tabout to produce tables with all categories of a >> variable, even if the value is equal to zero. I have installed fre >> from SSC and have successfully used includelabeled, for example, >> "fre agecat, includelabeled" but I am unable to use >> "includelabeled" with tabout. Is there a way to incorporate fre and >> includelabeled in the tabout syntax? Or is there some other way to >> have tabout display all categories of a variable, including zero? >> >> This is the current code I am using, for reference: >> >> foreach var0 in sex agecat durdmcat dmtype BMIcat { >> tabout `var0' year using "AllSitesTrends.xls", append mi c(freq >> col) f(0 3p) clab(N %) >> } >> >> Thanks, and happy holidays! >> >> Liz >> >> Elizabeth Knaster, MPH >> Project Coordinator >> Urban Indian Health Institute >> Seattle Indian Health Board >> Phone: 206-812-3032 >> Fax: 206-812-3044 >> Email: ElizabethK@uihi.org * * 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/