To be a bona fide resident of a foreign country, you must have established a bona fide residency in a foreign country for a period that includes an entire tax year. Such factors as your intention or purpose of your stay, as well as the nature and length of your stay abroad, are considered.