Hello all,
When I put a date variable in the table command, the resulted table contains the double/float values as the value headers. I found no workaround.
For example, "table (some_cat_var) (start_date)" would give me something like this, where start_date is a float variable with %td format and some_cat_var is a numeric variable with labels of its own.
Edit:: I see that labmask-ing serves the purpose, I am attaching the code.
gen start_date_str = string(start_date, "%td")
labmask start_date, values(start_date_str)
Is there an easier way?
Thanks
When I put a date variable in the table command, the resulted table contains the double/float values as the value headers. I found no workaround.
For example, "table (some_cat_var) (start_date)" would give me something like this, where start_date is a float variable with %td format and some_cat_var is a numeric variable with labels of its own.
Edit:: I see that labmask-ing serves the purpose, I am attaching the code.
gen start_date_str = string(start_date, "%td")
labmask start_date, values(start_date_str)
Is there an easier way?
Thanks

Comment