powered by
This function calculates the odds of a success from its probability. For more details, see Agresti (2018, ISBN: 978-1-119-40528-3).
odds(p,name="Prevalence")
a numeric value indicating the probability of the success. It is possible to consider a numeric vector of different probabilities values.
a character value indicating the name of the success. Possible values for this argument are name="Prevalence" or name="Incidence".
name="Prevalence"
name="Incidence"
A matrix of two columns. The first column contains the vector of probabilities p. The second column contains the corresponding odds values.
p
Agresti, A. (2018). An introduction to categorical data analysis. John Wiley & Sons. ISBN: 978-1-119-40528-3.
# NOT RUN { odds(0.09, name="Prevalence") # }
Run the code above in your browser using DataLab