For patients with lung cancer, moderate doctor shopping can positively affect survival, while excessive visits can increase mortality. This effect was more notable among patients with middle or higher incomes and those living in metropolitan cities. These results highlight the need for policies that regulate the use of medical resources, especially among patients with greater access to medical care, to ensure the efficient utilization of medical care for improved health outcomes.