Statalist The Stata Listserver


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

st: installing hmm, minutes


From   Jacob Wegelin <[email protected]>
To   [email protected]
Subject   st: installing hmm, minutes
Date   Wed, 7 Mar 2007 13:27:07 -0800 (PST)

I am trying to convert a string variable that takes on values such as

9:32

12:01

(i.e., sometimes it contains 3 and sometimes 4 digits)

into a numeric variable representing the time of day.  It appears that
the minutes() function would do this.

What does one have to do to obtain the hmm() and minutes() functions?  Per
http://www.stata.com/statalist/archive/2003-01/msg00592.html I installed
egenmore but this does not seem to do the trick. (I have Stata 9.2 on a
PC.)

. ssc install egenmore
checking egenmore consistency and verifying not already installed...
installing into c:\ado\plus\...
installation complete.

. gen junk=hmm(prs1)
Unknown function hmm()
r(133);

. gen junk=minutes(prs1)
Unknown function minutes()

Thanks for any tips

Jake Wegelin
*
*   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