Hello, I have a question about "encode". Why the "encode" don't present "English dummy" by defined.
Moreover, the dummy number is wrong!!!
I use STATA 14
///
webuse hbp2, clear
tostring city, gen(ncity)
label define stata 1 "USA" 2 "JAPEN" 3 "UT" 5 "pp"
encode ncity, gen(stata)
Related Posts with A question in "encode"
Need help with formatting in asdocI am having an issue with formatting the values in the table while using asdoc and tabstat. for exam…
Median Follow-up timeHello, could somebody give me an advice on how to calculate median follow-up time? Thank you very mu…
How to get p-Value & CI of each factor variable for a prevalence table?I can only explain this question through an example and I cannot go for a logit or logistic. This i…
Disable the Stata to recognise a variable by part of the variable nameI have tried to search for similar question but couldn't find any. So I hope to create a new questio…
How I can test if price elasticity in a quantile regression differs among quantiles?Dear statalists, I would like to ask you how I could test if price elasticity differs statisticall …
Subscribe to:
Post Comments (Atom)
0 Response to A question in "encode"
Post a Comment