Hi
I am working with the new table and collect command in STATA 17.
After I recode levels of a dimension, the "collect dims" command shows that the dimension has both oldlevel and newlevel.
how can I remove old levels?
This is the code used in STATA table-document:
use https://www.stata-press.com/data/r17/nhanes2l
collect clear
sort sex region
collect: by sex region: summarize weight
collect dims
collect recode sex 1 = Male 2 = Female
collect dims
The result of "collect dims" :
before recode:
Array
After recode:
Array
as you can see, sex dimension has 2 levels before but 4 levels after recode.
I will appreciate any comment.
cheers
Related Posts with Collect recode problem
forest plot for ST Cox HRHi! I`d like to build a forestplot of my stcox HR for many variables. I tried with ipdover, over (va…
Multiple linear regression helpHi I am currently running multiple linear regression analyses. The predictor variables that I am…
ID fixed effect error: factor variables may not contain noninteger valuesHi! I am running a ologit regression with ID fixed effect and get the error msg: factor variables ma…
Difference in Differences with 3 time periodsDear all, I am currently analyzing the link between board gender diversity and firm performance. I …
Time-series dataset with repeated valuesDear community! I am conducting a research on public opinion combined with different survey rounds, …
Subscribe to:
Post Comments (Atom)
0 Response to Collect recode problem
Post a Comment