Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: mean predicted estimates from fixed-effect regression

From   <>
To   <>
Subject   st: mean predicted estimates from fixed-effect regression
Date   Thu, 23 Aug 2012 08:27:08 +0100

I'm trying to obtain average predicted estimates from a fixed-effect regression with satisfaction as dependent variable, evaluated at different points in time before and after an event (marriage) and to plot them on a graph with time on the x axis and the estimated averages on the y axis.
Dependent variable: satisfaction
I want to compute the average satisfaction at each year before and after marriage.

So far I have used the predict command; then I've computed average values of predicted values at each point in time; last, I have created a new variable collecting all these estimated averages. I use this variable to create my graph.

Is there a more straightforward way to tell STATA to create this variable containing average predicted values from my regression?


Please access the attached hyperlink for an important electronic communications disclaimer:

*   For searches and help try:

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