She does NOT know she has done wrong. Dogs do not "do" right and wrong. They have no idea of the concept. Stop scolding her or telling her off or else she WILL hide from you - not because she knows she has done wrong but because she is afraid of you.
You sound quite inexperienced (that's not a criticism by the way) so I'd encourage you to find a training class near you and have a chat with the trainer about what you want to achieve with her
