Dear Stata users,
Suppose I have a variable x composed of missing values and non-missing values, and the non-missing values all are equal. I want to replace missing values with (this?) non-missing value, how can I achieve it? Thank you.
Take an example, I want to replace variable x with 12 if x are missing.
Suppose I have a variable x composed of missing values and non-missing values, and the non-missing values all are equal. I want to replace missing values with (this?) non-missing value, how can I achieve it? Thank you.
Take an example, I want to replace variable x with 12 if x are missing.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float x . 12 . 12 . 12 . . 12 . end
Comment