Hal_Al
Level 15

Education

Living off campus, at an out of town school, is still (in most cases) still a temporary absence.
Living off campus, in your home town, would depend on the details, but  would probably not pass muster.

From pub 501:
Temporary absences.
You and your qualifying
person are considered to live together
even if one or both of you are temporarily absent
from your home due to special circumstances
such as illness, education, business, vacation,
military service, or detention in a juvenile
facility. It must be reasonable to assume the absent
person will return to the home after the
temporary absence. You must continue to keep
up the home during the absence
<a rel="nofollow" target="_blank" href="https://www.irs.gov/pub/irs-pdf/p501.pdf">https://www.irs.gov/pub/irs-pdf/p501.pdf</a>