View source: R/expected_time.R
event_diff | R Documentation |
x
A helper function passed to uniroot()
event_diff(x, enroll_rate, fail_rate, ratio, target_event)
x |
Duration |
enroll_rate |
An |
fail_rate |
A |
ratio |
Experimental:Control randomization ratio. |
target_event |
The targeted number of events to be achieved. |
A single numeric value that represents the difference between the
expected number of events for the provided duration (x
) and the targeted
number of events (target_event
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.