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: averaging variables for regression model

From   FredVer <>
Subject   st: averaging variables for regression model
Date   Wed, 16 May 2012 06:41:34 -0700 (PDT)

dear all,

Another question I have when in a paper says: Country level variables are
averaged by country over the period under study. does the command then mean:

sort country year
by country year: egen new = mean(oldvar) 


View this message in context:
Sent from the Statalist mailing list archive at
*   For searches and help try:

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