R package for microsimulation