I have a data with only 70 observations. The data contain one discrete variable. This variable
contains the number of patient with flu (
count). So, we have 70 days and each day we count how many number of patient come to the clinic with flu.
Then, I would like to model the relationship between the number of patients and their age, health and other variables. However, I must understand the shape for the
The mean of my data is
300 and the variance is
1826. Hence, I think, the distribution is
negative binomial. I would like to have
Density, distribution function, quantile function and random generation for the negative binomial distribution with parameters size and prob. in R using the following functions.
dnbinom(x, size, prob, mu, log = FALSE) pnbinom(q, size, prob, mu, lower.tail = TRUE, log.p = FALSE) qnbinom(p, size, prob, mu, lower.tail = TRUE, log.p = FALSE) rnbinom(n, size, prob, mu)
I know that
mu is the mean of my variable, which is easy to calculate. However, how do I know the
Is the size can be taken as the number of the patient? for me, I think I cannot!
Any idea or help to figure this point?