Low body mass index and use of corticosteroids, but not cholestasis, are risk factors for osteoporosis in patients with chronic liver disease.