Statalist The Stata Listserver


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

Re: st: calculating a loglikelihood in regress


From   [email protected] (Vince Wiggins, StataCorp)
To   [email protected]
Subject   Re: st: calculating a loglikelihood in regress
Date   Wed, 02 May 2007 23:43:12 -0500

Augmenting Richard Williams <[email protected]>
solutions to Dan MacNulty's quest for a linear regression
that reports a log-likelihood, here are a few other fun
suggestions (all using official commands).

	. sysuse auto

	. intreg mpg mpg weight displacement

	. gen t = _n
	. tsset t
	. arima mpg weight displacement

	. arch  mpg weight displacement

	. gen id = 1
	. xtset id
	. xtgls mpg weight displacement, igls

 
-- Vince 
   [email protected]

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index