Dear community,
I conducted a survey with the software "limesurvey". I successfully exported the data to excel and imported the data to stata. By viewing the data I noticed a problem that not every possibility of respones is available:
For example:
"What is your gender (according to birth registry)?" with response options 1: "male", 2: "female", 3: "divers", and 4: "unspecified according to birth registry".
Option 4 was not used by the paticipants, so that in Stata the variable "gender" only has the scale from 1 to 3. For completness and for descriptive Statistics, I would like to add catecory 4 in retrospect. How can I do it?
Now:
. tab gender
gender | Freq. Percent Cum.
------------+-----------------------------------
1 | 20 31.75 31.75
2 | 39 61.90 93.65
3 | 4 6.35 100.00
------------+-----------------------------------
Total | 63 100.00
My goal is to tablulate gender and see it like this:
. tab gender
gender | Freq. Percent Cum.
------------+-----------------------------------
1 | 20 31.75 31.75
2 | 39 61.90 93.65
3 | 4 6.35 100.00
4 0 .... ....
------------+-----------------------------------
Total | 63 100.00
Can anyone help? I tried so hard, but cound not fix it. Many thanks in advance!
Note: This is only one (short) example among others.
I conducted a survey with the software "limesurvey". I successfully exported the data to excel and imported the data to stata. By viewing the data I noticed a problem that not every possibility of respones is available:
For example:
"What is your gender (according to birth registry)?" with response options 1: "male", 2: "female", 3: "divers", and 4: "unspecified according to birth registry".
Option 4 was not used by the paticipants, so that in Stata the variable "gender" only has the scale from 1 to 3. For completness and for descriptive Statistics, I would like to add catecory 4 in retrospect. How can I do it?
Now:
. tab gender
gender | Freq. Percent Cum.
------------+-----------------------------------
1 | 20 31.75 31.75
2 | 39 61.90 93.65
3 | 4 6.35 100.00
------------+-----------------------------------
Total | 63 100.00
My goal is to tablulate gender and see it like this:
. tab gender
gender | Freq. Percent Cum.
------------+-----------------------------------
1 | 20 31.75 31.75
2 | 39 61.90 93.65
3 | 4 6.35 100.00
4 0 .... ....
------------+-----------------------------------
Total | 63 100.00
Can anyone help? I tried so hard, but cound not fix it. Many thanks in advance!
Note: This is only one (short) example among others.
Comment