The reason to stay in your home as long as possible is to save you money. You are not currently paying your mortgage or any rent and if you move somewhere else you will have to pay these costs.
A well timed bankruptcy can buy you an extra couple months in the home after you file. Talk to your bankruptcy lawyer about the timing of the case and you could save your self a few months worth of rent. And if you are still in the house after the foreclosure sale some banks will pay you to move out.