Drugname
brentuximab |
tadalafil |
riociguat |
riociguat |
iobenguane |
iobenguane |
everolimus ... |
gen brentuximab=0
replace brentuximab = 1 if strpos(Abstract, "brentuximab")
I would rather not have to write 500+ lines of code and switch out the drug name for each, but I can't figure out how to create a loop to do this. I'm definitely open to other ways of doing it if you have any suggestions.
Thanks in advance!
0 Response to Loops: Creating Dummy Variables from List of Drug Names
Post a Comment