Hi there,
I'm very new to Stata (only a few days), statistics and programming in general so do bear with me if I ask any silly questions or describe things clumsily.
I'm trying to use a cubic spline to interpolate monthly GDP per capita data from yearly GDP per capita for a panel dataset (160 countries and 193 time points) for an undergraduate Sociology project. I understand that it is a bit of a stretch to interpolate 11 data points from 2, and so would refine the method if given the chance, but due to time constraints I have to make do with this method for now.
Previous forum comments suggest using the -csipolate- but I am unable to install the package as I am using a shared computer and do not have permission to update the ado folder. Any suggestions of how I may be able to bypass this?
Meanwhile, I am testing the code with -ipolate- for the moment but am getting strange results. The new variable does not copy over the exising data points in the old variable and the new data points are all recorded as unitary. My code is as follows:
xtset cname1 date2
bysort cname1: ipolate gdpc1 date2, g(gdpc_ipo)
A screenshot of my data editor:
Would greatly appreciate any help. Thank you!
I'm very new to Stata (only a few days), statistics and programming in general so do bear with me if I ask any silly questions or describe things clumsily.
I'm trying to use a cubic spline to interpolate monthly GDP per capita data from yearly GDP per capita for a panel dataset (160 countries and 193 time points) for an undergraduate Sociology project. I understand that it is a bit of a stretch to interpolate 11 data points from 2, and so would refine the method if given the chance, but due to time constraints I have to make do with this method for now.
Previous forum comments suggest using the -csipolate- but I am unable to install the package as I am using a shared computer and do not have permission to update the ado folder. Any suggestions of how I may be able to bypass this?
Meanwhile, I am testing the code with -ipolate- for the moment but am getting strange results. The new variable does not copy over the exising data points in the old variable and the new data points are all recorded as unitary. My code is as follows:
xtset cname1 date2
bysort cname1: ipolate gdpc1 date2, g(gdpc_ipo)
A screenshot of my data editor:
Would greatly appreciate any help. Thank you!
Comment