Esempio n. 1
0
    def create_population(self, ind_type, logging=True):
        """
        Create a population according to specified age and household size
        distributions.
        """

        self.P = Pop_HH(ind_type, logging)
        self.P.gen_hh_age_structured_pop(self.params['pop_size'], self.hh_comp,
                                         self.age_dist,
                                         self.params['age_cutoffs'], self.rng)
        self.P.allocate_couples()
        self.P.print_population_summary()