i have a panel dataset (hundreds of individuals, tens of measures per individual) arranged as xt data.
in many analyses, i use xtreg or mixed-effects reregression to examine within-individual relationships and between-group differences.
what is the most straightforward approach to retrieve and save individual-level slopes [ xvar parameters] after a command such as:
xtreg y xvar1 xvar2 i.group
or
xtmixed y i.group || id: xvar1 xvar2
i know i can do this with dummies for each individual, or by looping, but i thought there would be a more succinct methos using xtreg or mixed.
i am using StataSE v 13 on windows.
thank you for tolerating this basic query.
sincerely, george hoffman
in many analyses, i use xtreg or mixed-effects reregression to examine within-individual relationships and between-group differences.
what is the most straightforward approach to retrieve and save individual-level slopes [ xvar parameters] after a command such as:
xtreg y xvar1 xvar2 i.group
or
xtmixed y i.group || id: xvar1 xvar2
i know i can do this with dummies for each individual, or by looping, but i thought there would be a more succinct methos using xtreg or mixed.
i am using StataSE v 13 on windows.
thank you for tolerating this basic query.
sincerely, george hoffman
Comment