Yes, that is what I have been using, but how to I string together several for example:
compute hep_c1=char.index(lower(cause), "hep c")>0.
compute hepatitis_c1=char.index(lower(cause), "hepatitis c")>0.
compute hepatitisc1=char.index(lower(cause), "hepatitisc")>0.
compute hvc1=char.index(lower(cause), "hvc")>0.
compute hcv2=char.index(lower(cause1), "hcv")>0.
compute hepc2=char.index(lower(cause1), "hepc")>0.
I have to run each one of these individually and then add them all together to look for the presence of any of these indicators. Is it possible to computer one variable that looks for hep C, hepatitis c, hepatitisc, hvc, hcv, or hepc.
compute hep_c=char.index(lower(cause), "hep c" "hepatitis c" "hepatitisc" "hvc" "hcv" "hepc')>0.
I want the above code to be able to look for any of the above versions and code 1 for any of the above.
Let me know,