Hello,
I am relatively new to STATA.
Can anyone kindly help me with the command to generate BP categories. I have sysbp and diabp and would want th generate the categories as follows;
Normal BP =0 if sysbp<120 and diabp<80
Elevated BP =1 if sysbp=120-129 and diabp<80
Stage 1 HTN =2 if sysbp=130-139 or diabp=80-89
Stage 2 HTN =3 if sysbp≥140 or diabp≥90
I can't seem to figure out how to incorporate the and/or in the commands.
Thanks in advance.
Best regards
Olumide
I am relatively new to STATA.
Can anyone kindly help me with the command to generate BP categories. I have sysbp and diabp and would want th generate the categories as follows;
Normal BP =0 if sysbp<120 and diabp<80
Elevated BP =1 if sysbp=120-129 and diabp<80
Stage 1 HTN =2 if sysbp=130-139 or diabp=80-89
Stage 2 HTN =3 if sysbp≥140 or diabp≥90
I can't seem to figure out how to incorporate the and/or in the commands.
Thanks in advance.
Best regards
Olumide
Comment