T.H.
First, stop the yelling. It doesn't accomplish anything except shaming your daughter. She could just be really interested in what she is doing and can't break away to go to the BR. However, kids often regress in their toileting habits when the are under stress. Is there a new baby in the house? Are you and your husband fighting more, causing more tension in the home? Not to alarm you, but is it possible that she is being sexually abused by a caregiver, stranger, or family member? If none of these are happening, then start a rewards chart. Each day she doesn't soil herself (or each half day) put a star/sticker on a calendar. If she is clean for a week, she gets a small reward. After a month, she gets a larger reward.
If these measures don't help, see the pediatrician to see if there is a physical problem. Then have an evaluation by a child psychologist/psychiatrist to help understand the reasons for the behavior.
A little about me. A child psychiatrist in practice 20 years, married with two children, 21 and 15.