The allocation of family resources to farm and non-farm activities in a village in Northern Thailand