{
  "_id": "6a1ee3f9b401979e73410fea",
  "Package": "nphRCT",
  "Title": "Non-Proportional Hazards in Randomized Controlled Trials",
  "Version": "0.1.1",
  "Authors@R": "c(person(\"Dominic\", \"Magirr\", email = \"d.magirr@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Isobel\", \"Barrott\", email = \"isobel.barrott@gmail.com\", role = c(\"aut\")),\nperson(\"Jose\", \"Jimenez\",  role = c(\"ctb\")))",
  "Description": "Perform a stratified weighted log-rank test in a\nrandomized controlled trial. Tests can be visualized as a\ndifference in average score on the two treatment arms. These\nmethods are described in Magirr and Burman (2018)\n<doi:10.48550/arXiv.1807.11097>, Magirr (2020)\n<doi:10.48550/arXiv.2007.04767>, and Magirr and Jimenez (2022)\n<doi:10.48550/arXiv.2201.10445>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Repository": "https://dominicmagirr.r-universe.dev",
  "Date/Publication": "2024-06-27 12:05:13 UTC",
  "RemoteUrl": "https://github.com/dominicmagirr/nphrct",
  "RemoteRef": "HEAD",
  "RemoteSha": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-20 06:20:06 UTC",
    "User": "root"
  },
  "Author": "Dominic Magirr [aut, cre],\nIsobel Barrott [aut],\nJose Jimenez [ctb]",
  "Maintainer": "Dominic Magirr <d.magirr@gmail.com>",
  "MD5sum": "ba5f33334058c553c700d67514c98a86",
  "_user": "dominicmagirr",
  "_type": "src",
  "_file": "nphRCT_0.1.1.tar.gz",
  "_fileid": "a58535fa209f52407dc076995f75bfdec0c9943c9c6e6168463a0102f26adcf6",
  "_filesize": 835653,
  "_sha256": "a58535fa209f52407dc076995f75bfdec0c9943c9c6e6168463a0102f26adcf6",
  "_created": "2026-05-20T06:20:06.000Z",
  "_published": "2026-06-02T14:08:57.011Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79090360389,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7102694251"
    },
    {
      "job": 79090360892,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7102707097"
    },
    {
      "job": 79090361117,
      "time": 191,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7102702500"
    },
    {
      "job": 79090361032,
      "time": 248,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7102709503"
    },
    {
      "job": 79090359907,
      "time": 204,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7102661988"
    },
    {
      "job": 79090360106,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7360088315"
    },
    {
      "job": 79090360634,
      "time": 99,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7102687610"
    },
    {
      "job": 79090361156,
      "time": 94,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7102686159"
    },
    {
      "job": 79090361043,
      "time": 89,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7102685448"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/dominicmagirr/nphrct",
  "_commit": {
    "id": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
    "author": "Magirr <magirdo1@glchbs-sp220448.eu.novartis.net>",
    "committer": "Magirr <magirdo1@glchbs-sp220448.eu.novartis.net>",
    "message": "change doi again\n",
    "time": 1719489913
  },
  "_maintainer": {
    "name": "Dominic Magirr",
    "email": "d.magirr@gmail.com",
    "login": "dominicmagirr",
    "description": "",
    "uuid": 32567328
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "survminer",
      "role": "Suggests"
    }
  ],
  "_owner": "dominicmagirr",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_userbio": {
    "uuid": 32567328,
    "type": "user",
    "name": "dominicmagirr"
  },
  "_downloads": {
    "count": 349,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nphRCT"
  },
  "_devurl": "https://github.com/dominicmagirr/nphrct",
  "_searchresults": 25,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/nphRCT.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dominicmagirr/nphrct",
  "_realowner": "dominicmagirr",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-09-01"
    },
    {
      "version": "0.1.1",
      "date": "2024-06-27"
    }
  ],
  "_exports": [
    "find_at_risk",
    "find_scores",
    "find_weights",
    "sim_events_delay",
    "wlrt"
  ],
  "_datasets": [
    {
      "name": "moderate_cross",
      "title": "Time-to-event RCT data set with moderate crossing of survival curves.",
      "object": "moderate_cross",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "event",
        "arm"
      ],
      "rows": 328,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "find_at_risk",
      "title": "Calculate at-risk table",
      "topics": [
        "find_at_risk"
      ]
    },
    {
      "page": "find_scores",
      "title": "Calculate scores",
      "topics": [
        "find_scores"
      ]
    },
    {
      "page": "find_weights",
      "title": "Calculate weights",
      "topics": [
        "find_weights"
      ]
    },
    {
      "page": "moderate_cross",
      "title": "Time-to-event RCT data set with moderate crossing of survival curves.",
      "topics": [
        "moderate_cross"
      ]
    },
    {
      "page": "sim_events_delay",
      "title": "Simulate survival data from a two-arm trial",
      "topics": [
        "sim_events_delay"
      ]
    },
    {
      "page": "wlrt",
      "title": "Weighted log-rank test",
      "topics": [
        "wlrt"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "explanation.Rmd",
      "filename": "explanation.html",
      "title": "Survival tests as differences-of-means",
      "author": "Dominic Magirr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A simple randomized controlled trial",
        "Time-to-event outcome",
        "...Unless",
        "What do the scores look like?",
        "Why is this interesting?",
        "Weighted log-rank tests",
        "Early versus late contrasts",
        "Appendix",
        "Where do these numbers come from?",
        "(Weighted) log-rank test",
        "RMST / Milestone"
      ],
      "created": "2022-07-22 08:17:21",
      "modified": "2022-09-27 07:31:25",
      "commits": 6
    },
    {
      "source": "weighted_log_rank_tests.Rmd",
      "filename": "weighted_log_rank_tests.html",
      "title": "The weighted log-rank test",
      "author": "Isobel Barrott",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulate a dataset",
        "Weighted log-rank tests",
        "Weights",
        "Test statistic",
        "Permutation test and scores",
        "Stratification",
        "References"
      ],
      "created": "2022-06-20 18:03:20",
      "modified": "2022-09-27 07:31:25",
      "commits": 10
    }
  ],
  "_score": 4.477121254719663,
  "_indexed": true,
  "_nocasepkg": "nphrct",
  "_universes": [
    "dominicmagirr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-20T06:22:09.000Z",
      "distro": "noble",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "93c00492f355b65ab5c19436f4184daf29ef55f75c8a101295ab85ab99986871",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-20T06:22:59.000Z",
      "distro": "noble",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "ad66dd41db00b8d34e893949a8b951fcd20a66bdbecdd24eee418508f63c7ddb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-20T06:22:44.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "3ac65a7f7333a5ef29425f7d39732c0b2c743f296af52edb7c79e505e24ece97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-20T06:23:16.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "c1f551b9446790cd672b8ee06e115eacf1a04dc31468ef89a1bfe28bc40433f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-20T06:21:36.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "fe01ead53c758b77e01b65715dbfb80f0ce0cf3b96d6079461c114343bf17aaa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-20T06:21:26.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "be1b3a82c9dd408f1d3c375cc39e34ae0a0ea99717b80f564403d2ae2d5147ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-20T06:21:26.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "20dbf5fc213d34200a59d506382f6630787cebefdb2e7d84875c6f5f7322ab47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-02T14:08:40.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "1a2e90a68dc060ca8fe4ce094c7346c28257bb2246ec8f428d5d174b78353a3b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/26145056853"
    }
  ]
}