The commute (by train) is in fact less expensive than gas and maintenance on a car in many cases.
If you double your housing cost, even moving from a mortgage to renting because you cannot afford to buy out here, you're still ahead in the valley.
Of course, individual circumstances may alter the above, but generally it's true.