{
  "_id": "6ad46539104c877e3b413e6e",
  "Package": "deltapif",
  "Title": "Estimate Potential Impact and Population Attributable Fractions\nwith Aggregated Data",
  "Version": "0.5.0",
  "Authors@R": "c(\nperson(\"Rodrigo\", \"Zepeda-Tello\", , \"rzepeda17@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Tomasz\", \"Kalinowski\", role = \"ctb\")\n)",
  "Description": "Uses the delta-method to estimate the Potential Impact\nFraction (PIF) and the Population Attributable Fraction (PAF)\nfrom summary data. It creates point-estimates, confidence\nintervals, and estimates of the variance. Provides an extension\nto the aggregated data method in Chan, Zepeda-Tello et al\n(2025) <doi:10.1002/sim.70214>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "URL": "https://rodrigozepeda.github.io/deltapif/",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "false",
  "Repository": "https://rodrigozepeda.r-universe.dev",
  "Date/Publication": "2026-10-18 04:44:20 UTC",
  "RemoteUrl": "https://github.com/rodrigozepeda/deltapif",
  "RemoteRef": "HEAD",
  "RemoteSha": "2c82541736d2985eae6ea0364fc01e72e28fac89",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-18 06:16:06 UTC",
    "User": "root"
  },
  "Author": "Rodrigo Zepeda-Tello [aut, cre],\nTomasz Kalinowski [ctb]",
  "Maintainer": "Rodrigo Zepeda-Tello <rzepeda17@gmail.com>",
  "_user": "rodrigozepeda",
  "_type": "src",
  "_file": "deltapif_0.5.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/f7bc772baadd4ad3fc5dd949a6daf7d900a0d26536a1ba8144e0f1c8aee71843",
  "_filesize": 443951,
  "_sha256": "f7bc772baadd4ad3fc5dd949a6daf7d900a0d26536a1ba8144e0f1c8aee71843",
  "_expires": "2027-01-26T06:20:39.000Z",
  "_created": "2026-10-18T06:16:06.000Z",
  "_published": "2026-10-18T06:20:40.886Z",
  "_buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117604276826,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12127422011"
    },
    {
      "job": 117604276902,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12127034331"
    },
    {
      "job": 117604276819,
      "time": 119,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12126899911"
    },
    {
      "job": 117604276897,
      "time": 116,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12126969648"
    },
    {
      "job": 117603567491,
      "time": 238,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12127297115"
    },
    {
      "job": 117604276849,
      "time": 94,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12127850018"
    },
    {
      "job": 117604276867,
      "time": 111,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12127740990"
    },
    {
      "job": 117604276874,
      "time": 105,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12126869792"
    },
    {
      "job": 117604276852,
      "time": 106,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12127426942"
    }
  ],
  "_upstream": "https://github.com/rodrigozepeda/deltapif",
  "_commit": {
    "id": "2c82541736d2985eae6ea0364fc01e72e28fac89",
    "author": "Rodrigo Zepeda-Tello <RodrigoZepeda@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #3 from RodrigoZepeda/fix-link-deriv-and-paper-draft\n\nFix link deriv ",
    "time": 1792298660
  },
  "_maintainer": {
    "name": "Rodrigo Zepeda-Tello",
    "email": "rzepeda17@gmail.com",
    "login": "rodrigozepeda",
    "twitter": "@RodZepeda",
    "description": "",
    "uuid": 13838319
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "Deriv",
      "role": "Imports"
    },
    {
      "package": "S7",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "EValue",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "rodrigozepeda",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 15
    },
    {
      "week": "2026-09",
      "n": 2
    },
    {
      "week": "2026-10",
      "n": 3
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-42",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.4.3",
      "date": "2026-02-20"
    },
    {
      "name": "v0.4.4",
      "date": "2026-02-20"
    },
    {
      "name": "v0.4.5",
      "date": "2026-03-04"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "rodrigozepeda",
      "count": 80,
      "uuid": 13838319
    },
    {
      "user": "t-kalinowski",
      "count": 5,
      "uuid": 8462255
    }
  ],
  "_userbio": {
    "uuid": 13838319,
    "type": "user",
    "name": "Rodrigo Zepeda-Tello",
    "followers": 63
  },
  "_downloads": {
    "count": 449,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/deltapif"
  },
  "_devurl": "https://github.com/rodrigozepeda/deltapif",
  "_pkgdown": "https://rodrigozepeda.github.io/deltapif/",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/deltapif.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/rodrigozepeda/deltapif",
  "_realowner": "rodrigozepeda",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.5",
      "date": "2026-03-08"
    }
  ],
  "_exports": [
    "as_covariance_structure",
    "as.data.frame",
    "as.list",
    "as.matrix",
    "attributable_cases",
    "averted_cases",
    "change_link",
    "children",
    "coef",
    "col_names",
    "confint",
    "correlation",
    "covariance",
    "covariance_structure",
    "covariance_structure_class",
    "covariance_structure2",
    "default_parameter_covariance_structure",
    "default_parameter_covariance_structure2",
    "default_pif_covariance_structure",
    "default_pif_covariance_structure2",
    "default_weight_covariance_structure",
    "default_weight_covariance_structure2",
    "default_weight_pif_covariance_structure",
    "default_weight_pif_covariance_structure2",
    "deriv_pif_p",
    "flatten_names",
    "fraction_type",
    "length",
    "names",
    "paf",
    "paf_ensemble",
    "paf_total",
    "pif",
    "pif_ensemble",
    "pif_total",
    "print",
    "row_names",
    "standard_deviation",
    "subset",
    "summary",
    "variance",
    "variance_components",
    "weighted_adjusted_paf",
    "weighted_adjusted_pif",
    "weights"
  ],
  "_datasets": [
    {
      "name": "alcohol",
      "title": "Alcohol consumption in Australia from Pandeya et al",
      "object": "alcohol",
      "class": [
        "data.frame"
      ],
      "fields": [
        "sex",
        "alcohol_g",
        "median_intake",
        "age_18_24",
        "age_25_34",
        "age_35_44",
        "age_45_54",
        "age_55_64",
        "age_65_74",
        "age_75_plus",
        "age_18_plus"
      ],
      "rows": 24,
      "table": true,
      "tojson": true
    },
    {
      "name": "cancer_rr",
      "title": "Relative risks for cancer from Pandeya et al",
      "object": "cancer_rr",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cancer_type",
        "dose",
        "RR",
        "lower_CI",
        "upper_CI"
      ],
      "rows": 24,
      "table": true,
      "tojson": true
    },
    {
      "name": "dementiacor",
      "title": "Correlation between dementia risk factors from Lee et al",
      "object": "dementiacor",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Less education",
        "Hearing loss",
        "TBI",
        "Hypertension",
        "Excessive alcohol",
        "Obesity",
        "Smoking",
        "Depression",
        "Social isolation",
        "Physical inactivity",
        "Diabetes",
        "Air pollution"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    },
    {
      "name": "dementiarisk",
      "title": "Exposure and Relative Risk data from Lee et Al",
      "object": "dementiarisk",
      "class": [
        "data.frame"
      ],
      "fields": [
        "risk_factor",
        "RR",
        "lower_CI",
        "upper_CI",
        "logrr",
        "sdlog",
        "total",
        "hispanic",
        "asian",
        "black",
        "white",
        "communality"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "alcohol",
      "title": "Alcohol consumption in Australia from Pandeya et al",
      "topics": [
        "alcohol"
      ]
    },
    {
      "page": "as_covstr",
      "title": "Transform into a covariance structure",
      "topics": [
        "as_covariance_structure",
        "as_covstr"
      ]
    },
    {
      "page": "as.data.frame",
      "title": "Transform an object into a data.frame",
      "topics": [
        "as.data.frame"
      ]
    },
    {
      "page": "as.list",
      "title": "Convert to list",
      "topics": [
        "as.list"
      ]
    },
    {
      "page": "as.matrix",
      "title": "Convert a 'covariance_structure' to 'matrix'",
      "topics": [
        "as.matrix"
      ]
    },
    {
      "page": "cancer_rr",
      "title": "Relative risks for cancer from Pandeya et al",
      "topics": [
        "cancer_rr"
      ]
    },
    {
      "page": "casecalc",
      "title": "Attributable cases",
      "topics": [
        "attributable_cases",
        "averted_cases",
        "casecalc"
      ]
    },
    {
      "page": "change_link",
      "title": "Change the link",
      "topics": [
        "change_link"
      ]
    },
    {
      "page": "children",
      "title": "Get the children labels from a 'pif_class'",
      "topics": [
        "children"
      ]
    },
    {
      "page": "coef",
      "title": "Extract coefficients of a pif object",
      "topics": [
        "coef"
      ]
    },
    {
      "page": "confint",
      "title": "Extract confidence intervals",
      "topics": [
        "confint"
      ]
    },
    {
      "page": "covariance_structure_class",
      "title": "Covariance structure class",
      "topics": [
        "covariance_structure_class"
      ]
    },
    {
      "page": "covariance_structures",
      "title": "Default covariance structures",
      "topics": [
        "covariance_structure",
        "covariance_structure2",
        "covariance_structures",
        "default_parameter_covariance_structure",
        "default_parameter_covariance_structure2",
        "default_pif_covariance_structure",
        "default_pif_covariance_structure2",
        "default_weight_covariance_structure",
        "default_weight_covariance_structure2",
        "default_weight_pif_covariance_structure",
        "default_weight_pif_covariance_structure2"
      ]
    },
    {
      "page": "covcor",
      "title": "Covariance matrix, correlation matrix, variance and standard deviation for potential impact fractions",
      "topics": [
        "correlation",
        "covariance",
        "covcor",
        "standard_deviation",
        "variance"
      ]
    },
    {
      "page": "dementiacor",
      "title": "Correlation between dementia risk factors from Lee et al",
      "topics": [
        "dementiacor"
      ]
    },
    {
      "page": "dementiarisk",
      "title": "Exposure and Relative Risk data from Lee et Al",
      "topics": [
        "dementiarisk"
      ]
    },
    {
      "page": "derivatives",
      "title": "Partial derivatives of PIF",
      "topics": [
        "derivatives",
        "deriv_pif_beta",
        "deriv_pif_p"
      ]
    },
    {
      "page": "flatten_names",
      "title": "Names of a PIF's components",
      "topics": [
        "flatten_names"
      ]
    },
    {
      "page": "fraction_type",
      "title": "Get the type of the fraction",
      "topics": [
        "fraction_type"
      ]
    },
    {
      "page": "length",
      "title": "Length of an object",
      "topics": [
        "length"
      ]
    },
    {
      "page": "names",
      "title": "Get the label of a PIF or PAF",
      "topics": [
        "names"
      ]
    },
    {
      "page": "pifpaf",
      "title": "Potential Impact fraction and Population Attributable Fraction",
      "topics": [
        "paf",
        "pif",
        "pifpaf"
      ]
    },
    {
      "page": "print",
      "title": "Print or show a potential impact fraction",
      "topics": [
        "print"
      ]
    },
    {
      "page": "rowcol",
      "title": "Row and Column names",
      "topics": [
        "col_names",
        "rowcol",
        "row_names"
      ]
    },
    {
      "page": "subset",
      "title": "Subset a 'covariance_structure'",
      "topics": [
        "subset"
      ]
    },
    {
      "page": "summary",
      "title": "Summary of an object",
      "topics": [
        "summary"
      ]
    },
    {
      "page": "totalpifpaf",
      "title": "Combine Potential Impact Fractions and Population Attributable Fractions",
      "topics": [
        "paf_ensemble",
        "paf_total",
        "pif_ensemble",
        "pif_total",
        "totalpifpaf"
      ]
    },
    {
      "page": "variance_components",
      "title": "Components of the variance of a potential impact fraction",
      "topics": [
        "variance_components"
      ]
    },
    {
      "page": "weighted_adjusted",
      "title": "Weighted Adjusted Fractions",
      "topics": [
        "weighted_adjusted",
        "weighted_adjusted_paf",
        "weighted_adjusted_pif"
      ]
    },
    {
      "page": "weights",
      "title": "Extract weights of a pif_global_ensemble",
      "topics": [
        "weights"
      ]
    }
  ],
  "_pkglogo": "https://github.com/rodrigozepeda/deltapif/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/rodrigozepeda/deltapif/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "Deriv",
    "farver",
    "glue",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "viridisLite"
  ],
  "_vignettes": [
    {
      "source": "Examples.Rmd",
      "filename": "Examples.html",
      "title": "Examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Examples",
        "Example 1: Estimating the PAF for the proportion of dementia attributable to smoking",
        "Example 2: Combining subpopulations into a total",
        "Example 3: Estimating the PIF for the proportion of dementia reduced by a 15% reduction in smoking.",
        "Example 4: A categorical population attributable fraction",
        "Example 5: Combining fractions of different risks into an ensemble",
        "Example 6: Adjusted fractions",
        "Example 7: Ensuring non-negative fractions",
        "Example 8: Computing averted and attributable cases",
        "Example 9: Computing averted cases (strictly positive)",
        "Example 10: Using Hazard Ratios (HR) and Odds Ratios (OR) instead of Relative Risks (RR)",
        "References"
      ],
      "created": "2026-02-19 18:50:08",
      "modified": "2026-10-18 04:44:20",
      "commits": 5
    },
    {
      "source": "Introduction.Rmd",
      "filename": "Introduction.html",
      "title": "Introduction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Core Concepts: PAF and PIF",
        "Key assumption: Independent (summary) data sources.",
        "Usage",
        "Population Attributable Fraction (PAF)",
        "Incorporating Uncertainty",
        "Potential Impact Fraction (PIF)",
        "Fixed targets and relative reductions",
        "Attributable and averted cases",
        "Combining fractions from subpopulations",
        "Fractions that share an estimate",
        "Combining fractions from multiple risks",
        "Adjusting fractions for commonality",
        "Additional information",
        "References"
      ],
      "created": "2025-08-10 05:58:48",
      "modified": "2026-10-18 04:44:20",
      "commits": 18
    }
  ],
  "_score": 5,
  "_indexed": true,
  "_nocasepkg": "deltapif",
  "_universes": [
    "rodrigozepeda"
  ],
  "_previous": "0.4.6",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.0",
      "date": "2026-10-18T06:18:04.000Z",
      "distro": "resolute",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/76a7b16ed065a9b2b27d1c919fcea4c998ac795f1387db4e302ea51ff154a550",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.0",
      "date": "2026-10-18T06:18:06.000Z",
      "distro": "resolute",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/acc9b54b323adf3a2d8018daeffecc7e3055f05b835d4a9cd5037fd86e9556a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.0",
      "date": "2026-10-18T06:19:15.000Z",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/c9edc79bede0a353ad7c0431587fbf2475ea1d5a381e92ab8d9d13a4c63688bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.0",
      "date": "2026-10-18T06:19:46.000Z",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/230f46c6fa1335b7169d3b81612a506b3b45b1113a938e667cccc44b23f33e2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.0",
      "date": "2026-10-18T06:18:01.000Z",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/592518d64bdb8a2799c92a998c46b2ca54852016c50e2b7fa91434f32559cd5d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.0",
      "date": "2026-10-18T06:17:21.000Z",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/bd4b079af87cd1499c8c54e77b8a28b058ca6ce9e3f18c56b452c0d019dfb684",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.0",
      "date": "2026-10-18T06:17:25.000Z",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/2d3bdcd49702233435580c89895c266e160c01392fa808375306004b98e8bf93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.0",
      "date": "2026-10-18T06:17:27.000Z",
      "commit": "2c82541736d2985eae6ea0364fc01e72e28fac89",
      "fileid": "https://r2.ropensci.org/26f376f7bbdafd3ad7245420a18e6f31cec1d208753e2e31253f16f044364b4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rodrigozepeda/actions/runs/39103197484"
    }
  ]
}