{
  "_id": "6a1d3dc41d7bb097a0a3ffdc",
  "Package": "AF",
  "Title": "Model-Based Estimation of Confounder-Adjusted Attributable\nFractions",
  "Version": "0.1.5",
  "Author": "Elisabeth Dahlqwist and Arvid Sjolander",
  "Maintainer": "Elisabeth Dahlqwist <elisabeth.dahlqwist88@gmail.com>",
  "Description": "Estimates the attributable fraction in different sampling\ndesigns adjusted for measured confounders using logistic\nregression (cross-sectional and case-control designs),\nconditional logistic regression (matched case-control design),\nCox proportional hazard regression (cohort design with time-to-\nevent outcome), gamma-frailty model with a Weibull baseline\nhazard and instrumental variables analysis. An exploration of\nthe AF with a genetic exposure can be found in the package\n'AFheritability' Dahlqwist E et al. (2019)\n<doi:10.1007/s00439-019-02006-8>.",
  "License": "GPL-2 | GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "6.1.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-01 08:04:35 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2019-05-20 17:00:10 UTC",
  "RemoteUrl": "https://github.com/cran/AF",
  "RemoteRef": "HEAD",
  "RemoteSha": "05fa5acf22de569fd2b8cf72a7224ff244f4f95f",
  "MD5sum": "efa0ddf6046d6a9d7a6709aa89f7fc3a",
  "_user": "cran",
  "_type": "src",
  "_file": "AF_0.1.5.tar.gz",
  "_fileid": "0a7b12359f56f460038cb764616f4d4a3b723a32bcfc334a3a1da127ed4f18c9",
  "_filesize": 369518,
  "_sha256": "0a7b12359f56f460038cb764616f4d4a3b723a32bcfc334a3a1da127ed4f18c9",
  "_created": "2026-06-01T08:04:35.000Z",
  "_published": "2026-06-01T08:07:32.744Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78810762360,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7326359619"
    },
    {
      "job": 78810762400,
      "time": 128,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326357663"
    },
    {
      "job": 78810225454,
      "time": 215,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326316232"
    },
    {
      "job": 78810762310,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326349679"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26742629194",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/AF",
  "_commit": {
    "id": "05fa5acf22de569fd2b8cf72a7224ff244f4f95f",
    "author": "Elisabeth Dahlqwist <elisabeth.dahlqwist88@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.5\n",
    "time": 1558371610
  },
  "_maintainer": {
    "name": "Elisabeth Dahlqwist",
    "email": "elisabeth.dahlqwist88@gmail.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "stats",
      "role": "Depends"
    },
    {
      "package": "base",
      "role": "Depends"
    },
    {
      "package": "graphics",
      "role": "Depends"
    },
    {
      "package": "survival",
      "role": "Depends"
    },
    {
      "package": "drgee",
      "role": "Depends"
    },
    {
      "package": "stdReg",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Depends"
    },
    {
      "package": "ivtools",
      "role": "Depends"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "elisabethdahlqwist",
      "count": 4,
      "uuid": 11029466
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 127,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/AF"
  },
  "_mentions": 106,
  "_searchresults": 26,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/AF.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1",
      "date": "2015-08-26"
    },
    {
      "version": "0.1.1",
      "date": "2015-12-14"
    },
    {
      "version": "0.1.2",
      "date": "2016-02-19"
    },
    {
      "version": "0.1.4",
      "date": "2017-02-10"
    },
    {
      "version": "0.1.5",
      "date": "2019-05-20"
    }
  ],
  "_exports": [
    "AF.cc",
    "AF.ch",
    "AF.cs",
    "AFclogit",
    "AFcoxph",
    "AFglm",
    "AFivglm",
    "AFparfrailty"
  ],
  "_datasets": [
    {
      "name": "clslowbwt",
      "title": "Birthweight data clustered on the mother.",
      "object": "clslowbwt",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "birth",
        "smoke",
        "race",
        "age",
        "lwt",
        "bwt",
        "low",
        "lbw",
        "smoker"
      ],
      "rows": 487,
      "table": true,
      "tojson": true
    },
    {
      "name": "rott2",
      "title": "Cohort study on breast cancer patients from the Netherlands.",
      "object": "rott2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "pid",
        "year",
        "rf",
        "rfi",
        "mf",
        "mfi",
        "os",
        "osi",
        "age",
        "meno",
        "size",
        "grade",
        "nodes",
        "pr",
        "er",
        "hormon",
        "chemo",
        "enodes",
        "pr_1",
        "enodes_1",
        "recent",
        "X_st",
        "X_d",
        "X_t",
        "X_t0",
        "no.chemo"
      ],
      "rows": 2982,
      "table": true,
      "tojson": true
    },
    {
      "name": "singapore",
      "title": "Case-control study on oesophageal cancer in Chinese Singapore men.",
      "object": "singapore",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Set",
        "CC",
        "Age",
        "Dial",
        "Samsu",
        "Cigs",
        "Bev",
        "Oesophagealcancer",
        "Everhotbev"
      ],
      "rows": 400,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AF.cc",
      "title": "Attributable fraction for mached and non-matched case-control sampling designs. NOTE! Deprecated function. Use 'AFglm' (for unmatched case-control studies) or 'AFclogit' (for matched case-control studies).",
      "topics": [
        "AF.cc"
      ]
    },
    {
      "page": "AF.ch",
      "title": "Attributable fraction function for cohort sampling designs with time-to-event outcomes. NOTE! Deprecated function. Use 'AFcoxph'.",
      "topics": [
        "AF.ch"
      ]
    },
    {
      "page": "AF.cs",
      "title": "Attributable fraction for cross-sectional sampling designs. NOTE! Deprecated function. Use 'AFglm'.",
      "topics": [
        "AF.cs"
      ]
    },
    {
      "page": "AFclogit",
      "title": "Attributable fraction estimation based on a conditional logistic regression model as a 'clogit' object (commonly used for matched case-control sampling designs).",
      "topics": [
        "AFclogit"
      ]
    },
    {
      "page": "AFcoxph",
      "title": "Attributable fraction function based on a Cox Proportional Hazard regression model as a 'coxph' object (commonly used for cohort sampling designs with time-to-event outcomes).",
      "topics": [
        "AFcoxph"
      ]
    },
    {
      "page": "AFglm",
      "title": "Attributable fraction estimation based on a logistic regression model from a 'glm' object (commonly used for cross-sectional or case-control sampling designs).",
      "topics": [
        "AFglm"
      ]
    },
    {
      "page": "AFivglm",
      "title": "Attributable fraction function based on Instrumental Variables (IV) regression as an 'ivglm' object in the 'ivtools' package.",
      "topics": [
        "AFivglm"
      ]
    },
    {
      "page": "AFparfrailty",
      "title": "Attributable fraction function based on a Weibull gamma-frailty model as a 'parfrailty' object (commonly used for cohort sampling family designs with time-to-event outcomes).",
      "topics": [
        "AFparfrailty"
      ]
    },
    {
      "page": "clslowbwt",
      "title": "Birthweight data clustered on the mother.",
      "topics": [
        "clslowbwt"
      ]
    },
    {
      "page": "plot.AF",
      "title": "Plot function for objects of class \"'AF'\" from the function 'AFcoxph' or 'AFparfrailty'.",
      "topics": [
        "plot.AF"
      ]
    },
    {
      "page": "rott2",
      "title": "Cohort study on breast cancer patients from the Netherlands.",
      "topics": [
        "rott2"
      ]
    },
    {
      "page": "singapore",
      "title": "Case-control study on oesophageal cancer in Chinese Singapore men.",
      "topics": [
        "singapore"
      ]
    },
    {
      "page": "summary.AF",
      "title": "Summary function for objects of class \"'AF'\".",
      "topics": [
        "summary.AF"
      ]
    }
  ],
  "_rundeps": [
    "ahaz",
    "data.table",
    "drgee",
    "ivtools",
    "lattice",
    "Matrix",
    "nleqslv",
    "numDeriv",
    "Rcpp",
    "RcppArmadillo",
    "stdReg",
    "survival"
  ],
  "_score": 2.414973347970818,
  "_indexed": true,
  "_nocasepkg": "af",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-06-01T08:06:49.000Z",
      "distro": "noble",
      "commit": "05fa5acf22de569fd2b8cf72a7224ff244f4f95f",
      "fileid": "1aba29552459987395031698dcec11145255f6245e857649972eb234515efe9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26742629194"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-06-01T08:06:40.000Z",
      "distro": "noble",
      "commit": "05fa5acf22de569fd2b8cf72a7224ff244f4f95f",
      "fileid": "80065287d8130231e775279bbcaaac22cd0a45a0e7efd499f97f189ced078d29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26742629194"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.5",
      "date": "2026-06-01T08:06:46.000Z",
      "commit": "05fa5acf22de569fd2b8cf72a7224ff244f4f95f",
      "fileid": "1e15ec61cd356350d15ad5ccb6c5b0945524feedaabbb2d3d65315f5231b450b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26742629194"
    }
  ]
}