Package: MRTSampleSizeBinary 0.1.2

Tianchen Qian

MRTSampleSizeBinary: Sample Size Calculator for MRT with Binary Outcomes

Provides a sample size calculator for micro-randomized trials (MRTs) with binary outcomes based on Cohn et al. (2023) <doi:10.1002/sim.9748>. Also provides a power calculator when the sample size is input by the user.

Authors:Eliot Wong-Toi, Thabat Dahdoul, Tianchen Qian

MRTSampleSizeBinary_0.1.2.tar.gz
MRTSampleSizeBinary_0.1.2.tar.gz(r-4.5-noble)MRTSampleSizeBinary_0.1.2.tar.gz(r-4.4-noble)
MRTSampleSizeBinary_0.1.2.tgz(r-4.4-emscripten)MRTSampleSizeBinary_0.1.2.tgz(r-4.3-emscripten)
MRTSampleSizeBinary.pdf |MRTSampleSizeBinary.html
MRTSampleSizeBinary/json (API)
NEWS

# Install 'MRTSampleSizeBinary' in R:
install.packages('MRTSampleSizeBinary', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • alpha_1 - Vector that defines the success probability null curve.
  • beta_1 - Vector that defines the MEE under the alternative hypothesis.
  • f_t_1 - A matrix defining the MEE under the alternative hypothesis.
  • g_t_1 - A matrix defining the success probability null curve.
  • m_matrix_1 - An example matrix for "bread" of sandwich estimator of variance.
  • p_t_1 - A vector of randomization probabilities for each time point.
  • sigma_matrix_1 - An example matrix for "meat" of sandwich estimator of variance.
  • tau_t_1 - Vector that holds the average availability at each time point.

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.26 score 36 scripts 222 downloads 9 exports 28 dependencies

Last updated 12 months agofrom:838952648e. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-linuxOKOct 29 2024

Exports:compute_m_sigmacompute_ncpis_full_column_rankmax_sampmin_sampmrt_binary_powermrt_binary_sspower_summarypower_vs_n_plot

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Sample Size Calculator for Micro-Randomized Trials with Binary Outcomes

Rendered fromsample-size-calcualtor-for-mrt.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2023-12-04
Started: 2021-03-04