Renting versus buying a home

How to compare the full cost of owning and renting, beyond the mortgage payment and the rent.