HARMBY: Stata module to harmonize values of variables within by-groups
harmby ("harmonize within by-groups") checks that each variable in a varlist has no more than one value, other than the standard missing value, in each of the by-groups specified by by(), or in the whole data set, if by() is not specified. A standard missing value is . for a numeric variable, or the empty string "" for a string variable. If this condition is true, then harmby replaces all standard missing values in the by-group (or data set) by the one value that is not standard missing, if such a value exists, and takes no action if all values in a by-group (or data set) are standard missing. harmby is useful if there are variables whose values should be unique within each by-group (or within the data set), and new observations with standard missing values for these variables have been added to some or all of the by-groups by merge, or by ingap, which is downloadable from SSC.
In order to set up a list of libraries that you have access to,
you must first login
or sign up.
Then set up a personal list of libraries from your profile page by
clicking on your user name at the top right of any screen.