Learn R Programming

CompAREdesign (version 2.4.0)

get_prob1: Probability of observing the event

Description

Returns the probability of observing a single endpoint

Usage

get_prob1(
  beta1,
  beta2,
  b11,
  b21,
  case,
  rho,
  copula = "Frank",
  endpoint,
  seed = 12345
)

Arguments

beta1

Shape parameter for a Weibull law for the relevant event

beta2

Shape parameter for a Weibull law for the additional event

b11

Scale parameter of the Weibull distribution in treated arm for the relevant event

b21

Scale parameter of the Weibull distribution in treated arm for the additional event

case

Censoring case: 1, 2, 3 or 4

rho

Spearman's coefficient between the 2 marginal distributions

copula

Copula to use

endpoint

Endpoint from which it is wanted to obtain the probability of being observed