I know there are ways to replace a numeric value with a missing value (dot), using mvdecode and that there are various ways to replace a specific string with a blank string but i am unaware of a way to go from specific string to missing numeric value.
In particular i have a data set with a few categorical variables. some of the rows are designated as missing things such as gender or age bucket with a "?" and id like to change that to a missing numeric value so that I can run a regression.
Thanks
In particular i have a data set with a few categorical variables. some of the rows are designated as missing things such as gender or age bucket with a "?" and id like to change that to a missing numeric value so that I can run a regression.
Thanks
Comment