{
  "_id": "6a25132c4b233be19838a6db",
  "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-06-07 06:39:56 UTC",
    "User": "root"
  },
  "MD5sum": "9c4aeb11726a95cbd6e46d18d4019b64",
  "_user": "tqian",
  "_type": "src",
  "_file": "MRTSampleSizeBinary_0.1.2.tar.gz",
  "_fileid": "47b44cdbafe345c4c7f9875787b26e66abe1250c48e2f5ec71f615306f29d891",
  "_filesize": 191695,
  "_sha256": "47b44cdbafe345c4c7f9875787b26e66abe1250c48e2f5ec71f615306f29d891",
  "_created": "2026-06-07T06:39:56.000Z",
  "_published": "2026-06-07T06:43:56.456Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79938118845,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7461556873"
    },
    {
      "job": 79938118834,
      "time": 140,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7461554828"
    },
    {
      "job": 79938118854,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7461552529"
    },
    {
      "job": 79938118850,
      "time": 205,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7461556738"
    },
    {
      "job": 79937981346,
      "time": 157,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7461538124"
    },
    {
      "job": 79938118838,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7461550942"
    },
    {
      "job": 79938118856,
      "time": 110,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7461551570"
    },
    {
      "job": 79938118846,
      "time": 134,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7461553940"
    },
    {
      "job": 79938118849,
      "time": 104,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7461550933"
    }
  ],
  "_buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "description": "Assistant Professor in Statistics at UC Irvine"
  },
  "_downloads": {
    "count": 186,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/MRTSampleSizeBinary"
  },
  "_devurl": "https://github.com/tqian/mrtsamplesizebinary",
  "_searchresults": 39,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/MRTSampleSizeBinary.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-07T06:42:14.000Z",
      "distro": "noble",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "ddc55175bad0b7d606998e1c973f9275cfd28d0979157d7d021fbb9ecbdac62c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-07T06:41:59.000Z",
      "distro": "noble",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "a4055c1064d1733f36df29a52fcbf9a5ec804109f377d03fc916e51f80b0041b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-07T06:41:52.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "5f94665b5878eff2afbffbc8b0251daacbf93a1f1ae4b238dae4ca019a7239f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-07T06:42:14.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "462d641f2b3d07a0140ac7efcf5d0b22d3b68d01b9485c1bb86bac2f9d1ed0d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-07T06:42:00.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "1048c86905ecb0819e1e185f227276718fa48fb1ef3cb672adae4b87460cab49",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-07T06:41:24.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "2c94fde0813f8519379f8aa741a7eb8578aca499578d2dc83e94cd36d7c5ddf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-07T06:41:46.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "328b296db5e18d9c7fd7025c2489d71c92d1bde32d57c27a5d7014708e507188",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-07T06:41:18.000Z",
      "commit": "635e66ed02729c6ad5c948880532fc102e9a521d",
      "fileid": "012631123ce3026a7ca7f2df2a58b5059ce613f61b8c5a76389411cb27521aab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tqian/actions/runs/27085113124"
    }
  ]
}