Overall, the prognostic model based on RAC1 and B cell infiltration demonstrates significant prognostic value at the pan-cancer level, indicating that patients with a high RPBI score have poorer prognosis. Here, RAC1 is linked to cancer.