extract_statuses {adaptr} | R Documentation |
Extract statuses
Description
Used internally. Extracts overall trial statuses or statuses from a single
arm
from multiple trial simulations. Works with sparse results.
Usage
extract_statuses(object, x_value, arm = NULL)
Arguments
object |
|
x_value |
single character string, determining whether the number of
adaptive analysis looks ( |
arm |
character vector containing one or more unique, valid |
Value
A tidy data.frame
(one row possible status per look) containing the
following columns:
-
x
: the look numbers or total number of patients at each look, as specified inx_value
. -
status
: each possible status ("Recruiting"
,"Inferiority"
(only relevant for individual arms),"Futility"
,"Equivalence"
, and"Superiority"
, as relevant). -
p
: the proportion (0-1
) of patients with eachstatus
at each value ofx
. -
value
: as described undermetric
.