Statalist The Stata Listserver


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

st: RE: installing hmm, minutes


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: installing hmm, minutes
Date   Wed, 7 Mar 2007 21:40:51 -0000

The help for -egenmore- tells you the answer. 
These are -egen- functions, not functions, 
and can only be used with -egen-. So try -egen-
not -generate-. 

Nick 
n.j.cox@durham.ac.uk 

Jacob Wegelin
 
> 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()

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