There was a big study a while back that showed something like only 30% from out of state?
The tricky is they had an expansive definition of "local": they were measuring where people most recently became homeless, which means almost any housing in SF for almost any amount of time meant they counted as local.