Hi All,
R has a function called qbinom that returns the returns the value of the inverse cumulative density function (cdf) of the binomial distribution given a certain random variable q, number of trials (size) and probability of success on each trial (prob).
For example,
returns the value 29. That is, it "backs in" to the number of successes k that are required in Stata's binomial (and invbinomial) functions.
Does anyone know how to get an equivalent result in Stata?
(I have figured out binomial() is equal to R's pbinom() and that binomialp() is equal to R's dbinom()).
Thanks!
Ariel
R has a function called qbinom that returns the returns the value of the inverse cumulative density function (cdf) of the binomial distribution given a certain random variable q, number of trials (size) and probability of success on each trial (prob).
For example,
Code:
qbinom(0.005, 2000, 0.02241113)
Does anyone know how to get an equivalent result in Stata?
(I have figured out binomial() is equal to R's pbinom() and that binomialp() is equal to R's dbinom()).
Thanks!
Ariel
Comment