How do we distinguish the stellar effects from the planetary effects in the observations

How do we distinguish the stellar effects from the planetary effects in the observations