H.D.
My daughter was nearly 5 before she would go #2 in the toilet. She would go #1, but would pull out a nightime pull up and hide in her room to go #2 in the evenings. She never had accidents, and I honestly was afraid to push her about it for fear that she would "withhold" and just not go. Her peditrician said that often children have a hard time with it. Something like they think it is part of them?? Finally we resorted to bribery and within a week she was going #2 in the potty. She really likes Pokemon so we bought 7, they sat on the back of the toilet and she knew that she could pick one for everytime she went #2 in the potty. Worked like a charm! Also worked to get rid of the nighttime diapers a short time later. Everytime she woke up with a dry night diaper she got a prize. Took 4 nights!
Best wishes