The current rule, one of the most generous in the world IMO, is that to retain status as a PR, one must reside 2 years (730 days) out of every 5 in Canada.
(UNLESS your spouse is a Canadian citizen with whom you reside abroad. OR you are employed by a Canadian company which posts you abroad)