"There's no doubt that those addiction issues are more common in this group than in the other group, and we know that addiction tends to make you less good at managing other areas of your life such as your finances and nutrition.
"But the stress of not having a home, and not being able to organise your life in the way that others can, is likely to exacerbate all those conditions."
He said the study, published today in the NZ Medical Journal, added to other evidence that investing in housing reduced future health costs.
"They tend to do better when they are provided with a house so that social services have a place to go to and care can be coordinated for them," he said.
Patients in the group were tagged as homeless or with inadequate housing, discord with neighbours, lodgers and landlords, problems related to living in residential institutions, lack of adequate food, low income, insufficient social insurance and welfare support, or other problems related to housing and economic circumstances.
Although it was a broad list, Thornley said the "vast majority" of tags were about poor housing, because problems were only tagged if they were "exacerbating conditions" for the patients' main health issues.
About two-fifths of the group were hospitalised for mental health issues and the rest for other medical conditions.
Forty per cent were European, 33 per cent Maori, 20 per cent Pacific and 7 per cent Asian. The Maori share of the homeless was twice the Maori share of the general population and they were also 68 per cent more likely to die during the study period than other tagged patients.
Almost half (47 per cent) of the tagged sample smoked cigarettes and that was by far the biggest single factor driving their higher death rate. The next-biggest drivers were diseases related to smoking cannabis, diabetes and alcohol-related illnesses.
Otago University housing and health researcher Dr Michael Baker noted that the study did not directly compare the tagged group with non-tagged patients admitted to Middlemore with the same illnesses.
"The analysis does show some limitations of what you can do with administrative data," he said. "A lot more effort needs to be put into looking at the health of this group."