The rent situation in SF is partly to blame for housing shortages. People are buying homes because the laws favor renters over owners. Just google for the horror stories as they are aplenty. As such the availability of units for rent has dropped, forcing people to either buy to be in town or buy/rent out of town where its cheaper.