| ms_looks | R Documentation |
Defines when the interim and final analyses take place: when the expected number of events of an endpoint reaches given fractions of its final number of events, or at given calendar times, and which endpoints are tested at each analysis.
ms_looks(
trigger = c("os", "pfs", "calendar"),
fraction = NULL,
time = NULL,
test = NULL
)
trigger |
|
fraction |
Event fractions of the event-driven looks: with one
trigger, strictly increasing and ending at 1 (defaults to 1, a single
analysis); with one trigger per look, one value per look in (0, 1]
( |
time |
Strictly increasing calendar times of the calendar-driven
looks (with one trigger per look, one value per look, |
test |
|
With one value of trigger, all looks are driven by the events of
the same endpoint ("os" or "pfs", with fraction) or
take place at calendar times ("calendar", with time). The
final number of events is given in ms_power through
events or followup, and the look k takes place when the
expected number of events of the trigger endpoint reaches
fraction[k] times the final number.
With one value of trigger per look, each look has its own trigger.
fraction then has one value per look, NA at the
calendar-driven looks, and time one value per look, NA at the
event-driven looks. The fractions of the looks driven by the events of an
endpoint refer to the final number of events of that endpoint (see
ms_power) and must be strictly increasing; an event-driven
final look must have the fraction 1. The calendar times of the looks, which
depend on the scenario, must be strictly increasing.
By default every look tests all endpoints of the test
(ms_test). test gives the endpoints tested at each
look, for example list("pfs", c("pfs", "os"), "os") for an interim
analysis of PFS, the final analysis of PFS with an interim analysis of OS,
and the final analysis of OS.
An object of class ms_looks.
ms_power, ms_size
ms_looks("os", fraction = c(0.5, 0.75, 1))
ms_looks("calendar", time = c(24, 36))
# PFS interim and final analyses driven by PFS events, an OS interim
# analysis at the final PFS analysis and the final OS analysis driven by
# OS events
ms_looks(c("pfs", "pfs", "os"), fraction = c(0.6, 1, 1),
test = list("pfs", c("pfs", "os"), "os"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.