Sociodemographic factors and failure of hip arthroplasty