Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

binary_prob_success

Calculate the binary probability of success.


Description

Calculate the binary probability of success.

Calculate the binary probability of success from an augbin_2t_1a_fit object.

Usage

binary_prob_success(x, ...)

## S3 method for class 'augbin_2t_1a_fit'
binary_prob_success(
  x,
  y1_lower = -Inf,
  y1_upper = Inf,
  y2_lower = -Inf,
  y2_upper = log(0.7),
  conf.level = 0.95,
  ...
)

Arguments

x

an R object of class "augbin_fit"

...

arguments passed to other methods

y1_lower

numeric, minimum threshold to constitute success, scrutinising the log of the tumour size ratio comparing time 1 to baseline. Defaults to negative infinity.

y1_upper

numeric, maximum threshold to constitute success, scrutinising the log of the tumour size ratio comparing time 1 to baseline. Defaults to positive infinity.

y2_lower

numeric, minimum threshold to constitute success, scrutinising the log of the tumour size ratio comparing time 2 to baseline.

y2_upper

numeric, maximum threshold to constitute success, scrutinising the log of the tumour size ratio comparing time 2 to baseline. Defaults to log(0.7).

conf.level

confidence level for interval.

Value

a data.frame-like object

Examples

## Not run: 
fit <- stan_augbin_demo()
binary_prob_success(fit, y2_upper = log(0.7))

## End(Not run)

trialr

Clinical Trial Designs in 'rstan'

v0.1.5
GPL (>= 3)
Authors
Kristian Brock [aut, cre] (<https://orcid.org/0000-0002-3921-0166>), Trustees of Columbia University [cph]
Initial release
2020-10-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.