We randomly assigned 958 patients to receive 5 mg or 10 mg of tofacitinib twice daily or methotrexate at a dose that was incrementally increased to 20 mg per week over 8 weeks ; 956 patients received a study drug .