Statalist The Stata Listserver


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

st: RE: tabout function


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: tabout function
Date   Tue, 9 May 2006 14:24:50 +0100

The -tabout- command [not function] is a user-written
command (Ian Watson) from SSC. 

I can't replicate any problem here so long
as what you want is shown in the value labels, 
which clearly exist in this case, but which
we can't see from your posting. 

Nick 
[email protected] 

Urvi Shah
 
> I would like to use the 'tabout' fiunction with dates. My 
> problem is that
> the result from the tabout function shows a table with the 
> numerical values
> of mrec rather than actual dates. If I use the statement 'tab mrec
> site_order_code2', it shows the mrec variable as a month e.g. 
> Jan 2006. How
> can I do this using the tabout function. 
> 
> 
> 1) Part of my code looks something like this:
> 
> gen mrec=emrd_dinsert
> label var mrec "Month of recruitment"
> label val mrec month
> format mrec %tmm_cY
> 
> label var site_order_code site2
> encode site_order_code, generate(site_order_code2)
> 
> tabout mrec site_order_code2 if casetype == "Reg_&_Rand" 
> using "abc.xls"
> 
> 
> 
> 2) Describe mrec shows the following:
> 
> . describe mrec
> 
>               storage  display     value
> variable name   type   format      label      variable label
> --------------------------------------------------------------
> --------------
> ---
> mrec            float  %tmm_cY     month      Month of recruitment
> 
 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index