Description Usage Arguments Value Author(s) References Examples
View source: R/prob_of_instant_dropout.R
Takes an input value 'y' which is an endpoint at a given time. Returns a probability interpolated based on a spline interpolating paired y_vector_i = endpoint_i, dropout_hazard_map_i = dropout_probability_i pairs.
1 2 3 4 5 6 7 8 |
x_vector |
numeric vector of time points at which endpoint values are observed. |
y_vector |
numeric vector of endpoint values. |
dropout_hazard_map |
data.frame with the first column a set of endpoint values spanning the relevant range of endpoints, the second column dropout probabilities corresponding to the endpoint values. |
MIN_endpoint |
numeric lowest value of endpoint to be evaluated. |
MAX_endpoint |
numeric highest value of endpoint to be evaluated. |
a numeric vector the same length as y_vector.
Bill Forrest <forrest@gene.com>
Bill Forrest forrest@gene.com
1 2 3 4 5 6 7 | cat('no current example for unexported function prob_of_instant_dropout.')
## Not run:
prob <- prob_of_instant_dropout( c( 1:5, 10, 12, 20 ), c( rep(100,5), 2001, 1500, 800 ) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.