Statalist


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

Re: st: Regarding date format and Repeated count


From   Marck Bulter <177316mb@student.eur.nl>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Regarding date format and Repeated count
Date   Mon, 10 Dec 2007 14:02:53 +0100

Mr. Arup Kumar Das wrote:
Dear statalist,

I have following queries

1. Date Format: My date format is dd-mm-yyyy in the (%16s)and some time
(%20s). I have used stata transfer to transfer data from excel. How can I
get the format as 'mm-YY'(Forexample: Mar-07).

2. Repeated count: If the clients visits the center for same services more
than one times during a reporting period (month, quarter etc). How can I can
I calculate
a. number of individuals visited for same services &
b. number of visits for the same service.

Looking forward for your suggestion

Regards,
Arup



*
* 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/
Dear,

As for one, I had the same problem, try this,

generate mmyy=mofd(date)
format mmyy %tm

For information on, mofd: http://dss.princeton.edu/online_help/analysis/time_series_data.htm

This wil yield the format you requested.

regards,
Marck






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