According to a study published in the journal social psychological and personality science, people with religious affiliations live longer, on average, than those without religious affiliations. The study analyzed more than 1{,}0001,0001, comma, 000 obituaries and accounted for other variables like sex and marital status. What type of study is this, and what is the explanatory variable?.