
Sarah B. answered 09/27/22
Masters of Biostatistics
Hi Gregory,
You might try the following:
replace B=0 if A<=7.6
replace B=1 if A>=7.61
*Note: Depending on what the variable units are there may be additional considerations.
Gregory P.
asked 09/18/22B=0 if A<=7.6 indicating no evidence of clinical risk factors or B=1 if A>7.6 is what I am trying to do. I do not know why I keep getting a lot of syntax errors.
Sarah B. answered 09/27/22
Masters of Biostatistics
Hi Gregory,
You might try the following:
replace B=0 if A<=7.6
replace B=1 if A>=7.61
*Note: Depending on what the variable units are there may be additional considerations.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.