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
Interaction Terms/Effects in Stata RegressionsGood evening, I have to calculate the interaction effect of my dummy variables P1-P3 on the market …
Stata to perform boosted regressionHi Everyone, I'm trying to perform a boosted logistic regression in order to measure the prediction…
Multiple line plot of long dataHello all, I’m working with a dataset in the long format. My observations are grouped within ids (i…
country pair fixed effects in gravity modelCan country pair fixed effects be used to address endogeneity in the case where the endogenous covar…
Create Output table with multiple variablesHi Everyone! New here and to STATA. Am done with the data cleaning and analysis (yay!), however woul…
Subscribe to:
Post Comments (Atom)
0 Response to Collect recode problem
Post a Comment