creating variable

14 views
Skip to first unread message

kofi hush

unread,
Nov 18, 2014, 9:26:21 PM11/18/14
to stata-us...@googlegroups.com
i want to create some variables based on the definitions below and i would help with the stata code

IntCov1             Variable equals IntCov if 0 ≤ IntCov < 5, and 5 otherwise

IntCov2             Variable equals 0 if IntCov< 5, equals (IntCov-5) if 5 ≤ IntCovt< 10, and 5 otherwise

IntCov3             Variable equals 0 if IntCov< 10, equals (IntCov-10) if 10 ≤ IntCov< 20, and 10 otherwise

IntCov4             Variable equals 0 if IntCov< 20, and (IntCov-20) otherwise

Reply all
Reply to author
Forward
0 new messages