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

From |
"Scott Merryman" <smerryman@kc.rr.com> |

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

Subject |
st: RE: About generating variable consisting elasticities for each observations after probit command. |

Date |
Fri, 17 Sep 2004 15:51:18 -0500 |

One way, assuming no missing observations, would be as follows: sysuse auto, clear probit foreign mpg gen elasticity = . qui { forv i = 1/74 { local num = mpg[`i'] mfx , at(`num') nose matrix A = e(Xmfx_dydx) replace elasticity = A[1,1] in `i' } } Hope this helps, Scott > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu [mailto:owner- > statalist@hsphsun2.harvard.edu] On Behalf Of Haseeb Mahmud > Sent: Friday, September 17, 2004 10:49 AM > To: statalist@hsphsun2.harvard.edu > Subject: st: About generating variable consisting elasticities for each > observations after probit command. > > Dear Fellows > I can run 'probit' models in STATA environment. I can also run 'mfx' > command with its options. > I want to generate a variables containing elasticities for each > observations (approx 5000 obs.) > By default, STATA can show/calculate a elasticities by using 'mfx' > command at mean of observations. > STATA can also calculate elasticities of each variable at user defined > points. > Is there anyone who can help me to get out of this problem? > > Haseeb Mahmud > Dhaka, Bangladesh. > * > * 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/ * * 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/

**Follow-Ups**:**Re: st: RE: About generating variable consisting elasticities for each observations after probit command.***From:*"jean ries" <ries@ires.ucl.ac.be>

**References**:**st: About generating variable consisting elasticities for each observations after probit command.***From:*Haseeb Mahmud <haseeb.mahmud@gmail.com>

- Prev by Date:
**st: About generating variable consisting elasticities for each observations after probit command.** - Next by Date:
**Re: st: RE: About generating variable consisting elasticities for each observations after probit command.** - Previous by thread:
**st: About generating variable consisting elasticities for each observations after probit command.** - Next by thread:
**Re: st: RE: About generating variable consisting elasticities for each observations after probit command.** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |