Creatinine clearance is used to estimate the