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
Contents of c(seed) in Stata 5.1I have recently upgraded from Stata 13.1 to Stata 15.1, and I am noticing a difference when I am doi…
Presenting industry and year coefficient using a 3D graphHi all I regress y on X1 and X2 per each industry and year group. My coefficient of interest is the…
Estimating Incidence Rate using poisson regressionHi All, Up to now I have benefitted a lot from this forum. One question I can’t get my head around …
Help with creating a dummy variable that depends on the last integer of a dateHey y'all. I've been stuck on creating a dummy variable called summer that's 1 when the integer end…
local directory not workingHello all, I created a local directory and when I call the dataset (straight after defining the loca…
Subscribe to:
Post Comments (Atom)
0 Response to Collect recode problem
Post a Comment