I love R. But it does has some things that are a bit irksome. For example, I have found it somewhat difficult to remember which prefix corresponds to which function, when working with distributions.
Here is a quick quiz:
Given a binomial distribution:
dbinom > ?
pbinom > ?

probability mass function
cumulative distribution function 
cumulative distribution function
probability mass function
Answer: 1
I am temped to choose 2, since pbinom feels like it should correspond with pdf. After all, ‘p’ is the first initial of the first word in the phrase “probability mass function.” However, that is not the case.
Comment