Several factors can affect compliance, including the complexity of the treatment regimen, side effects, financial constraints, and lack of social support. Psychological factors such as anxiety and depression can also impact a patient's ability to adhere to treatment plans.