Tack on that cost of living in NYC varies wildly depending on rent-stabilized and rent-controlled apartment arrangements (rent control is more strict than rent stabilization, rent stabilization is more common than rent control). There are millions of New Yorkers living in rent-stabilized apartments, and they might earn enough to live in their current pad but not be able to move somewhere else at market rate.
Similarly, property values have skyrocketed, so people living in homes they bought decades ago might be comfortable, while earning a wage that is technically not "living" by the standards of thhis academic research.