Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65540

Interpolation two questions

$
0
0
Dear Stata users,
In one of the variables in my data I just have values in each five years, so what I want to do is interpolation. I used the following command: bysort country: ipolate educ year, gen(educ2). Here is an example of what I have:
country year educ educ2
USA 2000 10 10
2001 11
2002 12
2003 13
2004 14
2005 15 15
2006
2007
2008
2009
2010
UK 2000 15
2001
2002
2003
2004
2005 10
However, I did not obtain results for UK, probably because educ reduced. Can anyone explain me how should I solve this? Another question that I have is: I do not have values for 2010, however I would like also to fill the missing values after 2005, can anyone advice me on what to do?
Any help would be highly appreciated.

Viewing all articles
Browse latest Browse all 65540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>