Dear Statalist users,
Good day to you firstly. I have 2 STATA datasets, where I'd like to transfer the variable GDP per capita from the 2nd dataset to the first dataset. The problem is that the number of years are not the same, as well as the fact that the first dataset is missing several years. If any of you have any idea as to how I can still add the variable from the second to the first dataset, I would be very grateful. Thank you very much. The first dataset looks as follows:
country year median
Argentina 1986 xxx.xx
Argentina 1987 xxx.xx
Argentina 1989 xxx.xx
Argentina 1990 xxx.xx where xxx.xx is just a number (e.g. 530.44)
Brazil 1990 xxx.xx
Brazil 1991 xxx.xx
Brazil 1992 xxx.xx
Brazil 1995 xxx.xx
And the second dataset:
country year GDP per capita
Argentina 1990 xxx.xx
Argentina 1991 xxx.xx
Argentina 1992 xxx.xx
Argentina 1993 xxx.xx
Brazil 1990 xxx.xx
Brazil 1991 xxx.xx
Brazil 1992 xxx.xx
Brazil 1993 xxx.xx
Once again thank you for your time.
Kind regards,
Ryan
Related Posts with Adding variable from one STATA data set to another
giving the same values to the same ID's variableHello, I'm manipulating panel data and have a question regarding some variables. I have firms as th…
Marginal effects after bivariate probit and parameter homogeneity test.Hello people, I am replicating an empirical economic study in which the authors conduct a bivariate…
How to plot of linear time trend normalized to zero and one at the beginning and end of the sampleDear fellow stata users, After conducting a cross-sectional regression on the panel data, I collect…
Error message "VCE is not positive definite" while performing the multiple imputationDear Stata users, I am performing the following MI code, HTML Code: mi impute chained (logit, aug…
question on matchingHello, I have a "CEO" variable for firms on panel data and the CEO names are not inputted the same …
Subscribe to:
Post Comments (Atom)
0 Response to Adding variable from one STATA data set to another
Post a Comment