{
  "_id": "6a1f11dcb401979e7341db6f",
  "Package": "demography",
  "Version": "2.0.1.9000",
  "Title": "Forecasting Mortality, Fertility, Migration and Population Data",
  "Description": "Functions for demographic analysis including lifetable\ncalculations; Lee-Carter modelling; functional data analysis of\nmortality rates, fertility rates, net migration numbers; and\nstochastic population forecasting.",
  "LazyData": "yes",
  "ByteCompile": "TRUE",
  "Authors@R": "c(\nperson(\"Rob\", \"Hyndman\", email = \"Rob.Hyndman@monash.edu\", role = c(\"aut\", \"cre\", \"cph\"), comment = c(ORCID = \"0000-0002-2140-5352\")),\nperson(\"Heather\", \"Booth\", role = \"ctb\", comment = c(ORCID = \"0000-0002-8356-0534\")),\nperson(\"Leonie\", \"Tickle\", role = \"ctb\", comment = c(ORCID = \"0000-0002-6612-2401\")),\nperson(\"John\", \"Maindonald\", role = \"ctb\"),\nperson(\"Simon\", \"Wood\", role = \"ctb\"),\nperson(\"R Core Team\", role = \"ctb\")\n)",
  "URL": "https://pkg.robjhyndman.com/demography/,\nhttps://github.com/robjhyndman/demography",
  "BugReports": "https://github.com/robjhyndman/demography/issues",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libxml2-dev\nlibssl-dev libx11-dev",
  "Repository": "https://robjhyndman.r-universe.dev",
  "Date/Publication": "2025-10-06 07:55:04 UTC",
  "RemoteUrl": "https://github.com/robjhyndman/demography",
  "RemoteRef": "HEAD",
  "RemoteSha": "688551fc29756cb546ecf9ead4924afa3453e072",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 07:53:17 UTC",
    "User": "root"
  },
  "Author": "Rob Hyndman [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-2140-5352>),\nHeather Booth [ctb] (ORCID: <https://orcid.org/0000-0002-8356-0534>),\nLeonie Tickle [ctb] (ORCID: <https://orcid.org/0000-0002-6612-2401>),\nJohn Maindonald [ctb],\nSimon Wood [ctb],\nR Core Team [ctb]",
  "Maintainer": "Rob Hyndman <Rob.Hyndman@monash.edu>",
  "MD5sum": "d2c4de185f11b3b8bab30e748e28a76c",
  "_user": "robjhyndman",
  "_type": "src",
  "_file": "demography_2.0.1.9000.tar.gz",
  "_fileid": "8adb7a42851e7c954f494daf956e2df5b13e8b452814f6ba861238cca98690e3",
  "_filesize": 3095853,
  "_sha256": "8adb7a42851e7c954f494daf956e2df5b13e8b452814f6ba861238cca98690e3",
  "_created": "2026-05-17T07:53:17.000Z",
  "_published": "2026-06-02T17:24:44.712Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79131071215,
      "time": 207,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040611060"
    },
    {
      "job": 79131071657,
      "time": 231,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040613620"
    },
    {
      "job": 79131071194,
      "time": 183,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040608346"
    },
    {
      "job": 79131071543,
      "time": 188,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040609095"
    },
    {
      "job": 79131070534,
      "time": 233,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040586320"
    },
    {
      "job": 79131070421,
      "time": 162,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7365017924"
    },
    {
      "job": 79131071236,
      "time": 202,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040610553"
    },
    {
      "job": 79131071546,
      "time": 200,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040610311"
    },
    {
      "job": 79131071387,
      "time": 186,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040608863"
    }
  ],
  "_buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/robjhyndman/demography",
  "_commit": {
    "id": "688551fc29756cb546ecf9ead4924afa3453e072",
    "author": "Rob J Hyndman <robjhyndman@gmail.com>",
    "committer": "Rob J Hyndman <robjhyndman@gmail.com>",
    "message": "Increment version number to 2.0.1.9000\n",
    "time": 1759737304
  },
  "_maintainer": {
    "name": "Rob Hyndman",
    "email": "rob.hyndman@monash.edu",
    "login": "robjhyndman",
    "bluesky": "@robjhyndman.com",
    "orcid": "0000-0002-2140-5352",
    "description": "Professor of Statistics at Monash University, Australia",
    "uuid": 127518
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4",
      "role": "Depends"
    },
    {
      "package": "forecast",
      "version": ">= 8.5",
      "role": "Depends"
    },
    {
      "package": "ftsa",
      "version": ">= 4.8",
      "role": "Imports"
    },
    {
      "package": "rainbow",
      "role": "Imports"
    },
    {
      "package": "cobs",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "strucchange",
      "role": "Imports"
    },
    {
      "package": "HMDHFDplus",
      "version": ">= 2.0.8",
      "role": "Imports"
    }
  ],
  "_owner": "robjhyndman",
  "_selfowned": true,
  "_usedby": 7,
  "_updates": [
    {
      "week": "2025-40",
      "n": 6
    },
    {
      "week": "2025-41",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v2.0.1",
      "date": "2025-10-05"
    }
  ],
  "_topics": [
    "actuarial",
    "demography",
    "forecasting"
  ],
  "_stars": 77,
  "_contributors": [
    {
      "user": "robjhyndman",
      "count": 107,
      "uuid": 127518
    },
    {
      "user": "finyang",
      "count": 11,
      "uuid": 32216334
    },
    {
      "user": "mitchelloharawild",
      "count": 5,
      "uuid": 16127127
    },
    {
      "user": "earowang",
      "count": 2,
      "uuid": 2456216
    },
    {
      "user": "jenspiontkowski",
      "count": 2,
      "uuid": 18219493
    },
    {
      "user": "timriffe",
      "count": 1,
      "uuid": 904603
    }
  ],
  "_userbio": {
    "uuid": 127518,
    "type": "user",
    "name": "Rob J Hyndman",
    "description": "Professor of Statistics at Monash University, Australia"
  },
  "_downloads": {
    "count": 5333,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/demography"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/robjhyndman/demography",
  "_pkgdown": "https://pkg.robjhyndman.com/demography/",
  "_searchresults": 282,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/demography.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/robjhyndman/demography",
  "_realowner": "robjhyndman",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2010-08-12"
    },
    {
      "version": "1.02",
      "date": "2010-08-14"
    },
    {
      "version": "1.03",
      "date": "2010-08-24"
    },
    {
      "version": "1.04",
      "date": "2010-09-22"
    },
    {
      "version": "1.05",
      "date": "2010-09-30"
    },
    {
      "version": "1.06",
      "date": "2010-10-14"
    },
    {
      "version": "1.07",
      "date": "2010-11-04"
    },
    {
      "version": "1.08",
      "date": "2011-02-15"
    },
    {
      "version": "1.09-1",
      "date": "2011-02-17"
    },
    {
      "version": "1.10",
      "date": "2011-10-18"
    },
    {
      "version": "1.11",
      "date": "2012-01-31"
    },
    {
      "version": "1.12",
      "date": "2012-04-24"
    },
    {
      "version": "1.13",
      "date": "2012-08-06"
    },
    {
      "version": "1.14",
      "date": "2012-10-26"
    },
    {
      "version": "1.15",
      "date": "2013-08-21"
    },
    {
      "version": "1.16",
      "date": "2013-12-17"
    },
    {
      "version": "1.17",
      "date": "2014-02-01"
    },
    {
      "version": "1.18",
      "date": "2014-09-15"
    },
    {
      "version": "1.19",
      "date": "2017-02-16"
    },
    {
      "version": "1.20",
      "date": "2017-04-25"
    },
    {
      "version": "1.21",
      "date": "2019-01-18"
    },
    {
      "version": "1.22",
      "date": "2019-04-22"
    },
    {
      "version": "2.0",
      "date": "2023-02-08"
    },
    {
      "version": "2.0.1",
      "date": "2025-10-06"
    }
  ],
  "_exports": [
    "bms",
    "cm.spline",
    "cm.splinefun",
    "coherentfdm",
    "combine.demogdata",
    "compare.demogdata",
    "demogdata",
    "e0",
    "extract.ages",
    "extract.years",
    "fdm",
    "flife.expectancy",
    "hmd.e0",
    "hmd.mx",
    "hmd.pop",
    "isfe",
    "lca",
    "life.expectancy",
    "lifetable",
    "models",
    "netmigration",
    "pop.sim",
    "read.demogdata",
    "set.upperage",
    "sex.ratio",
    "smooth.demogdata",
    "tfr"
  ],
  "_datasets": [
    {
      "name": "aus.fert",
      "title": "Australian fertility data",
      "object": "ausfert",
      "class": [
        "demogdata"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "fr.mort",
      "title": "French mortality data",
      "object": "france",
      "class": [
        "demogdata"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "fr.sm",
      "title": "French mortality data",
      "object": "frsm",
      "class": [
        "demogdata"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "as.data.frame.demogdata",
      "title": "Coerce a demogdata object to a data.frame object",
      "topics": [
        "as.data.frame.demogdata"
      ]
    },
    {
      "page": "ausfert",
      "title": "Australian fertility data",
      "topics": [
        "aus.fert"
      ]
    },
    {
      "page": "cm.spline",
      "title": "Monotonic interpolating splines",
      "topics": [
        "cm.spline",
        "cm.splinefun",
        "monotonic"
      ]
    },
    {
      "page": "coherentfdm",
      "title": "Coherent functional demographic model for grouped data",
      "topics": [
        "coherentfdm"
      ]
    },
    {
      "page": "combine.demogdata",
      "title": "Combine two demogdata objects into one demogdata object",
      "topics": [
        "combine.demogdata"
      ]
    },
    {
      "page": "compare.demogdata",
      "title": "Evaluation of demographic forecast accuracy",
      "topics": [
        "compare.demogdata"
      ]
    },
    {
      "page": "demogdata",
      "title": "Create demogdata object from raw data matrices",
      "topics": [
        "demogdata"
      ]
    },
    {
      "page": "extract.ages",
      "title": "Extract some ages from a demogdata object",
      "topics": [
        "extract.ages"
      ]
    },
    {
      "page": "extract.years",
      "title": "Extract some years from a demogdata object",
      "topics": [
        "extract.years"
      ]
    },
    {
      "page": "fdm",
      "title": "Functional demographic model",
      "topics": [
        "fdm"
      ]
    },
    {
      "page": "forecast.fdm",
      "title": "Forecast functional demographic model.",
      "topics": [
        "forecast.fdm"
      ]
    },
    {
      "page": "forecast.fdmpr",
      "title": "Forecast coherent functional demographic model.",
      "topics": [
        "forecast.fdmpr"
      ]
    },
    {
      "page": "forecast.lca",
      "title": "Forecast demogdata data using Lee-Carter method.",
      "topics": [
        "forecast.lca"
      ]
    },
    {
      "page": "fr.mort",
      "title": "French mortality data",
      "topics": [
        "fr.mort",
        "fr.sm"
      ]
    },
    {
      "page": "hmd",
      "title": "Read data from HMD and construct a mortality demogdata object",
      "topics": [
        "hmd",
        "hmd.e0",
        "hmd.mx",
        "hmd.pop"
      ]
    },
    {
      "page": "isfe",
      "title": "Integrated Squared Forecast Error for models of various orders",
      "topics": [
        "isfe",
        "isfe.demogdata"
      ]
    },
    {
      "page": "lca",
      "title": "Model mortality or fertility data using Lee-Carter approach",
      "topics": [
        "bms",
        "lca"
      ]
    },
    {
      "page": "life.expectancy",
      "title": "Estimate life expectancy from mortality rates",
      "topics": [
        "e0",
        "flife.expectancy",
        "life.expectancy"
      ]
    },
    {
      "page": "lifetable",
      "title": "Construct lifetables from mortality rates",
      "topics": [
        "lifetable"
      ]
    },
    {
      "page": "mean.demogdata",
      "title": "Mean and median functions for data of class demogdata",
      "topics": [
        "mean.demogdata",
        "median.demogdata"
      ]
    },
    {
      "page": "models",
      "title": "Show model information for the forecast coefficients in FDM models.",
      "topics": [
        "models",
        "models.fmforecast",
        "models.fmforecast2"
      ]
    },
    {
      "page": "migration",
      "title": "Calculate net migration from mortality and fertility data",
      "topics": [
        "netmigration"
      ]
    },
    {
      "page": "plot.demogdata",
      "title": "Plot age-specific demographic functions",
      "topics": [
        "lines.demogdata",
        "plot.demogdata",
        "points.demogdata"
      ]
    },
    {
      "page": "plot.errorfdm",
      "title": "Plot differences between actuals and estimates from fitted demographic model",
      "topics": [
        "plot.errorfdm"
      ]
    },
    {
      "page": "plot.fmforecast",
      "title": "Plot forecasts from a functional demographic modell",
      "topics": [
        "plot.fmforecast",
        "plot.lca"
      ]
    },
    {
      "page": "plot.lifetable",
      "title": "Plot life expectancy from lifetable",
      "topics": [
        "lines.lifetable",
        "plot.lifetable"
      ]
    },
    {
      "page": "pop.sim",
      "title": "Population simulation",
      "topics": [
        "pop.sim"
      ]
    },
    {
      "page": "read.demogdata",
      "title": "Read demographic data and construct demogdata object",
      "topics": [
        "read.demogdata"
      ]
    },
    {
      "page": "residuals.fdm",
      "title": "Compute residuals and fitted values from functional demographic model or Lee-Carter model",
      "topics": [
        "fitted.fdm",
        "fitted.lca",
        "residuals.fdm",
        "residuals.lca"
      ]
    },
    {
      "page": "set.upperage",
      "title": "Combine the upperages of a demogdata object.",
      "topics": [
        "set.upperage"
      ]
    },
    {
      "page": "sex.ratio",
      "title": "Compute sex ratios from mortality rates",
      "topics": [
        "sex.ratio"
      ]
    },
    {
      "page": "simulate.fmforecast",
      "title": "Simulate future sample paths from functional demographic model forecasts.",
      "topics": [
        "simulate.fmforecast",
        "simulate.fmforecast2"
      ]
    },
    {
      "page": "smooth.demogdata",
      "title": "Create smooth demogdata functions",
      "topics": [
        "smooth.demogdata"
      ]
    },
    {
      "page": "summary.fdm",
      "title": "Summary for functional demographic model or Lee-Carter model",
      "topics": [
        "summary.fdm",
        "summary.lca"
      ]
    },
    {
      "page": "tfr",
      "title": "Compute total fertility rate from fertility rates",
      "topics": [
        "tfr"
      ]
    },
    {
      "page": "update",
      "title": "Updating functional demographic models and coherent functional demographic models.",
      "topics": [
        "update",
        "update.fmforecast",
        "update.fmforecast2"
      ]
    }
  ],
  "_readme": "https://github.com/robjhyndman/demography/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "ash",
    "askpass",
    "backports",
    "base64enc",
    "bit",
    "bit64",
    "bitops",
    "boot",
    "bslib",
    "cachem",
    "checkmate",
    "class",
    "cli",
    "clipr",
    "cluster",
    "cobs",
    "colorspace",
    "cpp11",
    "crayon",
    "curl",
    "cvar",
    "data.table",
    "deSolve",
    "digest",
    "dplyr",
    "e1071",
    "ecp",
    "evaluate",
    "evgam",
    "farver",
    "fastICA",
    "fastmap",
    "fBasics",
    "fda",
    "fdapace",
    "fds",
    "fGarch",
    "FNN",
    "fontawesome",
    "forecast",
    "foreign",
    "Formula",
    "fracdiff",
    "fs",
    "ftsa",
    "gbutils",
    "generics",
    "geometry",
    "ggplot2",
    "glue",
    "GPArotation",
    "gridExtra",
    "gss",
    "gtable",
    "hdrcde",
    "highr",
    "HMDHFDplus",
    "Hmisc",
    "hms",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "httr",
    "isoband",
    "janitor",
    "jquerylib",
    "jsonlite",
    "kernlab",
    "KernSmooth",
    "knitr",
    "ks",
    "labeling",
    "LaplacesDemon",
    "lattice",
    "lifecycle",
    "linprog",
    "Lmoments",
    "lmtest",
    "locfit",
    "lpSolve",
    "lubridate",
    "magic",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mclust",
    "memoise",
    "mgcv",
    "mime",
    "mnormt",
    "multicool",
    "mvtnorm",
    "nlme",
    "nnet",
    "numDeriv",
    "openssl",
    "pcaPP",
    "pdfCluster",
    "pillar",
    "pkgconfig",
    "pracma",
    "prettyunits",
    "progress",
    "proxy",
    "psych",
    "purrr",
    "quantreg",
    "R6",
    "rainbow",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppProgress",
    "RCurl",
    "Rdpack",
    "readr",
    "rlang",
    "rmarkdown",
    "ROOPSD",
    "rpart",
    "rstudioapi",
    "rvest",
    "S7",
    "sandwich",
    "sass",
    "scales",
    "sde",
    "selectr",
    "snakecase",
    "SparseM",
    "spatial",
    "stabledist",
    "stringi",
    "stringr",
    "strucchange",
    "survival",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "timeSeries",
    "tinytex",
    "tzdb",
    "urca",
    "utf8",
    "vars",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "xfun",
    "xml2",
    "yaml",
    "zoo"
  ],
  "_score": 9.084900716244658,
  "_indexed": true,
  "_nocasepkg": "demography",
  "_universes": [
    "robjhyndman"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:55:48.000Z",
      "distro": "noble",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "0310fe854087165c18bddec5a278d30d63802886e0433e931d436400625351ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:56:06.000Z",
      "distro": "noble",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "1a826c179ebe4005cfc2b56892550d8a3c2bcf94c58f1b70e0cbf6e68da064e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:55:26.000Z",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "be811250f4fdb12fdabc7e234ea44b557a3481e4fb1ed6b376dc63058fd5886a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:55:36.000Z",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "dea951de959bd0c6a99cf85b41fdb27845679503709c6761b3ded1ca28bafdb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:55:24.000Z",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "1512c79a2c65564425dcca216e13a2e418fbefea468620ba20ea60047e9d7d10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:55:06.000Z",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "00cc83bc2f4764d5b540db8cbf678502d5137e4e274c171164d45450fc4906b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.1.9000",
      "date": "2026-05-17T07:55:01.000Z",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "002f05cbb8d422adb403a11fdf61910889a523b975f9ebe2f94faab6d1a508b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.1.9000",
      "date": "2026-06-02T17:24:19.000Z",
      "commit": "688551fc29756cb546ecf9ead4924afa3453e072",
      "fileid": "541b51a87fa863fe2a0fea6596a2c24871a93d13a99675f47c5decc018402626",
      "status": "success",
      "buildurl": "https://github.com/r-universe/robjhyndman/actions/runs/25985072015"
    }
  ]
}