{
  "_id": "6a3522933efcd9bda43e41d7",
  "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-06-19 11:01:46 UTC",
    "User": "root"
  },
  "Author": "Dominic Magirr [aut, cre],\nIsobel Barrott [aut],\nJose Jimenez [ctb]",
  "Maintainer": "Dominic Magirr <d.magirr@gmail.com>",
  "MD5sum": "67768772fd51af15ecf87fa6f1131680",
  "_user": "dominicmagirr",
  "_type": "src",
  "_file": "nphRCT_0.1.1.tar.gz",
  "_fileid": "343905e323bef45ca3c98013dd9f2b318b25e4f3177c73170e8db5b950aa864b",
  "_filesize": 836893,
  "_sha256": "343905e323bef45ca3c98013dd9f2b318b25e4f3177c73170e8db5b950aa864b",
  "_created": "2026-06-19T11:01:46.000Z",
  "_published": "2026-06-19T11:05:55.096Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82336568415,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7748146399"
    },
    {
      "job": 82336568396,
      "time": 125,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7748143289"
    },
    {
      "job": 82336568408,
      "time": 216,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7748158828"
    },
    {
      "job": 82336568378,
      "time": 121,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7748136514"
    },
    {
      "job": 82336028281,
      "time": 216,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7748105087"
    },
    {
      "job": 82336568434,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7748143535"
    },
    {
      "job": 82336568431,
      "time": 89,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7748132838"
    },
    {
      "job": 82336568457,
      "time": 94,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7748133981"
    },
    {
      "job": 82336568392,
      "time": 104,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7748136994"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265",
  "_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",
    "followers": 23
  },
  "_downloads": {
    "count": 431,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nphRCT"
  },
  "_devurl": "https://github.com/dominicmagirr/nphrct",
  "_searchresults": 28,
  "_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.5263392773898445,
  "_indexed": true,
  "_nocasepkg": "nphrct",
  "_universes": [
    "dominicmagirr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-19T11:04:02.000Z",
      "distro": "noble",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "889774aecb85b64609448bfc2d946ae76d0a2dae81ac3f3bba572315596a86f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-19T11:03:53.000Z",
      "distro": "noble",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "a251f35ce3ca45df2346a883140e4669cbb7c5e887b1f5a8fd99028b55a4a44d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-19T11:04:41.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "2c5c8959703f5c56da1b15b592fc122649f78a1926db7d24aa1c5fb0180c20b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-19T11:03:33.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "001ac5cb0a70e2f9cf6f5239bbd9cbc85653a327564d92e222d67ca0d2d38e32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-19T11:04:08.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "e9e99a977a71350978c7c7722e5ff8f7b55844967b912bfbddcf29db75b15395",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-19T11:03:10.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "976c8fc3b99f7045f465362956fe9268a71a7bf5d2c7bbace296b5e2d3d0bc81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-19T11:03:14.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "8c3c7489918ffc0fd6b1431621f47858c4bde4a3a38bac2617f7cc95c0be68bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-19T11:03:23.000Z",
      "commit": "97fe013e2bd860a0b725bdde5de567cd6c84db70",
      "fileid": "da34c6d996c78ef0e857da45316e2d75942316f6d2121a1190dbdbc0c0400322",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dominicmagirr/actions/runs/27821655265"
    }
  ]
}