Convert R code into SAS code

I would like to know how I can convert this formula into SAS code? Thanks in advance

bio.cov <- bio.cov %>% mutate(female = ifelse(sex == 0, TRUE, FALSE),

                   kappa=ifelse(female, 61.9, 79.6),

                   alpha=ifelse(female,-0.329,-0.411),

                   srblack = ethnicity %in% c(4, 4001,4002,4003),

                   eGFR = 141 * pmin(creatinine/kappa, 1)^alpha *

                                pmax(creatinine/kappa, 1)^-1.209 *

                                0.993^age * ifelse(female, 1.018, 1) *

                                ifelse(srblack, 1.159, 1))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.