Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: FW: ML for logit/ologit

From   Nick Cox <>
To   "''" <>
Subject   RE: st: FW: ML for logit/ologit
Date   Wed, 16 Nov 2011 12:23:47 +0000

Two completely separate points are bundled together here. 

1. If your program declares that you are feeding it arguments, then those arguments must be supplied (unless you trap non-supply). 

2. A parameter that must be bounded should be re-parameterised so that the bounds are respected. Some usual tricks are collected at

logit(rho/3) is unbounded for 0 < rho < 3. 

I recommend very detailed study of the documentation on -ml- and the associated book from Stata Press when writing a first non-trivial -ml- program. 


Thomas Murray (Department of Economics)

This makes sense -  rho needs to be defined in the program.  I need rho to converge to a value that maximises the log likelihood.  What I want to do is set a range of possible values for rho (between zero and three specifically) and find a point estimate using ML.  Is this possible to define?

Nick Cox

You need to supply the right number of arguments too. Here it looks as if rho is undefined because you are not feeding the program with enough arguments. 

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index