Codes of categories of MCQ or SCQ options have decimals in stata

Hi, this question was probably already asked but can’t find where.
In Stata, I realized that my categorical questions have their codes with 2 decimals (1.00 = Single , 2.00 = Married , etc) . Can we change that ? Thank you.

We will try to include your request into the Feb 4th release. Cannot guarantee, but we will try. If not in version 19.2 then in 19.4 for sure.

1 Like

Answers to categorical variables are exported to numeric variables in Stata.
Whether you see it as 1 or 1.0 or 1.00 it is still the same value.

You’ve asked “Can we change that?”
The answer is yes, with Stata’s format command.