# In a study, the number of disease incidence, we will calculate
# the probability that the number of disease is zero with rate 1
dGC(0, alpha = 1, gamma = 1)
# the probability that the disease will receive at least one
pGC(q = 1, alpha = 1, gamma = 1, lower.tail = FALSE)
# the probability that the disease will receive at most three
pGC(q = 3, alpha = 1, gamma = 1, lower.tail = TRUE)
# Calcaute the quantiles
qGC(p = c(0.25, 0.5, 0.75), alpha = 1, gamma = 1)
# Simulate 10 values from GC(1, 1)
rGC(n = 10, alpha = 1, gamma = 1, method = "PF")
Run the code above in your browser using DataLab