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,000 obituaries and accounted for other variables like sex and marital status.
What type of study is this, and what is the explanatory variable?