e.g. . csjl icd kmgrp [fw=wt], by(sex)
Note that You will need to apply frequency weights by wt
of csjl routine.
Dataset which will produce the examples in the help file