Translation from STATA to R

Hello, everyone.
Would you please tell me the translation commands from STATA to R?
Data: Demo
STSTA: ranksum x if y >=18 & z ==0 , by(a)
Thank you.

See the FAQ: How to do a minimal reproducible example reprex for beginners. In this case, a small amount of representative data for a, x and y, with an explanation of the transformation that ranksum represents. That is better than for answers based on guesses. Alternatively, perhaps someone versed in STATA may come across this.

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.