Statalist The Stata Listserver


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

Re: st: Obtaining log likelihood of a glm at user-specified parameter values


From   vwiggins@stata.com (Vince Wiggins, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Obtaining log likelihood of a glm at user-specified parameter values
Date   Tue, 22 Aug 2006 12:39:25 -0500

David Kling <klingd@reed.edu> asks, 

> [...] I'm trying to find out is whether there are built in functions
> or user-written files out there that would allow me to obtain the
> log-likelihood of a glm at parameter values that I specify myself
> (rather than those obtained after maximization).

No need for programming or user-written code.  Just add the option -iter(0)-
to your -glm- command along with the -from()- option that specifies your
parameter values.  -glm- will stop without iterating and report the log
likelihood of your model evaluated at the specified parameter values among the
rest of its standard output.  The log likelihood will also be stored in e(ll).

 
-- Vince
   vwiggins@stata.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