Hi there!
I have household-level data with unique household_id. For each household, I have data for village_id and income, among other variables.
Is there any way I can create a new variable called village_income_mean by averaging the income amounts across a village given by village_id?
Thanks!
Related Posts with Averaging with a condition while generating a new variable
r(608) error in loopHi! I'm trying to create groups in my data: for every year and district I create a group that inclu…
Importing/Reformatting Data by IDHi Everyone, I'm trying to merge about a dozen different lists that use the same ID scheme but are …
store coefficients from different data setHi Statalist, Could anyone help me, please? I want to do a plot with coefficients from regressions …
Comparing IV Coefficients for Two GroupsHi, I am trying to determine whether there is a statistically significant difference between a singl…
[Panel Data] How can I study the way a variable in the past affected the drop in a different variable in the future.All the values that I have for the variable bondratio (amount of company debt that is in the form of…
Subscribe to:
Post Comments (Atom)
0 Response to Averaging with a condition while generating a new variable
Post a Comment