Package: DDM 1.0-0

Tim Riffe

DDM: Death Registration Coverage Estimation

A set of three two-census methods to the estimate the degree of death registration coverage for a population. Implemented methods include the Generalized Growth Balance method (GGB), the Synthetic Extinct Generation method (SEG), and a hybrid of the two, GGB-SEG. Each method offers automatic estimation, but users may also specify exact parameters or use a graphical interface to guess parameters in the traditional way if desired.

Authors:Tim Riffe, Everton Lima, Bernardo Queiroz

DDM_1.0-0.tar.gz
DDM_1.0-0.tar.gz(r-4.5-noble)DDM_1.0-0.tar.gz(r-4.4-noble)
DDM_1.0-0.tgz(r-4.4-emscripten)DDM_1.0-0.tgz(r-4.3-emscripten)
DDM.pdf |DDM.html
DDM/json (API)
NEWS

# Install 'DDM' in R:
install.packages('DDM', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • BrasilFemales - Example data for Brasil females by federal states, years 1991 to 2000
  • BrasilMales - Example data for Brasil males by federal states, years 1980 to 1991
  • Moz - Example data for Mozambique females 1997-2007

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.08 score 12 scripts 145 downloads 16 mentions 39 exports 0 dependencies

Last updated 8 years agofrom:688a7db53c. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-linuxNOTEOct 31 2024

Exports:addcodadjustagesassignNoteCodeavgDeathscdmltwddmddmplotdetectAgeIntervaldetectSexeOpenCDfakeDatesggbggbChooseAgesggbcoverageFromAgesggbcoverageFromYearggbFittedFromAgesggbgetAgesFitggbgetRMSggbMakeColumnsggbsegggbsegCoverageFromYearggbsegMakeColumnsgroup01guessageguessDeathsColumnheaderPrepinUSRisLeapYearreduceOpensegsegCoverageFromAgessegCoverageFromYearsegMakeColumnssegplotsingle2abrslopeintyintyint2ypart

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
append a '$cod' column if missingaddcod
adjust the range of ages used by 'ggbChooseAges()'adjustages
a cheap way to choose which column to assign a 'NoteCode' toassignNoteCode
if necessary divide deaths by intercensal intervalavgDeaths
Example data for Brasil females by federal states, years 1991 to 2000BrasilFemales
Example data for Brasil males by federal states, years 1980 to 1991BrasilMales
Coale-Demeny model life table: Westcdmltw
run all three deaths registration coverage estimation methodsddm
get a quick overview of the different estimates producedddmplot
Detect the age interval for some demographic datadetectAgeInterval
Detect the sex for some demographic datadetectSex
estimate remaining life expectancy in the open age groupeOpenCD
assume Jan 1 if no month or day givenfakeDates
estimate death registration coverage using the GGB methodggb
interactively determine ages to use for estimating coverageggbChooseAges
given a set of ages, what is the implied death registration coverage?ggbcoverageFromAges
estimate death registration coverage for a single year/sex/region using the GGB methodggbcoverageFromYear
make the growth-adjusted quasi life table columns required by GGB methodggbFittedFromAges
determine the age range that minimizes the mean squared errorggbgetAgesFit
calculate the root means square of the error to help find optimal age rangeggbgetRMS
make the growth-adjusted quasi life table columns required by GGB methodggbMakeColumns
estimate death registration coverage using the hybrid generalized growth balance and synthetic extinct generationggbseg
estimate death registration coverage for a single year/sex/region using the modified Bennett-Horiuchi methodggbsegCoverageFromYear
make the Bennett-Horiuchi quasi life table columns required by the second estimation methodggbsegMakeColumns
group down standard abridged data in child mortality groupgroup01
which age is closest to the point clicked?guessage
Figure out which column is the deaths columnguessDeathsColumn
a utility function to prep the headerheaderPrep
Logical utility functions%!=% %<% %<=% %==% %>% %>=% HMDlogic HMDutils logic
does a given pairlist of x and y coordinates fall within the plot region?inUSR
determine whether a year is a leap year.isLeapYear
Example data for Mozambique females 1997-2007Moz
chop down or group down the open agereduceOpen
estimate death registration coverage using the synthetic extinct generation methodseg
given a set of ages, what is the implied death registration coverage?segCoverageFromAges
estimate death registration coverage for a single year/sex/region using the Bennett-Horiuchi methodsegCoverageFromYear
make the Bennett-Horiuchi quasi life table columns required by the estimation methodsegMakeColumns
plot the age-pattern of coverage estimatessegplot
single ages to standard abridged agessingle2abr
get the slope the slope and intercept implied by a set of agesslopeint
get interval as fraction of full yearsyint
get the time interval without having to specify so many argumentsyint2
determine the proportion of a year passed as of a particular dateypart