Bookmark and Share

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]

st: How to get -margins- give predicted probabilities faster?


From   Duha Altindag <[email protected]>
To   [email protected]
Subject   st: How to get -margins- give predicted probabilities faster?
Date   Mon, 19 Jul 2010 10:47:11 -0500

Greetings,
I wonder if -margins- can be made work faster.

Say I have two indicators (x1 and x2) and two continuous variables (x3
x4). The following piece takes a while with Stata SE and a recently
purchased computer (fairly fast).

probit y x1#x2 x3 x4
margins, at((mean) _all x1=(0 1) x2=(0 1) x3=(10(1)20)) post

But instead if created dummies associated with x1#x2 and run -probit-
and calculate predicted probabilities with -nlcom- at the above
specified values, I'd be done faster.

Is there a way to get -margins- to do this job faster?
If not, do I gain something by using -margins- over the second way
described above?
*
*   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/


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