I think this is a very good job, but I get confused with the calculation method of the Dichotomous. When I used the Power and Sample Size Program software, I got this sample size (143) in the following conditions.

However, I used the R codes of this repository to calculate the sample size in the same conditions. I got a different number (133). I used the shaded codes in the figure.
