Hello! My problem seems simple but I'm still new and unsure how to proceed. Essentially, I have a dataset with observations for people over time, thus there are multiple observations for a particular person (a particular fullname entry). They currently are all coded as having missing values for the columns gender and genderprobability. Appended to this data are observations as shown below, where many (though not all) of the unique names in the aforementioned dataset are assigned a gender and a probability in those columns.
For all observations in the actual dataset, I would like to replace the (currently missing values) for gender and genderprobability with the values given in the appended set. I.E. I would like to copy "male" into the gender column and ".99" into the genderprobability column for all observations where the fullname variable = "Michael Bishop", and replicate this for all names in the dataset that I have a gender and genderprobability for.
Thank you for any help!
For all observations in the actual dataset, I would like to replace the (currently missing values) for gender and genderprobability with the values given in the appended set. I.E. I would like to copy "male" into the gender column and ".99" into the genderprobability column for all observations where the fullname variable = "Michael Bishop", and replicate this for all names in the dataset that I have a gender and genderprobability for.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str44 fullname str7 gender float genderprobability "Michael Bishop" "male" .99 "Amera Barker" "female" .99 "Chris Atkinson" "male" .98 end
Thank you for any help!

Comment