Relativistic description of deformed rare earth nuclei