Handling problems of ecological fallacy in program planning and evaluation