{
  "_id": "6ad228093c1b78c68c07b2f7",
  "Package": "dani",
  "Type": "Package",
  "Title": "Design and Analysis of Non-Inferiority Trials",
  "Version": "1.0-0",
  "Date": "2024-10-04",
  "Author": "Matteo Quartagno",
  "Maintainer": "Matteo Quartagno <m.quartagno@ucl.ac.uk>",
  "Description": "Provides tools to help with the design and analysis of\nnon-inferiority trials. These include functions for doing\nsample size calculations and for analysing non-inferiority\ntrials, using a variety of outcome types and population-level\nsumamry measures. It also features functions to make trials\nmore resilient by using the concept of non-inferiority\nfrontiers, as described in Quartagno et al. (2019)\n<arXiv:1905.00241>. Finally it includes function to design and\nanalyse MAMS-ROCI (aka DURATIONS) trials.",
  "License": "GPL-2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libssl-dev\nlibx11-dev zlib1g-dev",
  "Repository": "https://matteo21q.r-universe.dev",
  "Date/Publication": "2026-10-16 09:46:58 UTC",
  "RemoteUrl": "https://github.com/matteo21q/dani",
  "RemoteRef": "HEAD",
  "RemoteSha": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-16 13:30:16 UTC",
    "User": "root"
  },
  "_user": "matteo21q",
  "_type": "src",
  "_file": "dani_1.0-0.tar.gz",
  "_fileid": "https://r2.ropensci.org/72fe3d972dab76ff884790605f08f59439cfe42fb68f1a4454a135e033757f5b",
  "_filesize": 481753,
  "_sha256": "72fe3d972dab76ff884790605f08f59439cfe42fb68f1a4454a135e033757f5b",
  "_expires": "2027-01-24T13:35:02.000Z",
  "_created": "2026-10-16T13:30:16.000Z",
  "_published": "2026-10-16T13:35:04.981Z",
  "_buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116997747344,
      "time": 215,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12048529823"
    },
    {
      "job": 116997747438,
      "time": 214,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12049371307"
    },
    {
      "job": 116997747622,
      "time": 232,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "12050350134"
    },
    {
      "job": 116997747502,
      "time": 194,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12050050028"
    },
    {
      "job": 116995786670,
      "time": 266,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12048374205"
    },
    {
      "job": 116997747347,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12048992950"
    },
    {
      "job": 116997747307,
      "time": 159,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12049655459"
    },
    {
      "job": 116997747672,
      "time": 148,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "12049730382"
    },
    {
      "job": 116997747384,
      "time": 153,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12048913160"
    }
  ],
  "_upstream": "https://github.com/matteo21q/dani",
  "_commit": {
    "id": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
    "author": "Matteo21Q <40173554+Matteo21Q@users.noreply.github.com>",
    "committer": "Matteo21Q <40173554+Matteo21Q@users.noreply.github.com>",
    "message": "descrtab2 dependency removed\n",
    "time": 1792144018
  },
  "_maintainer": {
    "name": "Matteo Quartagno",
    "email": "m.quartagno@ucl.ac.uk",
    "login": "matteo21q",
    "description": "",
    "uuid": 40173554
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "DescTools",
      "role": "Imports"
    },
    {
      "package": "ratesci",
      "role": "Imports"
    },
    {
      "package": "exact2x2",
      "role": "Imports"
    },
    {
      "package": "marginaleffects",
      "role": "Imports"
    },
    {
      "package": "mfp",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "BSDA",
      "role": "Imports"
    },
    {
      "package": "coxphw",
      "role": "Imports"
    },
    {
      "package": "survRM2",
      "role": "Imports"
    },
    {
      "package": "flexsurv",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "mratios",
      "role": "Imports"
    },
    {
      "package": "exact2x2",
      "role": "Imports"
    },
    {
      "package": "contingencytables",
      "role": "Imports"
    },
    {
      "package": "PropCIs",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "matteo21q",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 1
    },
    {
      "week": "2026-32",
      "n": 6
    },
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "matteo21q",
      "count": 46,
      "uuid": 40173554
    }
  ],
  "_userbio": {
    "uuid": 40173554,
    "type": "user",
    "name": "Matteo21Q",
    "followers": 6
  },
  "_downloads": {
    "count": 382,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dani"
  },
  "_devurl": "https://github.com/matteo21q/dani",
  "_searchresults": 29,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dani.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/matteo21q/dani",
  "_realowner": "matteo21q",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-0",
      "date": "2019-05-03"
    },
    {
      "version": "0.1-1",
      "date": "2020-01-20"
    }
  ],
  "_exports": [
    "compare.NIfrontier.binary",
    "compare.NIfrontier.continuous",
    "compare.NIfrontier.survival",
    "convertmargin.binary",
    "convertmargin.continuous",
    "convertmargin.survival",
    "plot.ROCI",
    "power.NI.binary",
    "power.NI.continuous",
    "power.NIfrontier.binary",
    "power.ROCI.binary",
    "samplesize.NI.binary",
    "samplesize.NI.continuous",
    "samplesize.NI.survival",
    "samplesize.NIfrontier.binary",
    "samplesize.ROCI.binary",
    "samplesize.ROCI.survival",
    "summary.ROCI",
    "test.NI.binary",
    "test.NI.continuous",
    "test.NI.survival",
    "test.NIfrontier.binary",
    "test.ROCI.binary",
    "test.ROCI.survival",
    "type1error.NIfrontier.binary"
  ],
  "_help": [
    {
      "page": "compare.NIfrontier.binary",
      "title": "Comparing Non-Inferiority Frontiers for trials with binary outcomes",
      "topics": [
        "compare.NIfrontier.binary"
      ]
    },
    {
      "page": "compare.NIfrontier.continuous",
      "title": "Comparing Non-Inferiority Frontiers for trials with continuous outcomes",
      "topics": [
        "compare.NIfrontier.continuous"
      ]
    },
    {
      "page": "compare.NIfrontier.survival",
      "title": "Comparing Non-Inferiority Frontiers for trials with survival outcomes",
      "topics": [
        "compare.NIfrontier.survival"
      ]
    },
    {
      "page": "convertmargin.binary",
      "title": "Function to convert non-inferiority margin for binary outcome between summary measures.",
      "topics": [
        "convertmargin.binary"
      ]
    },
    {
      "page": "convertmargin.continuous",
      "title": "Function to convert non-inferiority margin for continuous outcome between summary measures.",
      "topics": [
        "convertmargin.continuous"
      ]
    },
    {
      "page": "convertmargin.survival",
      "title": "Function to convert non-inferiority margin for survival outcome between summary measures.",
      "topics": [
        "convertmargin.survival"
      ]
    },
    {
      "page": "plot.ROCI",
      "title": "Plot treatment-response curve estimated with a ROCI trial",
      "topics": [
        "plot.ROCI"
      ]
    },
    {
      "page": "power.NI.binary",
      "title": "Function to compute the power for a given sample size for a standard 2-arm non-inferiority trial.",
      "topics": [
        "power.NI.binary"
      ]
    },
    {
      "page": "power.NI.continuous",
      "title": "Power calculation tool for Non-Inferiority trials with a continuous outcome.",
      "topics": [
        "power.NI.continuous"
      ]
    },
    {
      "page": "power.NIfrontier.binary",
      "title": "Function to compute the power for a given sample size for a 2-arm non-inferiority trial designed using non-inferiority frontiers.",
      "topics": [
        "power.NIfrontier.binary"
      ]
    },
    {
      "page": "power.ROCI.binary",
      "title": "Function to compute the power for a given sample size for a MAMS-ROCI (aka DURATIONS) randomised trial.",
      "topics": [
        "power.ROCI.binary"
      ]
    },
    {
      "page": "samplesize.NI.binary",
      "title": "Sample size calculation tool for Non-Inferiority trials with a binary outcome.",
      "topics": [
        "samplesize.NI.binary"
      ]
    },
    {
      "page": "samplesize.NI.continuous",
      "title": "Sample size calculation tool for Non-Inferiority trials with a continuous outcome.",
      "topics": [
        "samplesize.NI.continuous"
      ]
    },
    {
      "page": "samplesize.NI.survival",
      "title": "Sample size calculation tool for Non-Inferiority trials with a survival outcome.",
      "topics": [
        "samplesize.NI.survival"
      ]
    },
    {
      "page": "samplesize.NIfrontier.binary",
      "title": "Sample size calculator for trials with binary outcomes designed with Non-Inferiority Frontiers",
      "topics": [
        "samplesize.NIfrontier.binary"
      ]
    },
    {
      "page": "samplesize.ROCI.binary",
      "title": "Function to compute the necessary sample size for a MAMS-ROCI (aka DURATIONS) randomised trial.",
      "topics": [
        "samplesize.ROCI.binary"
      ]
    },
    {
      "page": "summary.ROCI",
      "title": "Summarise the results of the analysis of a MAMS-ROCI trial",
      "topics": [
        "summary.ROCI"
      ]
    },
    {
      "page": "test.NI.binary",
      "title": "Non-inferiority testing with binary outcome.",
      "topics": [
        "test.NI.binary"
      ]
    },
    {
      "page": "test.NI.continuous",
      "title": "Non-inferiority testing with continuous outcome.",
      "topics": [
        "test.NI.continuous"
      ]
    },
    {
      "page": "test.NI.survival",
      "title": "Non-inferiority testing with survival outcome.",
      "topics": [
        "test.NI.survival"
      ]
    },
    {
      "page": "test.NIfrontier.binary",
      "title": "Non-inferiority testing with binary outcome using a non-inferiority frontier.",
      "topics": [
        "test.NIfrontier.binary"
      ]
    },
    {
      "page": "test.ROCI.binary",
      "title": "Function to analyse a MAMS-ROCI (aka DURATIONS) randomised trial.",
      "topics": [
        "test.ROCI.binary"
      ]
    },
    {
      "page": "type1error.NIfrontier.binary",
      "title": "Function to compute type 1 error rate for a 2-arm non-inferiority trial designed using non-inferiority frontiers.",
      "topics": [
        "type1error.NIfrontier.binary"
      ]
    }
  ],
  "_readme": "https://github.com/matteo21q/dani/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "assertthat",
    "backports",
    "bbmle",
    "bdsmatrix",
    "bit",
    "bit64",
    "boot",
    "brio",
    "BSDA",
    "callr",
    "cellranger",
    "checkmate",
    "class",
    "cli",
    "clipr",
    "codetools",
    "contingencytables",
    "coxphw",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "desc",
    "DescTools",
    "deSolve",
    "diffobj",
    "dplyr",
    "e1071",
    "evaluate",
    "Exact",
    "exact2x2",
    "exactci",
    "expm",
    "farver",
    "fastGHQuad",
    "flexsurv",
    "forcats",
    "Formula",
    "fs",
    "generics",
    "ggplot2",
    "gld",
    "glue",
    "gtable",
    "haven",
    "hms",
    "httr",
    "insight",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "lmom",
    "lsoda",
    "magrittr",
    "marginaleffects",
    "MASS",
    "Matrix",
    "mfp",
    "mgcv",
    "mime",
    "mratios",
    "mstate",
    "muhaz",
    "multcomp",
    "mvtnorm",
    "nlme",
    "numDeriv",
    "openssl",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "pkgload",
    "pracma",
    "praise",
    "prettyunits",
    "processx",
    "progress",
    "PropCIs",
    "proxy",
    "ps",
    "purrr",
    "quadprog",
    "R6",
    "ratesci",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "readr",
    "readxl",
    "rematch",
    "rlang",
    "rootSolve",
    "rprojroot",
    "rstpm2",
    "rstudioapi",
    "S7",
    "sandwich",
    "scales",
    "ssanv",
    "statmod",
    "stringi",
    "stringr",
    "survival",
    "survPresmooth",
    "survRM2",
    "sys",
    "testthat",
    "TH.data",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "waldo",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "Introduction.Rmd",
      "filename": "Introduction.html",
      "title": "Introduction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Package structure",
        "Non-inferiority margin conversion",
        "Non-inferiority frontiers comparison",
        "Sample size calculations",
        "Analysis / testing for non-inferiority",
        "References",
        "Quartagno, M., Walker, A.S., Babiker, A.G. et al.Handling an uncertain control group event risk in non-inferiority trials: non-inferiority frontiers and the power-stabilising transformation. Trials 21, 145 (2020). https://doi.org/10.1186/s13063-020-4070-4"
      ],
      "created": "2023-12-13 13:08:36",
      "modified": "2026-08-07 12:29:28",
      "commits": 8
    }
  ],
  "_score": 4.939519252618618,
  "_indexed": true,
  "_nocasepkg": "dani",
  "_universes": [
    "matteo21q"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0-0",
      "date": "2026-10-16T13:33:12.000Z",
      "distro": "resolute",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/9224c40888cd8e0ea67f742a005ed4430d5d9feabcf31f0e6105b7e22647bbcf",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0-0",
      "date": "2026-10-16T13:33:13.000Z",
      "distro": "resolute",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/b40a31d9ceb2e2d94dd2085cf38d61844ced03e1203df517d880952ecf587e12",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0-0",
      "date": "2026-10-16T13:33:32.000Z",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/e11e8329d94680f27ef5351d641c0b651c4c5117a0b3dae880fbeb9155870b41",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0-0",
      "date": "2026-10-16T13:33:00.000Z",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/84306436ef14c9151dd36e54050c097dbc33c2ae206bf4118b4feed47e2c1e88",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0-0",
      "date": "2026-10-16T13:33:07.000Z",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/528b6d50bb161bf84190d4eafd034389b2dd53ac904bb68860193ba557f74eea",
      "status": "success",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0-0",
      "date": "2026-10-16T13:31:57.000Z",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/3cfa09675b59e6b8f967cc50af29ab01bccfbe04ff2397a934b65c5321820598",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0-0",
      "date": "2026-10-16T13:31:54.000Z",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/e65104432eeba1fee24ffae6980b76c32d1cee40423478cca2b73641060745c3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0-0",
      "date": "2026-10-16T13:32:11.000Z",
      "commit": "fa4f12a8338a8c0517db8f6064e9d446d9aa17e3",
      "fileid": "https://r2.ropensci.org/b30a6b547f693c9a1bd112ca01997893993379e0f1066535b75578852aefc756",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/matteo21q/actions/runs/38907790022"
    }
  ]
}