View source: R/comp_prob_prob.R
| comp_complement | R Documentation |
comp_complement computes the
probability complement of a
given probability prob.
comp_complement(prob)
prob |
A numeric probability value (in range from 0 to 1). |
The type and range of prob is
verified with is_prob.
A numeric probability value (in range from 0 to 1).
is_complement verifies numeric complements;
comp_comp_pair returns a probability and its complement;
is_prob verifies probabilities.
Other functions computing probabilities:
comp_FDR(),
comp_FOR(),
comp_NPV(),
comp_PPV(),
comp_acc(),
comp_accu_freq(),
comp_accu_prob(),
comp_comp_pair(),
comp_complete_prob_set(),
comp_err(),
comp_fart(),
comp_mirt(),
comp_ppod(),
comp_prob(),
comp_prob_freq(),
comp_sens(),
comp_spec()
comp_complement(0) # => 1
comp_complement(1) # => 0
comp_complement(2) # => NA + warning (beyond range)
comp_complement("p") # => NA + warning (non-numeric)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.