This repository contains R-script for a prediction model of mortality within 90 days after cemented total hip arthroplasty (THA) in Sweden.