In this paper we formulate an R function that uses
prior information from previous clinical trials to define the
parameters of the conjugate gamma prior through the implementation
of marginal maximum likelihood estimation that
uses the R function optim. Using these parameters, we also
develop R functions that provide the required sample size
for the ALC and AP methods for the ratio of two Poisson
rates.