Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: How to predict in mixed level linear regression when key predictor variable is previous years result
From
Muhammad Anees <[email protected]>
To
[email protected]
Subject
Re: st: How to predict in mixed level linear regression when key predictor variable is previous years result
Date
Sun, 27 Nov 2011 15:44:34 +0500
Good suggestions from Yual.
As you have many countries over multiple years (a panel type data),
you can start from within Stata by looking into -xtmixed- help files
for the option -predict-, which is there. Specifically check -help
xtmixed_postestimation-.
Hope this works for you.
On Sun, Nov 27, 2011 at 1:28 PM, Hunter Paul Prof (MED)
<[email protected]> wrote:
> Dear all
>
> I am trying to predict the results of a mixed level linear regression model of time series
>
> I have time series data from several countries and have developed a mixed level linear regression model with country as the level variable as follows
>
> Z= a+ b1*Year +b2*X+b3*Z(in previous year)
>
> Now I can use
>
> predict Pred_X, fitted level( country)
>
> to get good predictions of Z up to the year after I have measured data for Z so have Z(in previous year). How can I predict further into the future?
>
> Best Wishes
>
> Paul
>
>
>
> *
> * 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/
>
--
Regards
---------------------------
Muhammad Anees
Assistant Professor
COMSATS Institute of Information Technology
Attock 43600, Pakistan
www.aneconomist.com
*
* 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/