Hello,
I am trying to create observations. I have monthly U.S. import data by product level and by exporting country. All of my observations right now are non-zero, thus, data points only exist where there are import data. I want to create observations where monthly data would be 0 if there was no import in given period. I know that I can use 'fillin' code to do something similar. (fillin exporter period product) But I don't want to create zero's where a given exporter has never exported a certain product. I only want to create zeros for exporters if they have experience exporting certain products but do not have data points in certain months because they didn't export in those months.
Can someone help me with how to selectively create data points?
Thank you.
Sincerely,
Soyoung
I am trying to create observations. I have monthly U.S. import data by product level and by exporting country. All of my observations right now are non-zero, thus, data points only exist where there are import data. I want to create observations where monthly data would be 0 if there was no import in given period. I know that I can use 'fillin' code to do something similar. (fillin exporter period product) But I don't want to create zero's where a given exporter has never exported a certain product. I only want to create zeros for exporters if they have experience exporting certain products but do not have data points in certain months because they didn't export in those months.
Can someone help me with how to selectively create data points?
Thank you.
Sincerely,
Soyoung
Comment