Statalist The Stata Listserver

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

Re: st: problem with scalar in ml program

From   Maarten buis <>
Subject   Re: st: problem with scalar in ml program
Date   Fri, 9 Feb 2007 22:56:02 +0000 (GMT)

--- Robert Duval <> wrote:
> I have a ml program that fails to pass the ml check. Aparently the
> problem occurs when ml fails to recognize one of the args (athrho)
> passed to the ln function. However, I have another almost identical
> program that runs perfectly!?!

I have two comments:
1. in your -ml- statement you have not specified /ux1 and /ux2
2. It is safer to replace the line:
scalar `rho'=(exp(2*`athrho')-1)/(exp(2*`athrho')+1)
scalar `rho'=tanh(`athrho')

Less typing so less chance of a typo.

Hope this helps,

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

Yahoo! Messenger - with free PC-PC calling and photo sharing.
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index