Sociologist John Bartkowski asked the parents and teachers of 16,000 kids how well behaved they were. They wanted to know which kids showed the best self-control, were most skilled in relating to other people, and had the best approach to learning. The verdict: if the whole family went to religious services regularly and talked about their faith, the kids were best behaved.
This makes sense to me. If the whole family shares a moral order together, and with a larger community, and regularly renews their commitment by what they do and what they talk about, the kids have a meaningful world to behave within. The researchers did not know why religious institutions had this effect more strongly than other organizations that involve whole families. I think it is because religious faith offers the widest vision of the meaningful order, but I would be interested in argument on this point.
In any case, though, sociology confirms what most religious people could show examples of. IF the whole family really practices their faith with the kids and without ambivalence, the kids will find it makes sense to relate well with other people, too.