Description Usage Arguments Details Value Examples
Functions to convert survival to general stress or vice versa using the beta distribution.
1 2 3 | survival_to_stress(survival, p = 3.2, q = 3.2)
stress_to_survival(stress, p = 3.2, q = 3.2)
|
survival |
One or more survival values to convert to general stress. Should be a value between 0 and 1. Smaller or bigger values are treated as 0 or 1 respectively. |
p, q |
The shape parameters of the |
stress |
One or more stress values to convert to survival. |
These are simple wrappers around the beta distribution function
pbeta
and the beta quantile function
qbeta
.
stress_to_survival
returns a vector the same length as
stress
giving the survival caused by each amount of stress.
survival_to_stress
returns a vector the same length as
survival
containing the stress values associated with each survival.
1 2 3 | stress <- 0.3
survival <- stress_to_survival(stress)
survival_to_stress(survival)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.