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

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

From |
Steve Samuels <sjsamuels@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: predicted marginal effects for sample |

Date |
Sun, 4 Dec 2011 20:29:03 -0500 |

No, it is not possible with -predict-, at least not without a lot of work. Yes it is possible with -margins-. The -help- and manual will show you how. Steve On Dec 4, 2011, at 6:31 PM, john sanders wrote: I am running a simple linear regression model with some interaction terms of the following nature: reg demand c.distance##c.price##c.price I want to use the model parameters to predict the marginal effect of a price change for every observation in the data (i.e. instead of the linear prediction, I want the marginal effect for each observation). Is this possible using the margins command? I could certainly code this up, but I was wondering if there was a "predict" analogue to the margins command. * * 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/ * * 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/

**Follow-Ups**:**Re: st: predicted marginal effects for sample***From:*john sanders <desmochada@gmail.com>

**References**:**st: predicted marginal effects for sample***From:*john sanders <desmochada@gmail.com>

- Prev by Date:
**Re: st: Fw: Event within dates** - Next by Date:
**st: LaTeX** - Previous by thread:
**st: predicted marginal effects for sample** - Next by thread:
**Re: st: predicted marginal effects for sample** - Index(es):