{
  "_id": "6a1befa11d7bb097a0a22081",
  "Package": "DasGuptR",
  "Type": "Package",
  "Title": "Das Gupta Standardisation and Decomposition",
  "Version": "2.1.0",
  "Authors@R": "c(person(given = \"Josiah\",\nfamily = \"King\",\nrole = c(\"aut\", \"cre\"),\nemail = \"josiah.king@ed.ac.uk\"),\nperson(given = \"Ben\",\nfamily = \"Matthews\",\nrole = \"aut\"))",
  "Maintainer": "Josiah King <josiah.king@ed.ac.uk>",
  "Description": "Implementation of Das Gupta's standardisation and\ndecomposition of population rates, as set out \"Standardization\nand decomposition of rates: A user’s manual\", Das Gupta (1993)\n<https://www2.census.gov/library/publications/1993/demographics/p23-186.pdf>.\nThe goal of these methods is to calculate adjusted rates based\non compositional 'factors' and quantify the contribution of\neach factor to the difference in crude rates between\npopulations. The package offers functionality to handle various\nscenarios for any number of factors and populations, where said\nfactors can be comprised of vectors across sub-populations\n(including cross-classified population breakdowns), and with\nthe option to specify user-defined rate functions.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/josiahpjking/DasGuptR",
  "BugReports": "https://github.com/josiahpjking/DasGuptR/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "R.rsp",
  "Repository": "https://josiahpjking.r-universe.dev",
  "Date/Publication": "2025-12-02 10:50:18 UTC",
  "RemoteUrl": "https://github.com/josiahpjking/dasguptr",
  "RemoteRef": "HEAD",
  "RemoteSha": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-31 08:04:48 UTC",
    "User": "root"
  },
  "Author": "Josiah King [aut, cre],\nBen Matthews [aut]",
  "MD5sum": "76a5e34619b07c2d8b0818768e611801",
  "_user": "josiahpjking",
  "_type": "src",
  "_file": "DasGuptR_2.1.0.tar.gz",
  "_fileid": "94fdf7cd131ccf1d19d5acd138f2a1abf5897680fee29b700898f2ccc539d9a2",
  "_filesize": 1903380,
  "_sha256": "94fdf7cd131ccf1d19d5acd138f2a1abf5897680fee29b700898f2ccc539d9a2",
  "_created": "2026-05-31T08:04:48.000Z",
  "_published": "2026-05-31T08:21:52.984Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78710775806,
      "time": 108,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7315075992"
    },
    {
      "job": 78710775842,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7315076333"
    },
    {
      "job": 78710775832,
      "time": 156,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7315172212"
    },
    {
      "job": 78710775889,
      "time": 151,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7315175789"
    },
    {
      "job": 78710640742,
      "time": 140,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315062969"
    },
    {
      "job": 78710775833,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315075363"
    },
    {
      "job": 78710775838,
      "time": 62,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7315070718"
    },
    {
      "job": 78710775827,
      "time": 74,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7315072166"
    },
    {
      "job": 78710775834,
      "time": 74,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7315072014"
    }
  ],
  "_buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/josiahpjking/dasguptr",
  "_commit": {
    "id": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
    "author": "Josiah King <josiahpjking@gmail.com>",
    "committer": "Josiah King <josiahpjking@gmail.com>",
    "message": "license. fix agg=F for 2 factors\n",
    "time": 1764672618
  },
  "_maintainer": {
    "name": "Josiah King",
    "email": "josiah.king@ed.ac.uk",
    "login": "josiahpjking",
    "description": "",
    "uuid": 12935361
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    }
  ],
  "_owner": "josiahpjking",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 12,
  "_contributors": [
    {
      "user": "josiahpjking",
      "count": 79,
      "uuid": 12935361
    },
    {
      "user": "benmatthewsed",
      "count": 1,
      "uuid": 29891641
    }
  ],
  "_userbio": {
    "uuid": 12935361,
    "type": "user",
    "name": "Josiah King"
  },
  "_downloads": {
    "count": 154,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DasGuptR"
  },
  "_devurl": "https://github.com/josiahpjking/dasguptr",
  "_searchresults": 17,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DasGuptR.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/josiahpjking/dasguptr",
  "_realowner": "josiahpjking",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2.1.0",
      "date": "2025-04-07"
    }
  ],
  "_exports": [
    "ccwrap",
    "dg_plot",
    "dg_table",
    "dg2pop",
    "dg354",
    "dg611",
    "dg612",
    "dgcc",
    "dgnpop",
    "split_popstr"
  ],
  "_datasets": [
    {
      "name": "reconv",
      "title": "Scottish Reconvictions data 2004-2016",
      "object": "reconv",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "Sex",
        "Age",
        "convicted_population",
        "offenders",
        "reconvicted",
        "reconvictions",
        "prev_rate"
      ],
      "rows": 130,
      "table": true,
      "tojson": true
    },
    {
      "name": "uspop",
      "title": "US population data 1940-1990",
      "object": "uspop",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "agebin",
        "thous",
        "birthrate"
      ],
      "rows": 459,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ccwrap",
      "title": "Wrapper for cross-classified data that standardises rates across a pair of populations. Because these are (r+r')/2 * Q(a_i), this requires 1) doing the rate standardisation on each sub-population, 2) performing the standardisation on the cross classified structure variables, 3) multiplying and (optionally) aggregating up",
      "topics": [
        "ccwrap"
      ]
    },
    {
      "page": "dg_plot",
      "title": "Creates a plot of Das Gupta standardised rates across the set of populations",
      "topics": [
        "dg_plot"
      ]
    },
    {
      "page": "dg_table",
      "title": "Creates a small table of Das Gupta standardised rates. If no populations are specified, rates will be shown for all available populations. If only two populations (or if two particular populations are specified), then rate-differences and 'decomposition effects' are calculated and presented.",
      "topics": [
        "dg_table"
      ]
    },
    {
      "page": "dg2pop",
      "title": "Standardisation and decomposition of rates over K rate-factors and 2 populations. We suggest using dgnpop, which will internally call this function.",
      "topics": [
        "dg2pop"
      ]
    },
    {
      "page": "dg354",
      "title": "Das Gupta equation 3.54. internal function called by dg2pop.",
      "topics": [
        "dg354"
      ]
    },
    {
      "page": "dg611",
      "title": "Das Gupta equation 6.11: Standardises rates across populations",
      "topics": [
        "dg611"
      ]
    },
    {
      "page": "dg612",
      "title": "Das Gupta equation 6.12 for a differences between 2 populations when standardised across N populations.",
      "topics": [
        "dg612"
      ]
    },
    {
      "page": "dgcc",
      "title": "Das Gupta equation 5.36 across N populations: Decomposes cross-classified population structures into a set of symmetric proportions indicating contribution of individual structural variables.",
      "topics": [
        "dgcc"
      ]
    },
    {
      "page": "dgnpop",
      "title": "Prithwis Das Gupta's 1993 standardisation and decomposition of rates over K rate-factors and N populations.",
      "topics": [
        "dgnpop"
      ]
    },
    {
      "page": "reconv",
      "title": "Scottish Reconvictions data 2004-2016",
      "topics": [
        "reconv"
      ]
    },
    {
      "page": "split_popstr",
      "title": "Das Gupta equation 5.36 for a single population: Decomposes cross-classified population structures into a set of symmetric proportions indicating contribution of individual structural variables.",
      "topics": [
        "split_popstr"
      ]
    },
    {
      "page": "uspop",
      "title": "US population data 1940-1990",
      "topics": [
        "uspop"
      ]
    }
  ],
  "_readme": "https://github.com/josiahpjking/dasguptr/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "bootstrap.html.asis",
      "filename": "bootstrap.html",
      "title": "Bootstrapping standardized rates and decomposition effects",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2025-03-17 13:10:34",
      "modified": "2025-03-17 13:10:34",
      "commits": 1
    },
    {
      "source": "category_effects.html.asis",
      "filename": "category_effects.html",
      "title": "Category Effects in Das Gupta's decomposition",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2025-03-17 13:10:34",
      "modified": "2025-03-17 13:10:34",
      "commits": 1
    }
  ],
  "_score": 5.309630167425899,
  "_indexed": true,
  "_nocasepkg": "dasguptr",
  "_universes": [
    "josiahpjking"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-31T08:06:38.000Z",
      "distro": "noble",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "1b16599ba4d0284045fa976b6278137bbc8e7a49f5962d1bae18606fce3ce70d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-31T08:06:41.000Z",
      "distro": "noble",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "7022140d735eab2109bb6ea4cf858872bc57e65882c89b6232bbba3800a409ec",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-31T08:20:17.000Z",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "7e97c88732f4f6eba24b00dee4e033d70510498d663a50be335988cd11b3e54c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-31T08:20:48.000Z",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "59440a22ea43d2facbd43cbd1d1052e7f47ae558837f38611a2c8272a87132bc",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-05-31T08:06:45.000Z",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "7b838d97c7432e8f6d0caa3472024f47b6ac72224d6965b5af966e79bb907b2d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-31T08:05:47.000Z",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "63f95a37e982a66dc5c92d4e92bf2671e7ef21e093def6e3d2d6b2879a451d0c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-31T08:06:01.000Z",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "fe9f66240517ecf4ecea907188eed5bda05c5c7f215f03f60883f920f3b2b623",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-31T08:05:57.000Z",
      "commit": "e6bbdd200a8f2cbdf4d1ed0c232381fa29f3fede",
      "fileid": "1f900b52f8f7199c5ba81fe0c1f5d7b53c7658fa5cede9c475fd6545879ef191",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/josiahpjking/actions/runs/26707192974"
    }
  ]
}