Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: help with margins syntax


From   Sergio I Prada <sprada1@umbc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: help with margins syntax
Date   Wed, 4 Nov 2009 12:13:20 -0500 (EST)

Hi all, here a simple question for margins experts

Can I replicate this code using margins:

x is binary and it is the variable of interest in a causal model

tobit y x a b, ll(0)
predict phi, pr(0,.)
summ phi if x==1
scalar define scale = _result(3)
gen effect = _b[morekids]*scale


-- 
Sergio


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