{
  "_id": "6acee820d9de2f3f33fc805a",
  "Package": "rsmart",
  "Title": "Sequential Multiple Assignment Randomized Trials Design and\nAnalyses",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Cole\", \"Manschot\", email = \"cole.manschot@msd.com\", role = c(\"aut\", \"cre\")),\nperson(\"Tabitha\", \"Peter\", role = c(\"ctb\")),\nperson(\"Gabriela\", \"Piasecki\", role = c(\"ctb\")),\nperson(\"Laura\", \"Frederick\", role = c(\"ctb\"))\n)",
  "Description": "Implements the interim augmented inverse probability\nweighted estimator (IAIPWE) for estimating the value of\ntreatment regimes embedded in sequential multiple assignment\nrandomized trials (SMARTs). The IAIPWE subsumes both the\ninverse probability weighted estimator (IPWE) and the augmented\ninverse probability weighted estimator (AIPWE), enabling\ninference at interim and final analyses. The package provides\nfunctions for value estimation, sandwich variance computation,\ngroup sequential stopping boundaries, and sample size\ndetermination for multi-stage SMARTs with up to two treatment\noptions at each stage. See Manschot, Laber, and Davidian (2023)\n<doi:10.1111/biom.13854> for additional details.",
  "License": "GPL (>= 3)",
  "URL": "https://MSDLLCpapers.github.io/rsmart/,\nhttps://github.com/MSDLLCpapers/rsmart,\nhttps://msdllcpapers.github.io/rsmart/",
  "BugReports": "https://github.com/MSDLLCpapers/rsmart/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Repository": "https://msdllcpapers.r-universe.dev",
  "Date/Publication": "2026-10-14 00:16:09 UTC",
  "RemoteUrl": "https://github.com/msdllcpapers/rsmart",
  "RemoteRef": "HEAD",
  "RemoteSha": "e61a52e8472041948b68ca157e43901ec01abe22",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-14 02:22:15 UTC",
    "User": "root"
  },
  "Author": "Cole Manschot [aut, cre],\nTabitha Peter [ctb],\nGabriela Piasecki [ctb],\nLaura Frederick [ctb]",
  "Maintainer": "Cole Manschot <cole.manschot@msd.com>",
  "_user": "msdllcpapers",
  "_type": "src",
  "_file": "rsmart_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/1b7de5f354c0dbac931965caf72ea78a357ca16c7417c6ee9a25bd50acbed432",
  "_filesize": 680942,
  "_sha256": "1b7de5f354c0dbac931965caf72ea78a357ca16c7417c6ee9a25bd50acbed432",
  "_expires": "2027-01-22T02:25:30.000Z",
  "_created": "2026-10-14T02:22:15.000Z",
  "_published": "2026-10-14T02:25:36.208Z",
  "_buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115646701830,
      "time": 144,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11865756425"
    },
    {
      "job": 115646701848,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11865483847"
    },
    {
      "job": 115646701893,
      "time": 126,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11865274374"
    },
    {
      "job": 115646701804,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11866250014"
    },
    {
      "job": 115645851846,
      "time": 182,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11865338951"
    },
    {
      "job": 115646701835,
      "time": 87,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11865084692"
    },
    {
      "job": 115646701846,
      "time": 106,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11865841284"
    },
    {
      "job": 115646701841,
      "time": 106,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11866080986"
    },
    {
      "job": 115646701773,
      "time": 107,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11865716422"
    }
  ],
  "_upstream": "https://github.com/msdllcpapers/rsmart",
  "_commit": {
    "id": "e61a52e8472041948b68ca157e43901ec01abe22",
    "author": "Tabitha K. Peter <85952288+tabpeter@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #16 from MSDLLCpapers/14-implement-r-cmd-check-workflow\n\nAdding R-CMD-Check files",
    "time": 1791936969
  },
  "_maintainer": {
    "name": "Cole Manschot",
    "email": "cole.manschot@msd.com"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "doFuture",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "modelObj",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "msdllcpapers",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-31",
      "n": 1
    },
    {
      "week": "2026-35",
      "n": 3
    },
    {
      "week": "2026-36",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-09-21"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "tabpeter",
      "count": 2,
      "uuid": 85952288
    },
    {
      "user": "cmansch",
      "count": 2,
      "uuid": 50928670
    }
  ],
  "_userbio": {
    "uuid": 137432561,
    "type": "organization",
    "name": "MSD  Inventing for Life",
    "followers": 59,
    "description": "This GitHub's main purpose is to house open source code repositories published by MSD for public use ,research, and for publications outside the United States"
  },
  "_downloads": {
    "count": 345,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rsmart"
  },
  "_devurl": "https://github.com/msdllcpapers/rsmart",
  "_pkgdown": "https://MSDLLCpapers.github.io/rsmart/",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rsmart.html"
  ],
  "_homeurl": "https://github.com/msdllcpapers/rsmart",
  "_realowner": "msdllcpapers",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-09-24"
    }
  ],
  "_exports": [
    "block_rand",
    "estimate_values",
    "gen_no_trt_resp",
    "get_an",
    "get_bn",
    "get_bounds",
    "get_bounds_chi",
    "get_first_bound",
    "get_kappa",
    "get_next_bound",
    "get_nu",
    "get_q_coefs",
    "get_q_fits",
    "get_sample_size",
    "get_sample_size_chi",
    "iaipwe",
    "pi_fits",
    "pstep",
    "qstep",
    "regime_list_no_trt_resp",
    "sim_treatment",
    "smart_design",
    "value_terms"
  ],
  "_datasets": [
    {
      "name": "pcsttrial",
      "title": "pcsttrial: Simulated Clinical Trial Data for Pain Coping Skills Training",
      "object": "pcsttrial",
      "class": [
        "data.frame"
      ],
      "fields": [
        "pctchange",
        "height",
        "weight",
        "comorbidity",
        "painmed",
        "chemo",
        "pctchangek2",
        "adherence",
        "a1",
        "a2",
        "r2",
        "study_day_enroll",
        "study_day_rerand",
        "study_day_outcome"
      ],
      "rows": 284,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "block_rand",
      "title": "Create a blocked randomization function",
      "topics": [
        "block_rand"
      ]
    },
    {
      "page": "estimate_values",
      "title": "Estimate values for all treatment regimes",
      "topics": [
        "estimate_values"
      ]
    },
    {
      "page": "gen_no_trt_resp",
      "title": "Generate sample data for a two-stage SMART where responders are not re-randomized",
      "topics": [
        "gen_no_trt_resp"
      ]
    },
    {
      "page": "get_an",
      "title": "Compute the An matrix for the sandwich variance estimator",
      "topics": [
        "get_an"
      ]
    },
    {
      "page": "get_bn",
      "title": "Compute the Bn matrix for the sandwich variance estimator",
      "topics": [
        "get_bn"
      ]
    },
    {
      "page": "get_bounds",
      "title": "Compute all stopping boundaries for a two-analysis group sequential design",
      "topics": [
        "get_bounds"
      ]
    },
    {
      "page": "get_bounds_chi",
      "title": "Compute the first chi-squared stopping boundary for a group sequential design",
      "topics": [
        "get_bounds_chi"
      ]
    },
    {
      "page": "get_first_bound",
      "title": "Compute the first stopping boundary for a group sequential design",
      "topics": [
        "get_first_bound"
      ]
    },
    {
      "page": "get_kappa",
      "title": "Compute the kappa (stage reached) for each individual",
      "topics": [
        "get_kappa"
      ]
    },
    {
      "page": "get_next_bound",
      "title": "Compute subsequent stopping boundaries for a group sequential design",
      "topics": [
        "get_next_bound"
      ]
    },
    {
      "page": "get_nu",
      "title": "Estimate stage arrival probabilities (nu)",
      "topics": [
        "get_nu"
      ]
    },
    {
      "page": "get_q_coefs",
      "title": "Extract coefficients from all fitted Q-function models",
      "topics": [
        "get_q_coefs"
      ]
    },
    {
      "page": "get_q_fits",
      "title": "Fit outcome regression (Q-function) models across all stages for a single regime",
      "topics": [
        "get_q_fits"
      ]
    },
    {
      "page": "get_sample_size",
      "title": "Determine sample size for a group sequential SMART design",
      "topics": [
        "get_sample_size"
      ]
    },
    {
      "page": "get_sample_size_chi",
      "title": "Determine sample size for a chi-squared global test in a group sequential SMART design",
      "topics": [
        "get_sample_size_chi"
      ]
    },
    {
      "page": "iaipwe",
      "title": "IAIPWE for K-stage SMARTs with up to 2 treatment options at each stage",
      "topics": [
        "iaipwe"
      ]
    },
    {
      "page": "pcsttrial",
      "title": "pcsttrial: Simulated Clinical Trial Data for Pain Coping Skills Training",
      "topics": [
        "pcsttrial"
      ]
    },
    {
      "page": "pi_fits",
      "title": "Fit propensity score models for all stages",
      "topics": [
        "pi_fits"
      ]
    },
    {
      "page": "pstep",
      "title": "Fit a propensity score model for a single stage",
      "topics": [
        "pstep"
      ]
    },
    {
      "page": "qstep",
      "title": "Fit an outcome regression (Q-function) model for a single stage",
      "topics": [
        "qstep"
      ]
    },
    {
      "page": "regime_list_no_trt_resp",
      "title": "Generate regime lists for a two-stage SMART where responders are not re-randomized",
      "topics": [
        "regime_list_no_trt_resp"
      ]
    },
    {
      "page": "sim_treatment",
      "title": "Simulate treatment assignments for a single stage",
      "topics": [
        "sim_treatment"
      ]
    },
    {
      "page": "smart_design",
      "title": "Compute stopping boundaries and sample size for a group sequential SMART",
      "topics": [
        "smart_design"
      ]
    },
    {
      "page": "value_terms",
      "title": "Compute the individual-level value terms for a single regime",
      "topics": [
        "value_terms"
      ]
    }
  ],
  "_readme": "https://github.com/msdllcpapers/rsmart/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "data.table",
    "digest",
    "doFuture",
    "foreach",
    "future",
    "future.apply",
    "globals",
    "iterators",
    "lattice",
    "listenv",
    "MASS",
    "Matrix",
    "modelObj",
    "mvtnorm",
    "parallelly"
  ],
  "_vignettes": [
    {
      "source": "iaipwe.Rmd",
      "filename": "iaipwe.html",
      "title": "Full demo of IAIPWE",
      "author": "Cole Manschot",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "An example SMART",
        "The sample data",
        "Computing the IPWE",
        "Computing the AIPWE",
        "Computing the IAIPWE",
        "References"
      ],
      "created": "2026-07-31 19:55:24",
      "modified": "2026-07-31 19:55:24",
      "commits": 1
    },
    {
      "source": "start-here.Rmd",
      "filename": "start-here.html",
      "title": "Getting Started with SMARTs",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What are SMARTs?",
        "Why use a SMART?",
        "When are SMARTs appropriate?",
        "Where our package comes in"
      ],
      "created": "2026-07-31 19:55:24",
      "modified": "2026-07-31 19:55:24",
      "commits": 1
    },
    {
      "source": "pkg_architecture.Rmd",
      "filename": "pkg_architecture.html",
      "title": "pkg_architecture",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. User-Facing Entry Points",
        "2. Nuisance Parameter Estimation (called by iaipwe)",
        "3. Value Estimation (called by iaipwe)",
        "4. Sandwich Variance — $B_n$ (empirical variance of estimating equations)",
        "5. Sandwich Variance — $A_n$ (derivative of estimating equations)",
        "6. Trial Design Utilities (standalone)"
      ],
      "created": "2026-07-31 19:55:24",
      "modified": "2026-07-31 19:55:24",
      "commits": 1
    },
    {
      "source": "sim-smart.Rmd",
      "filename": "sim-smart.html",
      "title": "Simulating SMART designs with sim_treatment",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Design 1: No response status",
        "Simulation",
        "Design 2: Only non-responders are re-randomized",
        "Design 3: Both responders and non-responders re-randomized",
        "Note on ordering and block randomization"
      ],
      "created": "2026-07-31 19:55:24",
      "modified": "2026-09-21 01:03:19",
      "commits": 2
    }
  ],
  "_score": 5,
  "_indexed": true,
  "_nocasepkg": "rsmart",
  "_universes": [
    "msdllcpapers"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-14T02:24:26.000Z",
      "distro": "resolute",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/8f807891995055ec7b080563dbae9495110dd3499ce13049fa055fd77c2768fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-14T02:24:21.000Z",
      "distro": "resolute",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/323046266eff4da566672d6ad8ec01c69277c0c39e6626c7c35f8d95b544f2cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-14T02:24:16.000Z",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/3ce18c4db4d12b6fcbde81b4b006cd2a305e4d439f7f0d1d3a5850d0365ac758",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-14T02:24:35.000Z",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/0f503e72ef5702543f6cb1b66abcb8d3180a6e8a20e3d434eef9070c7dc7970c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-14T02:24:06.000Z",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/30f3dd10e9a3d9a68a30fd0ddc92fd12e88846081b153535a903c91f5ee198c8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-14T02:23:31.000Z",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/3798f191287e89fb3694fae5e56b734a97127dba009e4350d07c2669df0a03f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-14T02:23:17.000Z",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/fca7e54fbcad21205e9949f2c15cd9dbe1ccdc62df0cdb15c7fa32af945e3512",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-14T02:23:24.000Z",
      "commit": "e61a52e8472041948b68ca157e43901ec01abe22",
      "fileid": "https://r2.ropensci.org/428a7cc646cbc59e2eba97ebc201fcc46ce702208d009faf0ed46eef212e4ddd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/msdllcpapers/actions/runs/38500411347"
    }
  ]
}