It takes time and the key is more mental control of how one can contract or relax and learn to control like any other muscle we have.
It is often done after surgical procedures on the anus to restore the area to its normal state or as a method to prevent anal fissures.
Goldstein so that he can help get you on the right path.