This R package offers a constructive set of simulation-based functions used for determining sample size and assurance in various settings. We hope these functions will be useful for addressing a wide range of clinical trial study design problems.
To install the bayesassurance
package in R, there are several ways to compile the package from
source as the package is not yet available on CRAN.
devtools
is installed and loaded. If not, run install.packages("devtools")
and
load the package using library(devtools)
once installation is complete. devtools::install_github("jpan928/bayesassurance_rpackage")
.
You may be asked to install Rtools
on a Windows machine. library(bayesassurance)
and start using package normally. tar.gz
FileAlternatively, you can build the package using the tar.gz file.
bayesassurance_0.1.0.tar.gz
file. setwd("your/filepath/here")
. install.packages("bayesassurance_0.1.0.tar.gz", repos = NULL, type = "source")
. library(bayesassurance)
and start using package normally. bayesassurance_0.1.0.tar.gz
file. setwd("your/filepath/here")
. install.packages("bayesassurance_0.1.0.tar.gz", repos = NULL, type = "source")
.
You may be asked to install Rtools. library(bayesassurance)
and start using package normally. bayesassurance_0.1.0.tar.gz
file.PATH <your/filepath/here>
.
An example of this file path is C:\Program Files\R\R-4.1.3\bin\x64. bayesassurance_0.1.0.tar.gz
. R CMD INSTALL bayesassurance_0.1.0.tar.gz
to install the package. library(bayesassurance)
and start using package normally. For JSS reviewers, R scripts containing the necessary code to reproduce figures and examples
in the manuscript can be found under Replication_Material
. Please refer to the main
script file, replication_script.R
, and work through the examples in chronological
order. The script includes all worked out examples and figures in the order in which they
appear in the manuscript. It will also point you to the supplementary R Markdown files
(fig7_replication.Rmd
, fig9_replication.Rmd
, and fig10_replication.Rmd
)
where appropriate.
Vignettes are currently undergoing revisions and will be available soon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.