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: Reversed coefficient sign for exponential MLE vs. ereg
From
Christopher Baum <[email protected]>
To
"[email protected]" <[email protected]>
Subject
re: st: Reversed coefficient sign for exponential MLE vs. ereg
Date
Fri, 27 Jan 2012 20:23:15 -0500
<>
I am trying to implement the ereg (exponential regression) estimator using ML, and am encountering something odd. I have written a .do file as follows...
program define myexponential
version 10.0
args lnf x
local lambda = exp(`x')
quietly replace `lnf' = ln(`lambda') - `lambda'*$ML_y1
end
As ereg has been obsolete since Stata version 8, why not frame this question in terms of currently supported and documented commands? Unless someone
has a Stata 7.0 manual, how would they know what the syntax for ereg is?
Kit
Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html
An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html
An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html
*
* 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/