dirifit fits by maximum likelihood a Dirichlet distribution to a set of variables. Usually these variables are proportions, e.g. proportions of the budget of municipalities spent on categories school, police, and other. These proportions can be made dependent on covariates, e.g. political orientation of ruling parties, and whether or not the municipality is urban.