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 <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: problem with scalar in ml program
Date   Fri, 9 Feb 2007 22:56:02 +0000 (GMT)

--- Robert Duval <rduval@gmail.com> 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)
with:
scalar `rho'=tanh(`athrho')

Less typing so less chance of a typo.

Hope this helps,
Maarten

-----------------------------------------
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

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com
*
*   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