Hey,
I'm working with a dataset that contains the following variables: year, country (all country names are strings), countrycode and some variable etfra which measures ethnic fractionilization. The data set starts in 1990 and ends in 2013. What I need to do is to expand the set to the year 2014 for each country and using the median of the years 2009-2013 to fill in the ef_etfra of 2014. Im not entirely sure how to approach this, tried different things using a foreach loop but they all were quite unsuccessful. I'd be thankful for any hint or concrete code suggestion. Thanks a lot in advance!
Related Posts with Expanding dataset by one year keeping all values but changing one
ANOVA REPEATE MEASURES - HOW TO INTERPRET CONTRADICTORY RESULTS BETWEEN ANOVA AND MULTIPLE PAIRWISE COMPARISONS (post hoc)?Good mornig to everybody. 1)HOW TO INTERPRET CONTRADICTORY RESULTS BETWEEN ANOVA AND MULTIPLE PAIRW…
Time Series Graph Percentage Deviations from TrendHello, I am currently working on time series analysis, trying to identify the effect of an increase…
Xtreg with Demeaned variablesI have a panel dateset and my dependent variable and independent variables are demeaned and standard…
xtabond2 vs xtreg / xtregarDear Stata users, I have always assumed that in the presence of serial autocorrelation and assumpti…
ANOVA REPEATE MEASURES - HOW TO INTERPRET CONTRADICTORY RESULTS BETWEEN ANOVA AND MULTIPLE PAIRWISE COMPARISONS (post hoc)?Good mornig to everybody. HOW TO INTERPRET CONTRADICTORY RESULTS BETWEEN ANOVA AND MULTIPLE PAIRWIS…
Subscribe to:
Post Comments (Atom)
0 Response to Expanding dataset by one year keeping all values but changing one
Post a Comment