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: xtreg - saving transformed variables

From   Bert Lloyd <>
Subject   st: xtreg - saving transformed variables
Date   Thu, 5 Jan 2012 09:32:05 -0500

Hi Statalist,

I would like to know if there is a simple way to keep the variables
transformed by xtreg in memory and save them to the current

For example, for fixed effects estimation, I would like to save the
de-meaned independent and dependent variables as, for example,
y_demeaned, x1_demeaned, x2_demeaned, etc.

Of course, this is not too hard to do manually but it would be
convenient to ensure that it is done on the same sample, etc.

A similar technique for other estimators that use transformed data,
e.g. xtregar, would also be helpful.

Many thanks in advance.

 - BL
*   For searches and help try:

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