{
  "_id": "6ac36460d743750d376db547",
  "Package": "MRTSampleSizeBinary",
  "Type": "Package",
  "Title": "Sample Size Calculator for MRT with Binary Outcomes",
  "Version": "0.1.2",
  "Author": "Eliot Wong-Toi, Thabat Dahdoul, Tianchen Qian",
  "Maintainer": "Tianchen Qian <t.qian@uci.edu>",
  "Description": "Provides a sample size calculator for micro-randomized\ntrials (MRTs) with binary outcomes based on Cohn et al. (2023)\n<doi:10.1002/sim.9748>. Also provides a power calculator when\nthe sample size is input by the user.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "Repository": "https://tqian.r-universe.dev",
  "Date/Publication": "2023-12-05 03:31:12 UTC",
  "RemoteUrl": "https://github.com/tqian/mrtsamplesizebinary",
  "RemoteRef": "HEAD",
  "RemoteSha": "635e66ed02729c6ad5c948880532fc102e9a521d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-05 08:44:49 UTC",
    "User": "root"
  },
  "_user": "tqian",
  "_type": "src",
  "_file": "MRTSampleSizeBinary_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/39859120c81d7ebc38bc6e7ec2e09b9d7b3433beb4e5bed34cc5433abd31a6f7",
  "_filesize": 190793,
  "_sha256": "39859120c81d7ebc38bc6e7ec2e09b9d7b3433beb4e5bed34cc5433abd31a6f7",
  "_expires": "2027-01-13T08:48:30.000Z",
  "_created": "2026-10-05T08:44:49.000Z",
  "_published": "2026-11-04T08:53:43.079Z",
  "_jobs": [
    {
      "job": 111683607859,
      "time": 176,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11334248744"
    },
    {
      "job": 111683607871,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11334361512"
    },
    {
      "job": 111683607930,
      "time": 121,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11333214220"
    },
    {
      "job": 111683607879,
      "time": 99,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11334421150"
    },
    {
      "job": 111682638911,
      "time": 165,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11333288859"
    },
    {
      "job": 111683607965,
      "time": 95,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11334168995"
    },
    {
      "job": 111683607888,
      "time": 116,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11334421190"
    },
    {
      "job": 111683608072,
      "time": 91,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11333503727"
    },
    {
      "job": 111683607829,
      "time": 85,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11333869658"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413",
  "_status": "success",
  "_upstream": "https://github.com/tqian/mrtsamplesizebinary",
  "_commit": {
    "id": "635e66ed02729c6ad5c948880532fc102e9a521d",
    "author": "Tianchen Qian <qiantianchen.thu@gmail.com>",
    "committer": "Tianchen Qian <qiantianchen.thu@gmail.com>",
    "message": "Update Cran submission system file\n",
    "time": 1701747072
  },
  "_maintainer": {
    "name": "Tianchen Qian",
    "email": "t.qian@uci.edu",
    "login": "tqian",
    "description": "Assistant Professor in Statistics at UC Irvine",
    "uuid": 2294165
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "tqian",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "ewongtoi",
      "count": 146,
      "uuid": 22440890
    },
    {
      "user": "tqian",
      "count": 38,
      "uuid": 2294165
    },
    {
      "user": "mdogucu",
      "count": 1,
      "uuid": 23044486
    }
  ],
  "_userbio": {
    "uuid": 2294165,
    "type": "user",
    "name": "Tianchen Qian",
    "followers": 19,
    "description": "Assistant Professor in Statistics at UC Irvine"
  },
  "_downloads": {
    "count": 325,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/MRTSampleSizeBinary"
  },
  "_devurl": "https://github.com/tqian/mrtsamplesizebinary",
  "_searchresults": 39,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/MRTSampleSizeBinary.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/tqian/mrtsamplesizebinary",
  "_realowner": "tqian",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-03-04"
    },
    {
      "version": "0.1.1",
      "date": "2022-05-01"
    },
    {
      "version": "0.1.2",
      "date": "2023-12-03"
    }
  ],
  "_exports": [
    "compute_m_sigma",
    "compute_ncp",
    "is_full_column_rank",
    "max_samp",
    "min_samp",
    "mrt_binary_power",
    "mrt_binary_ss",
    "power_summary",
    "power_vs_n_plot"
  ],
  "_datasets": [
    {
      "name": "alpha_1",
      "title": "Vector that defines the success probability null curve.",
      "object": "alpha_1",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "beta_1",
      "title": "Vector that defines the MEE under the alternative hypothesis.",
      "object": "beta_1",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "f_t_1",
      "title": "A matrix defining the MEE under the alternative hypothesis.",
      "object": "f_t_1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "g_t_1",
      "title": "A matrix defining the success probability null curve.",
      "object": "g_t_1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "m_matrix_1",
      "title": "An example matrix for \"bread\" of sandwich estimator of variance.",
      "object": "m_matrix_1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "p_t_1",
      "title": "A vector of randomization probabilities for each time point.",
      "object": "p_t_1",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "sigma_matrix_1",
      "title": "An example matrix for \"meat\" of sandwich estimator of variance.",
      "object": "sigma_matrix_1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "tau_t_1",
      "title": "Vector that holds the average availability at each time point.",
      "object": "tau_t_1",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "alpha_1",
      "title": "Vector that defines the success probability null curve.",
      "topics": [
        "alpha_1"
      ]
    },
    {
      "page": "beta_1",
      "title": "Vector that defines the MEE under the alternative hypothesis.",
      "topics": [
        "beta_1"
      ]
    },
    {
      "page": "compute_m_sigma",
      "title": "Computes \"M\" and \"Sigma\" matrices for the sandwich estimator of variance-covariance matrix.",
      "topics": [
        "compute_m_sigma"
      ]
    },
    {
      "page": "compute_ncp",
      "title": "Computes the non-centrality parameter for an F distributed random variable in the context of a MRT with binary outcome.",
      "topics": [
        "compute_ncp"
      ]
    },
    {
      "page": "f_t_1",
      "title": "A matrix defining the MEE under the alternative hypothesis.",
      "topics": [
        "f_t_1"
      ]
    },
    {
      "page": "g_t_1",
      "title": "A matrix defining the success probability null curve.",
      "topics": [
        "g_t_1"
      ]
    },
    {
      "page": "is_full_column_rank",
      "title": "Check if a matrix is full column rank.",
      "topics": [
        "is_full_column_rank"
      ]
    },
    {
      "page": "m_matrix_1",
      "title": "An example matrix for \"bread\" of sandwich estimator of variance.",
      "topics": [
        "m_matrix_1"
      ]
    },
    {
      "page": "max_samp",
      "title": "Returns default maximum sample size to end power_vs_n_plot().",
      "topics": [
        "max_samp"
      ]
    },
    {
      "page": "min_samp",
      "title": "Compute minimum sample size.",
      "topics": [
        "min_samp"
      ]
    },
    {
      "page": "mrt_binary_power",
      "title": "Calculate power for binary outcome MRT",
      "topics": [
        "mrt_binary_power"
      ]
    },
    {
      "page": "mrt_binary_ss",
      "title": "Calculate sample size for binary outcome MRT",
      "topics": [
        "mrt_binary_ss"
      ]
    },
    {
      "page": "p_t_1",
      "title": "A vector of randomization probabilities for each time point.",
      "topics": [
        "p_t_1"
      ]
    },
    {
      "page": "power_summary",
      "title": "Calculate sample size at a range of power levels.",
      "topics": [
        "power_summary"
      ]
    },
    {
      "page": "power_vs_n_plot",
      "title": "Returns a plot of power vs sample size in the context of a binary outcome MRT. See the vignette for more details.",
      "topics": [
        "power_vs_n_plot"
      ]
    },
    {
      "page": "sigma_matrix_1",
      "title": "An example matrix for \"meat\" of sandwich estimator of variance.",
      "topics": [
        "sigma_matrix_1"
      ]
    },
    {
      "page": "tau_t_1",
      "title": "Vector that holds the average availability at each time point.",
      "topics": [
        "tau_t_1"
      ]
    }
  ],
  "_readme": "https://github.com/tqian/mrtsamplesizebinary/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "sample-size-calcualtor-for-mrt.Rmd",
      "filename": "sample-size-calcualtor-for-mrt.html",
      "title": "Sample Size Calculator for Micro-Randomized Trials with Binary Outcomes",
      "author": "Eliot Wong-Toi, Thabat Dahdoul, Tianchen Qian",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Background",
        "Quick Start",
        "A numerical example",
        "Example use of mrt_binary_ss()",
        "Example use of mrt_binary_power()",
        "Example use of power_vs_n_plot()",
        "Example use of power_summary()",
        "References"
      ],
      "created": "2020-11-28 04:51:08",
      "modified": "2023-12-02 04:21:50",
      "commits": 29
    }
  ],
  "_score": 4.5910646070264995,
  "_indexed": true,
  "_nocasepkg": "mrtsamplesizebinary",
  "_universes": [
    "tqian"
  ],
  "_progress_url": "https://github.com/r-universe/tqian/actions/runs/41802974185",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-05T08:47:28.000Z",
      "distro": "resolute",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/ea487c3ccca0afcd04362eb09aee1c2007cebdc315a597787cf057399be61666",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-05T08:46:44.000Z",
      "distro": "resolute",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/740ce0224252737f90251f3469ab0c69625acaf54e25da8b67dd2f8407843eaf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-05T08:46:46.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/63eb1ea4ec04593e95f6cd48af7148ef7a0cc08ccdad432214237cf49fc1d8a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-05T08:46:22.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/643620385015f63df22191cec5da890d1f478f97f4e22b4aff179a06ecbf7ac3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-10-05T08:46:45.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/ad86e910ba821d7de5cb697622afafa39d3593fa47c7712715c4a3bd3985bb3b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-05T08:46:07.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/74cb4cfd1a5beb3faab35964c23e3d3d1c8a55c124fc67182ea6a6963b938283",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-05T08:45:57.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/0aec0d4dbe4edc4089eecc6d34a50d1c73bb115c751b03fff7ea5d1262f29090",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-05T08:45:59.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "https://r2.ropensci.org/c7ee85be19d631e7b08edaf18822fec5e0592b7f5e219e9bafc445e3a97a996d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/37285262413"
    }
  ]
}