At that age it sounds more pshchological but it might be worth making sure her diet has plenty of fibre in it and that she is drinking plenty of water so its not hurting her to do a poo.

I am not sure what else to do. Hope someone else can help