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
How many variables are necessary to carry out a logistic regression?Is it possible with only 2 events in the group of exposed (n=5) and 32 in the group of non-exposed (…
Displaying mean values for groups on a lineHello Statalisters, I wish to display the means of a continuous variable for different values of a …
Testing difference between variances of two variables from the same populationGreetings, For a methodological framework I am developing, I need to test the difference between var…
Marginal effects for interaction after MlogitDear all, I'm new in this forum and also pretty new to Stata, so I don't know if my question is act…
Compute the solution to the dual problem using LinearProgram() classHi! First of all, happy new year to everyone reading this post! I am fairly new to Mata and am usi…
Subscribe to:
Post Comments (Atom)
0 Response to How to create drug classification variable using generic drug name variable
Post a Comment