Statalist The Stata Listserver


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

Re: st: problems with the -ereturn repost- command


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: problems with the -ereturn repost- command
Date   Fri, 12 Jan 2007 16:51:18 -0500

At 03:35 PM 1/12/2007, Maarten buis wrote:
*---------- begin example ---------
capture program drop tt
program define tt, eclass
    ereturn repost b=c
end

sysuse auto, clear
glm foreign weight mpg trunk, family(binomial) link(probit)
matrix b=e(b)
matrix c=b*2
tt
*---------- end example -------------
If you happen to have gologit2 installed (available from ssc), it also works if, instead of glm, you give the command

gologit2 foreign weight mpg trunk, link(probit)

This sort of thing isn't the primary purpose of gologit2, but there are a few occasions where gologit2 will do something that logit or probit doesn't, e.g. gologit2 supports the constraints option while logit and probit do not.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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