View source: R/digit_probability.R
prob_second_digit | R Documentation |
Can be used to detect bias in number reporting. For example, when rounding up is occuring, numbers with the second digit as zero will be overrepresented, while higher numbers like (7,8,9) will be underrepresented in the sample of numbers.
prob_second_digit(d2)
d2 |
Integer or vector of integers that presents the second digit. |
Double or Numeric vector
# calculate probabilty of second digits prob_second_digit(0:9) # cumulative probabilty must be equal to one sum(prob_second_digit(0:9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.