Hi Statalist,
I was trying to output a file which showcase all values (regardless of whether that value has a label) of a variable.
Here are the codes I used:
use data, clear
uselabel, clear
save label, replace
however, this output only shows the values that have labels. There are some numeric variables in my data, for example: variable urban, it could have the following values
values label
1 urban
2 rural
99 (NO LABEL)
I wonder how could I also output the value "99"? Any suggestions are much appreciated!
Thank you in advance!
Related Posts with uselabel: how to also export values without a label
Determining level of significance between two median and between two catergorial variables, pre and post treatmentDear Stata community, I was wondering if anybody could help me with the following question. I am tr…
Create graphsDear all, I have a dataset that contains the following string variables: "country" and "countrydest…
having issues plotting stock returns in panel dataDear statalist, i am trying to plot the stock return data for a panel data of some companies, howeve…
Is it possible that log mis-calculates it or create weird ".b" when the workload is too heavy?I use Stata 17 (24 cores). I am sorry that I cannot provide the reproducible example because this p…
Average marginal effects of continuous variables by levels of a dichotomous variableHi, I run this four-way interaction model in Stata 14: xtreg Y c.X1##c.X2##c.X3##X4 Controls i.cou…
Subscribe to:
Post Comments (Atom)
0 Response to uselabel: how to also export values without a label
Post a Comment