Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, and its replacement, **statalist.org** is already up and running.

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

From |
Christopher Baum <kit.baum@bc.edu> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
re: st: bX |

Date |
Sat, 31 Mar 2012 08:07:02 -0400 |

<> My original post was missing one line: <> Chiara said margins, by(married occupation) gives me the product between the Betas of the estimated wage reg and the mean value of characteristics for each occupation, for married and unmarried. Right? Correct. She then said margins, by(fem occupation) gives me all the values of the interactions between fem#occupation, therefore a total of 14 interactions (2 genders*7 occupations): ... is it possible to gen a new variable for each of the listet interaction? For example, a variable taking the value 2.398703, etc. This is useful for me, since therafter I have to compute calculations by using these interactions. You don't need a set of variables; these are scalar quantities. Any computations you want to do you can do with what comes back from margins. After giving the margins command, type mat list r(table) and you will find all of those numbers. You can then do something like (in the example I gave, there are 26 conditonal means): mat res = r(table) <===================== forv i=1/26 { sca mu`i' = res[1,`i'] } di mu1 di mu2 ... Those scalars can be used to do any computations you need. You can also retrieve their standard errors if those are needed in the computation. Kit Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * 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/

- Prev by Date:
**st: Cross-level interaction with xtmelogit: caluclating predicted probabilities and graphing** - Next by Date:
**st: reshaping with multiple identifiers** - Previous by thread:
**Re: st: bX** - Next by thread:
**st: FW: DATIC summer workshops - early registration ends April 1st** - Index(es):