demofit is an R package for fitting parametric mortality curves and forecasting mortality rates with stochastic models.
install.packages("demofit")
remotes::install\_github("jackieli/demofit")See the package manual and the package vignette for full details.