Hello. I am research student that is new to STATA and I am trying to learn how to create a drug classification variable in my dataset. I have a variable with generic drug name, dose, and form (ex. labetalol 200 mg tablet). I would like to write a code that tells STATA to find a list of drug names, for example "labetalol", "atenolol", "carvedilol" and label them as a "beta blocker" in the new variable drug classification.
I have tried using the find and replace method as detailed in other forums but have been unsuccessful with the codes. Thanks in advance for the help.
Related Posts with How to create drug classification variable using generic drug name variable
1-to-(n) Propensity score matching without replacementHi, I was hoping if someone can help me with this. I have a data set with about 100 cases and 6000 …
getting estimates when using bayes prefix for melogitHi Stata forum members, I need some advice on how to get estimates after fitting melogit using baye…
Joinby two variablesDear statalisters, I am trying to merge two datasets and I have some problems. I started yesterday …
Concatenate of a string and a numberDear statalister, I am trying to merge to database, I would like to try using a concatenate of coun…
Convert string to time including millisecondsI have a variable containing strings in the following format StringVar "2018-12-27 14:28:41.4861930…
Subscribe to:
Post Comments (Atom)
0 Response to How to create drug classification variable using generic drug name variable
Post a Comment