I am trying to calculate direct and indirect standardized rates by subgroups such as region and sex using "ageadjust.indirect" and "ageadjust.direct" in R. I appreciate sharing any examples or codes if you have.
I tried to run the Parfait code from the post below, but no luck. Calculate age standardised rates by sub-group with confidence intervals in R