Hello dear fellow Stata-users,
I have registered here because I could not find anything useful in the archives.
The situation:
I use a dataset which contains strings and integers. I want to merge two countries into one for each month (one variable) of each year (another variable) as well as for each sex and each destination country. So in the end female refugees who arrived in Spain in April 2002 from country A shall be added to female refugees who arrived in Spain in April 2002 from country B.
I tried egen newvar = total countryA countryB, by sex age year month destination
but only receive my favourite error message: r(198);
Thanks in advance for your help!
I have registered here because I could not find anything useful in the archives.
The situation:
I use a dataset which contains strings and integers. I want to merge two countries into one for each month (one variable) of each year (another variable) as well as for each sex and each destination country. So in the end female refugees who arrived in Spain in April 2002 from country A shall be added to female refugees who arrived in Spain in April 2002 from country B.
I tried egen newvar = total countryA countryB, by sex age year month destination
but only receive my favourite error message: r(198);
Thanks in advance for your help!
Comment