Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Code error
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Code error
Date
Mon, 8 Aug 2011 18:54:52 +0100
-hshaz- is from SSC (Stephen Jenkins).
I tested this example from its help without problems:
sysuse cancer, clear
ge id = _n
recode drug 1=0 2/3=1
expand studytime
bysort id: ge t = _n
bysort id: ge dead = died & _n==_N
ge logt = ln(t)
hshaz drug age logt, id(id) seq(t) d(dead)
hshaz, eform
My guess is that your downloading mangled the code or that there is
some problem in the code of yours that you are not showing us. "I run
-hshaz-" does not convey any testable or checkable detail.
See if you can run the example above without problem.
Nick
On Mon, Aug 8, 2011 at 3:47 PM, <[email protected]> wrote:
> Thanks for Steve for his answers.
>
> I run -hshaz- and get the following error:
>
> program error: code follows on the same line as close brace
>
> I checked the programme and there was no any code which follows }
>
> I don't programme in stata so I don't know where the problem is. Any help will be appreciated.
>
*
* 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/